/*
|--------------------------------------------------------------------------
| VARIABLES DE COLOR (PALETA AMARELLUS)
|--------------------------------------------------------------------------
*/
:root {
    --color-primary: #FFCC00;       /* Amarillo principal (Botones, Destacado) */
    --color-secondary: #003C71;     /* Azul Oscuro (Fondo Hero, Títulos) */
    --color-text: #333333;          /* Gris Oscuro para el cuerpo del texto */
    --color-background: #F4F7F9;    /* Gris Claro para el fondo general */
    --color-success: #28A745;       /* Verde para mensajes de éxito */

    /* ====== FIX barra fija + anclas ====== */
    --nav-h: 88px; /* AJUSTA si tu header real mide distinto */
}

@media (max-width: 991.98px) {
    :root { --nav-h: 64px; }
}

/*
|--------------------------------------------------------------------------
| BASE & TIPOGRAFÍA (Geomanist) - Sobreescribe a Bootstrap
|--------------------------------------------------------------------------
*/
/* Desplazamiento suave para los enlaces del menú + compensación por navbar fija */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h); /* deja espacio al hacer clic en anclas */
}

body {
    font-family: 'Geomanist', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    background-color: var(--color-background);
    color: var(--color-text);

    /* Empuja el contenido debajo de la navbar fija */
    padding-top: var(--nav-h);
}

/* Sobreescribe los títulos de Bootstrap para usar Geomanist Black */
h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: 'Geomanist', sans-serif !important;
    font-weight: 900 !important; /* Usar Black para impacto */
    line-height: 1.1;
    color: var(--color-secondary);
}

h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 900 !important;
}

.highlight {
    color: var(--color-primary);
}

/*
|--------------------------------------------------------------------------
| SECCIÓN NAVBAR (Menú Superior)
|--------------------------------------------------------------------------
*/
.site-navbar {
    z-index: 1030;                 /* por encima del contenido */
    background: #fff;              /* fondo sólido para no mezclar con hero */
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1.1em;
}

/* Control de alto del logo (ajusta si tu imagen es más grande/chica) */
.site-navbar .navbar-brand img { height: 80px; }
@media (max-width: 991.98px) {
    .site-navbar .navbar-brand img { height: 56px; }
}

/*
|--------------------------------------------------------------------------
| SECCIÓN HERO (HEADER) - DEFINITIVO (70/30)
|--------------------------------------------------------------------------
*/
.hero {
    background-color: var(--color-secondary);
    color: white;
    padding: 90px 20px 80px;
    text-align: center;
    margin-top: 0 !important; /* evitar conflictos con la navbar fija */
}

/* Estilo del H1 en el Hero (Columna 70%) */
.hero h1 {
    font-size: 3.2em;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: 900 !important;
}

.hero-content .row {
    align-items: center;
}

/* Alineamos el contenido de la columna 70% a la izquierda */
.hero-content .text-content-left {
    text-align: left;
}

.hero p {
    font-size: 1.4em;
    font-weight: 300 !important;
    max-width: none;
    margin: 20px 0 0;
    opacity: 0.95;
}

/* Media Query para asegurar que en móvil (menos de 992px) el texto se centre */
@media (max-width: 991.98px) {
    .hero-content .text-content-left {
        text-align: center;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        max-width: 900px;
        margin: 20px auto 0;
    }
}

/*
|--------------------------------------------------------------------------
| NUEVOS BOTONES AZULES "CONOCE MÁS"
|--------------------------------------------------------------------------
*/
.btn-custom-blue {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important; /* Más negrita para el texto del botón */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 25px; /* Ajuste de padding para que se parezca a la imagen */
    border-radius: 8px; /* Bordes más redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para darle profundidad */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-custom-blue:hover {
    background-color: #002D59 !important; /* Un azul más oscuro para el hover */
    border-color: #002D59 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/*
|--------------------------------------------------------------------------
| SECCIÓN: ELEVA TU POTENCIAL EN AMAZON (Imagen Izquierda / Texto Derecha)
|--------------------------------------------------------------------------
*/
#seccion-potencial-amazon {
    background-color: #FFFFFF;
    padding-top: 60px;
    padding-bottom: 60px;
}

#seccion-potencial-amazon h2 {
    margin-bottom: 20px;
    color: var(--color-secondary);
}

#seccion-potencial-amazon p {
    color: var(--color-text);
    font-size: 1.1em;
    line-height: 1.7;
}

#seccion-potencial-amazon .btn-custom-blue {
    margin-top: 20px;
}

/*
|--------------------------------------------------------------------------
| SECCIÓN: CONSOLIDA TU NEGOCIO (Texto Izquierda / Imagen Derecha)
|--------------------------------------------------------------------------
*/
#seccion-consolida-negocio {
    background-color: var(--color-background);
    padding-top: 60px;
    padding-bottom: 60px;
}

#seccion-consolida-negocio h2 {
    margin-bottom: 20px;
    color: var(--color-secondary);
}

#seccion-consolida-negocio p {
    color: var(--color-text);
    font-size: 1.1em;
    line-height: 1.7;
}

#seccion-consolida-negocio .btn-custom-blue {
    margin-top: 20px;
}

/*
|--------------------------------------------------------------------------
| AJUSTES GENERALES (Mantenido)
|--------------------------------------------------------------------------
*/
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    color: var(--color-secondary);
}

/*
|--------------------------------------------------------------------------
| SECCIÓN FORMULARIO (CTA Final)
|--------------------------------------------------------------------------
*/
#formulario-contacto {
    background-color: var(--color-secondary) !important;
}

#formulario-contacto .form-control {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: 'Geomanist', sans-serif;
}

#formulario-contacto .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.btn-warning {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-secondary) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning:hover {
    background-color: #FFB300 !important;
    border-color: #FFB300 !important;
}

/*
|--------------------------------------------------------------------------
| BANNERS DE SECCIÓN (SOLO PARA TESTIMONIOS/CTA)
|--------------------------------------------------------------------------
*/
.banner-placeholder {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| MEDIA QUERIES (RESPONSIVE DESIGN)
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero {
        padding: 80px 15px 40px;
    }

    /* En móvil, centrar el texto de la sección Potencial */
    #seccion-potencial-amazon .col-lg-6:last-child {
        text-align: center;
    }
    /* Añadir espacio entre imagen y texto en móvil */
    #seccion-potencial-amazon .col-lg-6:first-child {
        margin-bottom: 30px;
    }

    /* En móvil, para la sección CONSOLIDA, la imagen (order-lg-1) irá debajo del texto. */
    #seccion-consolida-negocio .col-lg-6:first-child { /* El texto */
        margin-bottom: 30px;
        text-align: center; /* Centrar el texto en móvil */
    }
    #seccion-consolida-negocio .col-lg-6:last-child { /* La imagen */
        margin-bottom: 0;
    }
}

/*
|--------------------------------------------------------------------------
| ESTILOS ESPECÍFICOS PARA RESULTADOS (Movido desde CasosDeExitoView.php)
|--------------------------------------------------------------------------
*/
.stat-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-number {
    font-size: 3.5em;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
.stat-label {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 10px;
}
.project-item {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    min-height: 140px;
}
.project-item h5 {
    color: var(--color-secondary);
}

/*
|--------------------------------------------------------------------------
| BOTÓN FLOTANTE DE WHATSAPP
|--------------------------------------------------------------------------
*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20BA55;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

.whatsapp-float i {
    line-height: 1;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}
