/* 1. CONFIGURACIÓN BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.5rem; color: #1a2a6c; }
.bg-light { background-color: #f4f7f6; }

/* 2. HEADER Y NAVEGACIÓN (Sticky) */
.header {
    background: #1a2a6c;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; filter: brightness(0) invert(1); }
.logo h1 { font-size: 1.2rem; }
.logo span { color: #fdbb2d; }

.nav ul { display: flex; list-style: none; gap: 20px; }
.nav a { color: white; text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav a:hover { color: #fdbb2d; }

/* 3. HERO CON IMAGEN Y DIFUMINADO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.btn-main {
    display: inline-block;
    background: #fdbb2d;
    color: #1a2a6c;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}



/* 6. FORMULARIO CONTACTO */

.contact-form { max-width: 600px; margin: auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-submit {
    background: #1a2a6c;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    
    /* ESTO LO CENTRA */
    align-self: center; 
    width: auto; 
    min-width: 250px; /* Para que tenga buen tamaño en celular */
}

.btn-submit:hover { background: #fdbb2d; color: #1a2a6c; }

/* 7. FOOTER */
.footer-modern {
    background: var(--secondary); /* El azul oscuro que definimos antes */
    color: #cbd5e0;
    padding: 80px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand p {
    margin: 20px 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.social-links a:hover { color: white; }

.footer-links h4, .footer-newsletter h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* Newsletter Form */
.mini-form {
    display: flex;
    margin-top: 15px;
}

.mini-form input {
    padding: 10px;
    border-radius: 8px 0 0 8px;
    border: none;
    outline: none;
    width: 100%;
}

.mini-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
}

/* Copyright Bar */
.footer-bottom {
    background: #1a202c;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Adaptabilidad */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .flex-header { justify-content: center; gap: 15px; }
    .hero h2 { font-size: 2rem; }
}

/* --- TARJETAS CON SOMBRA INTENSA --- */

.card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 25px; 
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    position: relative;
    border: none; /* Quitamos el borde para que la sombra mande */

    /* 1. Sombra base muy marcada */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 
                0 5px 15px rgba(0, 0, 0, 0.06);
    
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}



/* 2. Efecto HOVER con sombra "Flotante" potente */

.card:hover {
    transform: translateY(-20px); /* Se eleva más */
    
    /* Sombra mucho más expansiva y oscura al elevarse */
    box-shadow: 0 30px 60px rgba(26, 42, 108, 0.3), 
                0 15px 25px rgba(0, 0, 0, 0.1);
}

/* 3. Ajuste de los elementos internos para que resalten con la sombra */
.icon {
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); /* Sombra al emoji también */
}

.card h3 {
    color: #1a2a6c;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.tag {
    margin-top: 20px;
    background: #1a2a6c;
    color: #fdbb2d;
    box-shadow: 0 4px 10px rgba(26, 42, 108, 0.3); /* Sombra en el botón interno */
}




/* --- RESPONSIVE DESIGN (Móviles y Tablets) --- */

@media (max-width: 992px) {
    .container { padding: 0 30px; }
    .hero h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* 1. Menú: Se apila verticalmente */
    .flex-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 2. Hero: Texto más pequeño para que no se corte */
    .hero { height: 60vh; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }

    /* 3. Carreras: Una sola columna con sombra ajustada */
    .grid-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%; /* Ocupa todo el ancho disponible */
        margin-bottom: 20px;
    }

    /* 4. Admisión: Texto arriba e info abajo */
    .admission-flex {
        flex-direction: column;
        text-align: center;
    }

    .admission-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .nav a { font-size: 0.9rem; padding: 5px; }
    .logo h1 { font-size: 1rem; }
}


/* --- BOTÓN FLOTANTE WHATSAPP --- */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-btn img {
    width: 25px;
    height: 25px;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* En celulares muy pequeños ocultamos el texto y dejamos solo el icono */
@media (max-width: 480px) {
    .whatsapp-btn span { display: none; }
    .whatsapp-btn { padding: 15px; border-radius: 50%; }
}


/* DISEÑO DE ESTADÍSTICAS */

.stats { background: #1a2a6c; color: white; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.stat-number { font-size: 3rem; font-weight: 800; color: #fdbb2d; margin-bottom: 10px; }

/* DISEÑO DE BENEFICIOS */
/* Contenedor principal de las tarjetas */
.benefits-grid {
    display: flex;
    justify-content: center; /* Centra las tarjetas */
    flex-wrap: wrap;         /* Las baja de fila en celulares */
    gap: 25px;               /* Espacio entre tarjetas */
    margin-top: 40px;
}

/* Diseño de cada Tarjeta Individual */
.benefit-card {
    background: #ffffff;      /* Fondo blanco para resaltar */
    padding: 35px 25px;
    border-radius: 15px;      /* Bordes redondeados */
    flex: 1;
    min-width: 280px;        /* Ancho mínimo */
    max-width: 350px;        /* Ancho máximo */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* LA SOMBRA: esto quita lo plano */
    border-top: 5px solid #1a2a6c; /* Línea decorativa azul arriba */
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse */
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(26, 42, 108, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h4 {
    color: #1a2a6c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* DISEÑO DE FAQ (ACORDEÓN) */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border-left: 6px solid #1a2a6c; }
.faq-item summary { padding: 20px; font-weight: 700; color: #1a2a6c; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '▼'; font-size: 0.8rem; transition: 0.3s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 20px; color: #666; line-height: 1.6; }


/* 1. Fondo de la sección para que las tarjetas blancas resalten */
.benefits-modern {
    background-color: #f8f9fa; /* Gris muy clarito */
    padding: 80px 0;
    text-align: center;
}

/* 2. Contenedor que alinea las tarjetas en horizontal */
.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 30px;         /* Espacio entre tarjetas */
    flex-wrap: wrap;   /* En celulares se ponen una debajo de otra */
    margin-top: 50px;
}

/* 3. Diseño de la Tarjeta (Esto le quita lo plano) */
.benefit-card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 20px;       /* Bordes curvos modernos */
    flex: 1;
    min-width: 280px;         /* Evita que se aplasten mucho */
    max-width: 350px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* SOMBRA profunda */
    transition: all 0.3s ease;
    border-bottom: 4px solid #1a2a6c; /* Detalle azul abajo */
}

/* 4. Efecto de movimiento al pasar el mouse */
.benefit-card:hover {
    transform: translateY(-15px); /* La tarjeta sube */
    box-shadow: 0 20px 40px rgba(26, 42, 108, 0.2);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    color: #1a2a6c;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

.admin-login-btn {
    color: #fdbb2d;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.admin-login-btn:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Color de fondo para el panel admin */
.bg-light {
    background-color: #f8f9fa;
}



/* --- FOOTER MODERNO --- */
.footer-modern {
    background-color: #111; /* Negro profundo */
    color: #bbb;
    padding: 60px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    width: 30px;
    height: 2px;
    background: #fdbb2d;
    position: absolute;
    left: 0;
    bottom: -5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul a:hover {
    color: #fdbb2d;
    padding-left: 5px;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links img {
    width: 24px;
    filter: invert(1); /* Hace los iconos blancos */
    transition: 0.3s;
}

.social-links img:hover {
    transform: translateY(-5px);
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(30deg); /* Efecto dorado */
}

/* Parte Inferior */
.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #222;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #666;
}

/* Logo en el Footer */
.logo-footer { color: white; margin-bottom: 15px; font-size: 1.5rem; }
.logo-footer span { color: #fdbb2d; }


/* --- SECCIÓN UBICACIÓN --- */
.location-section {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.location-grid {
    display: flex;
    gap: 50px;
    align-items: stretch;
    flex-wrap: wrap;
}

.location-info {
    flex: 1;
    min-width: 300px;
    padding: 20px 0;
}

.badge {
    background: #fdbb2d;
    color: #1a2a6c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.location-info h2 {
    font-size: 2.5rem;
    color: #1a2a6c;
    margin: 15px 0;
}

.contact-details {
    margin-top: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-icon {
    font-size: 1.5rem;
    background: #f4f7f6;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.detail-item strong {
    display: block;
    color: #1a2a6c;
    font-size: 1.1rem;
}

/* Contenedor del Mapa */
.map-wrapper {
    flex: 1;
    min-width: 350px;
    min-height: 400px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 8px solid #fff; /* Efecto marco */
}

@media (max-width: 768px) {
    .map-wrapper { min-height: 300px; }
    .location-info h2 { font-size: 2rem; }
}

/* --- ANIMACIÓN DE REVELADO (SCROLL) --- */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Efecto hover extra para el mapa */
.map-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 50px rgba(26, 42, 108, 0.15);
    transition: 0.4s;
}


/* --- ESTADÍSTICAS DINÁMICAS --- */


.stats-dynamic-section {
    background: linear-gradient(-45deg, #1a2a6c, #211fb2, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; /* Fondo que se mueve suavemente */
    padding: 100px 0;
    color: white;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1); /* Efecto cristal */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    width: 220px;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: scale(1.1) rotate(2deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.counter {
    font-size: 3.5rem;
    font-weight: 900;
    display: inline-block;
    color: #e4640f;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

.stat-card p {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    color: #fdbb2d;
}




/* Contenedor del FORMULARIO */
/* 1. Contenedor General de Contacto (Mejorado para que se centre) */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap; 
    gap: 3rem;
    align-items: flex-start; /* Alinea arriba para que no se estire raro */
    justify-content: center; /* Centra el contenido horizontalmente */
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: 0 auto;
}

/* 2. El Formulario (Asegurando que sea un bloque sólido) */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem;
}

/* 3. CAMPOS DE ENTRADA (Corregido: Deben ser width 100%) */
.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%; /* Ocupan todo el ancho del formulario */
    padding: 1rem 1.2rem;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* 4. EL BOTÓN (Aquí es donde va el centrado) */
.btn-submit {
    background: linear-gradient(135deg, #003366, #00509d);
    color: white;
    padding: 1rem 2rem; /* Más espacio a los lados */
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    
    /* ESTO CENTRA EL BOTÓN DENTRO DEL FORMULARIO */
    align-self: center; 
    width: auto; 
    min-width: 280px; /* Tamaño ideal para móvil y PC */
}

/* 5. AJUSTE PARA MÓVILES */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center; /* Centra el texto informativo en móvil */
        min-width: 100%;
    }

    .btn-submit {
        width: 100%; /* En celulares, que el botón sea grande y fácil de tocar */
    }
}


/* --- CIERRE DE BENEFICIOS (CORREGIDO) --- */
.benefit-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 15px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid #1a2a6c; /* Línea decorativa superior */
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* --- ESTILO PARA EL BOTÓN DE ACCESO ADMIN EN EL NAV --- */
.admin-access-btn {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.admin-access-btn:hover {
    background: #fdbb2d;
    color: #1a2a6c !important;
}


:root {
    --primary: #e63946; /* Rojo apetitoso pero profesional */
    --secondary: #1d3557; /* Azul oscuro para confianza */
    --accent: #f1faee;
    --dark: #2b2d42;
    --white: #ffffff;
}

/* Ajuste específico para las tarjetas de precios */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 20px 0;
}

.price span { font-size: 1rem; color: #777; }


/* Comparación de Problema/Solución */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.problem-box, .solution-box {
    padding: 30px;
    border-radius: 15px;
}
.problem-box { background: #ffe5e5; border-left: 5px solid #e63946; }
.solution-box { background: #e5f9e0; border-left: 5px solid #2b9348; }

.problem-box ul, .solution-box ul { list-style: none; margin-top: 15px; }
.problem-box li::before { content: "✕ "; color: #e63946; font-weight: bold; }
.solution-box li::before { content: "✓ "; color: #2b9348; font-weight: bold; }




/* Iconos de Hardware */
/* --- OPTIMIZACIÓN SECCIÓN HARDWARE --- */
.text-center-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.h-card {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.h-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 42, 108, 0.1);
    border-color: #fdbb2d; /* El amarillo de tu marca */
}

.h-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.h-card:hover .h-icon {
    transform: scale(1.2);
}

.h-card h4 {
    color: #1a2a6c;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.h-card p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .hardware-grid {
        grid-template-columns: 1fr;
    }
}




    
}
/* --- PALETA DE COLORES MODERNA --- */
:root {
    --primary: #e63946;    /* Rojo Coral (Acción) */
    --secondary: #1d3557;  /* Azul Profundo (Confianza/Profesional) */
    --accent: #457b9d;     /* Azul Medio */
    --light: #f8f9fa;      /* Fondo suave */
    --white: #ffffff;
    --dark: #111827;       /* Gris casi negro para textos y fondos oscuros */
}

/* --- SECCIÓN HERO (Más impactante) --- */
.hero {
    background: linear-gradient(rgba(29, 53, 87, 0.7), rgba(29, 53, 87, 0.7)), 
                url('https://unsplash.com');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); /* Corte diagonal moderno */
}

/* --- FUNCIONES (Cards con vidrio/Glassmorphism) --- */
#funciones {
    background: var(--white);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid #eee;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.1);
}

/* --- SECCIÓN PROBLEMA/SOLUCIÓN (Diferenciación visual clara) --- */
.problem-solution {
    background-color: var(--dark);
    color: var(--white);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border-radius: 25px;
    overflow: hidden;
}

.problem-box {
    background: #2d3436;
    padding: 50px;
    border-right: 1px solid #444;
}

.solution-box {
    background: #e63946; /* Color de marca para la solución */
    padding: 50px;
}

.problem-box h4, .solution-box h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* --- SECCIÓN HARDWARE (Limpia y con iconos resaltados) --- */
.hardware-compat {
    background: var(--light);
    text-align: center;
}

.hardware-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.h-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    width: 200px;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- OPTIMIZACIÓN SECCIÓN CONFIANZA (PREMIUM) --- */
.trust-features {
    background: radial-gradient(circle at top left, #1a2a6c, #0a1128); /* Fondo más profundo */
    padding: 100px 0;
    overflow: hidden;
}

.trust-grid {
    display: grid;
    /* Mejora: Ajuste más fluido de las columnas */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit-card-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px); /* Efecto cristal real */
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.benefit-card-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(253, 187, 45, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.b-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(253, 187, 45, 0.2), rgba(253, 187, 45, 0.05));
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px; /* Cambiado a cuadrado redondeado para look moderno */
    flex-shrink: 0;
    border: 1px solid rgba(253, 187, 45, 0.3);
    transition: transform 0.3s ease;
}

.benefit-card-mini:hover .b-icon {
    transform: rotate(-10deg) scale(1.1);
    background: rgba(253, 187, 45, 0.3);
}

.b-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fdbb2d;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.b-text p {
    font-size: 0.95rem;
    color: #b0b8d1; /* Color más suave para el párrafo */
    line-height: 1.5;
}

.b-text strong {
    color: #fff;
    font-weight: 600;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .trust-features { padding: 60px 0; }
    .benefit-card-mini {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .b-icon { margin-bottom: 10px; }
}


/* --- PLANES (Tablas de precios modernas) --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 30px;
}

.price-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 30px;
    width: 350px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.price-card.featured {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
    z-index: 1;
}

.price-card.featured .price { color: var(--primary); }

.popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- BOTONES --- */
.btn-main {
    background: var(--primary);
    padding: 18px 40px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
}


/* Estilos para el Banner Principal */
.hero {
    /* Aquí pones la imagen. He usado una de stock de alta calidad */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                      url('https://elcomercio.pe/resizer/NugZMpVAWG0Z3Mq2_YiEr3uOa7w=/1200x675/smart/filters:format(jpeg):quality(75)/cloudfront-us-east-1.images.arcpublishing.com/elcomercio/DPY5SFME7NG7LLJ43QWHZZSVFA.jpg');
    
    background-size: cover;      /* Ajusta la imagen al tamaño del contenedor */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* Opcional: efecto parallax al hacer scroll */
    min-height: 80vh;            /* Altura del banner */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;                /* Asegura que el texto sea blanco */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra para resaltar texto */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
/* --- BOTÓN WHATSAPP ANIMADO --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(-2deg);
}

/* --- EFECTO DE LUZ EN SECCIONES OSCURAS --- */
.stats-dynamic-section {
    position: relative;
    overflow: hidden;
}

.stats-dynamic-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,71,87,0.1) 0%, transparent 70%);
    animation: rotateLight 15s linear infinite;
}

@keyframes rotateLight {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- MEJORA EN PLANES: EFECTO GLOSS --- */
/* --- ESTILOS DE PLANES Y TABLA --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.price-card {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.4s;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-card:hover { transform: translateY(-10px); }

.price-card.featured {
    background: #1d3557; /* Azul Oscuro */
    color: white;
    transform: scale(1.05);
    border: 2px solid #ff4757; /* Rojo */
    z-index: 10;
}

.price-card.featured h3, .price-card.featured p { color: white; }

.price { font-size: 3rem; font-weight: 800; margin: 20px 0; color: #ff4757; }
.price span { font-size: 1rem; color: #777; font-weight: normal; }
.featured .price span { color: #ccc; }

.plan-features { list-style: none; margin: 30px 0; text-align: left; }
.plan-features li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
.featured .plan-features li { border-bottom: 1px solid rgba(255,255,255,0.1); }

.popular {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: #ff4757; color: white; padding: 5px 20px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold; text-transform: uppercase;
}

/* Tabla Comparativa */
.comparison-container { margin-top: 60px; }
.comparison-title { text-align: center; margin-bottom: 30px; font-size: 1.8rem; color: #1d3557; }

.table-responsive {
    background: white;
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.comparison-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.comparison-table th, .comparison-table td { padding: 18px 25px; border-bottom: 1px solid #f0f0f0; }

.comparison-table th { background: #f8f9fa; color: #1d3557; font-weight: 700; text-align: center; }
.comparison-table th:first-child { text-align: left; }

.category-row td {
    background: #f1f2f6;
    color: #ff4757;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.comparison-table td:not(:first-child) { text-align: center; font-weight: 600; }

/* Botón Outline */
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #ff4757;
    color: #ff4757;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover { background: #ff4757; color: white; }

.stats-dynamic-section {
    background-color: #f8fafc; /* Gris muy suave para que las tarjetas blancas resalten */
    padding: 100px 0;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card-modern {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease;
}

.featured-stat {
    border: 2px solid #fdbb2d;
    transform: scale(1.05);
}

.stat-icon-bg {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a2a6c;
    margin-bottom: 5px;
    line-height: 1;
}

.symbol {
    color: #fdbb2d;
    margin-left: 2px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2a6c;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.85rem;
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-stat { transform: scale(1); }
    .stat-number { font-size: 2.8rem; }
}


/* ESTILO SECCION CONFIANZA */
.section-header-trust {
    text-align: center;
    margin-bottom: 50px; /* Espacio antes de las tarjetas */
}

.section-title-white {
    font-size: 2.5rem;
    color: #fdbb2d; /* El amarillo de tu marca resalta genial aquí */
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle-white {
    color: #e0e6ed;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}



/* --- OPTIMIZACIÓN MÓVIL GLOBAL --- */
@media (max-width: 768px) {
    /* 1. Ajuste de Títulos */
    .section-title, .section-title-white {
        font-size: 1.8rem !important;
        padding: 0 15px;
    }

    /* 2. Hero (Banner Principal) */
    .hero {
        height: 60vh; /* Un poco más corto en móviles */
    }
    .hero h2 {
        font-size: 1.8rem !important;
    }
    .hero-btns {
        flex-direction: column; /* Botones uno sobre otro */
        gap: 10px;
        padding: 0 20px;
    }

    /* 3. Secciones de Cuadrícula (Hardware, Beneficios, Estadísticas) */
    .grid-cards, 
    .hardware-grid, 
    .trust-grid, 
    .stats-grid-modern,
    .pricing-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }

    /* 4. Tarjetas al 100% de ancho */
    .card, 
    .h-card, 
    .benefit-card-mini, 
    .stat-card-modern, 
    .price-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
    }

    /* 5. Ajuste de Estadísticas */
    .stat-number {
        font-size: 2.5rem !important;
    }

    /* 6. Navegación */
    .flex-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 0.9rem;
    }
}

/* Ajuste extra para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 480px) {
    .section-padding {
        padding: 40px 0;
    }
    .b-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


/* --- SECCIÓN DEMO VISUAL --- */
.demo-section {
    background-color: #ffffff;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.badge {
    background: rgba(253, 187, 45, 0.1);
    color: #1a2a6c;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.demo-text h2 {
    font-size: 2.5rem;
    color: #1a2a6c;
    margin: 20px 0;
    line-height: 1.2;
}

.demo-features {
    list-style: none;
    margin: 25px 0;
}

.demo-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-weight: 500;
}

.demo-features span {
    color: #25d366;
    font-weight: bold;
}

/* --- ESTILO DE LAS CAPTURAS (MOCKUPS) --- */
.demo-visual {
    position: relative;
    height: 450px;
}

.mockup {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 5px solid #1a2a6c; /* Color del marco */
}

.mockup img {
    width: 100%;
    display: block;
}

.tablet {
    width: 80%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.phone {
    width: 35%;
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 2;
    border-radius: 25px; /* Más redondeado para celular */
    border-width: 8px;
}

/* Responsivo para la Demo */
@media (max-width: 992px) {
    .demo-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .demo-features {
        display: inline-block;
        text-align: left;
    }
    .demo-visual {
        height: 350px;
        margin-top: 50px;
    }
}



/* HERO SLIDER FOTOS  AMINACION */


.hero {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El contenedor que sostiene las 3 capas de fotos */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Al fondo */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeAnim 15s infinite, zoomAnim 15s infinite;
}

/* Tiempos de salida para cada foto */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

/* El texto debe estar por encima de las fotos (z-index mayor) */
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
}

/* Animaciones */
@keyframes fadeAnim {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes zoomAnim {
    0% { transform: scale(1); }
    33% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* ANIMACION DE BENIFICIOS DEBAJO DE SLIDER */
/* Reemplaza el CSS anterior por este */
body { font-family: 'Outfit', sans-serif; }

.section-premium {
    padding: 100px 0;
    background-color: #f8fafc;
}

.badge-feature {
    background: #e0e7ff;
    color: #4338ca;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 1rem;
}

.title-main {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 700;
}

.grid-clean-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Colores de Iconos con transparencia */
.blue { background: #dbeafe; color: #2563eb; }
.orange { background: #ffedd5; color: #ea580c; }
.purple { background: #f3e8ff; color: #9333ea; }
.green { background: #dcfce7; color: #16a34a; }
.red { background: #fee2e2; color: #dc2626; }
.yellow { background: #fef9c3; color: #ca8a04; }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

.icon-wrapper i {
    font-size: 24px; /* Tamaño del icono */
    width: 24px;
    height: 24px;
    display: block;
}


/* 1. TITULO Y ESTILO DE COLOR DE FONDO */

.feature-card i {
    color: #333; /* Color gris oscuro casi negro */
    font-size: 2rem; /* Tamaño ajustable */
}

/* 2. Dale estilo a los contenedores de iconos para que resalten */
.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* 3. Colores específicos basados en tus clases (ejemplos) */
.icon-wrapper.blue { background-color: rgba(0, 123, 255, 0.1); color: #007bff; }
.icon-wrapper.orange { background-color: rgba(255, 165, 0, 0.1); color: #ffa500; }
.icon-wrapper.purple { background-color: rgba(128, 0, 128, 0.1); color: #800080; }
.icon-wrapper.green { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.icon-wrapper.red { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.icon-wrapper.yellow { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }

/* 4. Asegura que el icono dentro herede el color del wrapper */
.icon-wrapper i {
    color: inherit; 
}


.icon-wrapper {
    background-color: #f0f7ff; /* Azul muy pálido */
    color: #0070f3;            /* Azul vibrante */
    border: 1px solid #e1effe;
}
.icon-wrapper i { color: #0070f3; }

/* 4. TITULO SIN O CON CHEFCONTROL */


.gastronomia-title {
    color: #FFD700;
    font-weight: 800; /* Lo hace más grueso */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Sombra sutil para legibilidad */
}

/* Estilo para la sección completa */
.problem-solution {
    background-color: #003366; /* Azul fuerte (tipo azul marino) */
    padding: 60px 0;           /* Espaciado para que no quede pegado */
}

/* Estilo para el título */
.gastronomia-title {
    color: #FFD700 !important; /* Amarillo dorado */
    text-align: center;        /* Centrado */
    margin-bottom: 40px;       /* Espacio hacia abajo */
}

/* Opcional: Ajustar el color de los textos interiores para que se lean en el azul */
.problem-solution h4, 
.problem-solution ul li {
    color: white; 
}


/* ESTILO DE COLOR ICONOOS TODO LO QUE TU NEGOCIO NESECITA */
.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 15px; /* Bordes redondeados modernos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

/* Colores personalizados por clase */
.icon-wrapper.blue { background-color: #e1effe; color: #1c64f2; }   /* Azul - Comandas */
.icon-wrapper.orange { background-color: #fef3c7; color: #d97706; } /* Naranja - Mesas */
.icon-wrapper.purple { background-color: #f3e8ff; color: #9333ea; } /* Púrpura - Tablets */
.icon-wrapper.green { background-color: #dcfce7; color: #16a34a; }  /* Verde - Caja */
.icon-wrapper.red { background-color: #fee2e2; color: #dc2626; }    /* Rojo - Facturación */
.icon-wrapper.yellow { background-color: #fef9c3; color: #ca8a04; } /* Amarillo - Reportes */

/* Asegura que el icono de FontAwesome herede el color */
.icon-wrapper i {
    color: inherit;
}

/* Efecto al pasar el mouse sobre la tarjeta */
.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .nav-links {
        display: none; /* Lo ideal es ocultarlo y usar un menú hamburguesa */
    }
    
    .nav-container {
        justify-content: center; /* Centra el logo en móviles */
    }
}



.hero {
    overflow: hidden; /* Esto es vital para que las fotos no se salgan */
    position: relative;
    width: 100%;
}

.hero-slider {
    display: flex;
    width: 300%; /* Porque tienes 3 imágenes */
}

.slide {
    width: 100vw; /* Cada imagen debe medir exactamente el ancho de la pantalla */
    flex-shrink: 0;
}



@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Una tarjeta por fila */
        gap: 20px;
    }
}


html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}




/* Ajustes para el contenido del Hero */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 15px; /* Evita que el texto toque los bordes del cel */
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.6rem; /* Achicamos el título para que no se desborde */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem; /* Texto más pequeño y legible */
        margin-bottom: 25px;
    }

    /* Ajuste de Botones */
    .hero-btns {
        display: flex;
        flex-direction: column; /* Un botón arriba del otro */
        gap: 12px;              /* Espacio entre botones */
        align-items: center;
    }

    .btn-main, .btn-secondary {
        width: 100%;            /* Ocupan el ancho disponible */
        max-width: 280px;       /* Pero no dejan que crezcan demasiado */
        padding: 12px 0;        /* Altura cómoda para el dedo */
        font-size: 1rem;
        margin: 0;              /* Quitamos márgenes laterales */
    }
}
