/*
|--------------------------------------------------------------------------
| COLOR VARIABLES (AMARELLUS PALETTE)
|--------------------------------------------------------------------------
*/
:root {
    --color-primary: #FFCC00;       /* Primary Yellow (Buttons, Highlights) */
    --color-secondary: #003C71;     /* Dark Blue (Hero BG, Headings) */
    --color-text: #333333;          /* Body text */
    --color-background: #F4F7F9;    /* Page background */
    --color-success: #28A745;       /* Success messages */

    /* ====== Fixed navbar + anchor offset ====== */
    --nav-h: 88px; /* Adjust if your real header height differs */
}

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

/*
|--------------------------------------------------------------------------
| BASE & TYPOGRAPHY (Geomanist) - Overrides Bootstrap
|--------------------------------------------------------------------------
*/
/* Smooth scroll + offset for fixed navbar */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

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);

    /* Push content below fixed navbar */
    padding-top: var(--nav-h);
}

/* Headings override */
h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: 'Geomanist', sans-serif !important;
    font-weight: 900 !important;
    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);
}

/*
|--------------------------------------------------------------------------
| NAVBAR (Top Menu)
|--------------------------------------------------------------------------
*/
.site-navbar {
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

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

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

/* Logo height */
.site-navbar .navbar-brand img { height: 80px; }
@media (max-width: 991.98px) {
    .site-navbar .navbar-brand img { height: 56px; }
}

/*
|--------------------------------------------------------------------------
| HERO SECTION (70/30)
|--------------------------------------------------------------------------
*/
.hero {
    background-color: var(--color-secondary);
    color: white;
    padding: 90px 20px 80px;
    text-align: center;
    margin-top: 0 !important;
}

.hero h1 {
    font-size: 3.2em;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: 900 !important;
}

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

/* Left text column */
.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 (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;
    }
}

/*
|--------------------------------------------------------------------------
| BLUE CTA BUTTONS (“LEARN MORE”)
|--------------------------------------------------------------------------
*/
.btn-custom-blue {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-custom-blue:hover {
    background-color: #002D59 !important;
    border-color: #002D59 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/*
|--------------------------------------------------------------------------
| SECTION: UNLOCK YOUR POTENTIAL (Image Left / Text Right)
| (ES: #seccion-potencial-amazon → EN: #unlock-your-potential)
|--------------------------------------------------------------------------
*/
#unlock-your-potential {
    background-color: #FFFFFF;
    padding-top: 60px;
    padding-bottom: 60px;
}
#unlock-your-potential h2 {
    margin-bottom: 20px;
    color: var(--color-secondary);
}
#unlock-your-potential p {
    color: var(--color-text);
    font-size: 1.1em;
    line-height: 1.7;
}
#unlock-your-potential .btn-custom-blue { margin-top: 20px; }

/*
|--------------------------------------------------------------------------
| SECTION: SCALE YOUR BUSINESS (Text Left / Image Right)
| (ES: #seccion-consolida-negocio → EN: #scale-your-business)
|--------------------------------------------------------------------------
*/
#scale-your-business {
    background-color: var(--color-background);
    padding-top: 60px;
    padding-bottom: 60px;
}
#scale-your-business h2 {
    margin-bottom: 20px;
    color: var(--color-secondary);
}
#scale-your-business p {
    color: var(--color-text);
    font-size: 1.1em;
    line-height: 1.7;
}
#scale-your-business .btn-custom-blue { margin-top: 20px; }

/*
|--------------------------------------------------------------------------
| GENERAL CARDS
|--------------------------------------------------------------------------
*/
.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); }

/*
|--------------------------------------------------------------------------
| CONTACT FORM (Final CTA)
| (ES: #formulario-contacto → EN: #contact-form)
|--------------------------------------------------------------------------
*/
#contact-form { background-color: var(--color-secondary) !important; }

#contact-form .form-control {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: 'Geomanist', sans-serif;
}
#contact-form .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;
}

/*
|--------------------------------------------------------------------------
| SECTION BANNERS (Results/CTA placeholders)
|--------------------------------------------------------------------------
*/
.banner-placeholder {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero { padding: 80px 15px 40px; }

    /* In mobile, center text in Unlock Your Potential */
    #unlock-your-potential .col-lg-6:last-child { text-align: center; }
    /* Add spacing between image and text in mobile */
    #unlock-your-potential .col-lg-6:first-child { margin-bottom: 30px; }

    /* In mobile, image (order-lg-1) goes below text in Scale Your Business */
    #scale-your-business .col-lg-6:first-child { /* text */
        margin-bottom: 30px;
        text-align: center;
    }
    #scale-your-business .col-lg-6:last-child { /* image */
        margin-bottom: 0;
    }
}

/*
|--------------------------------------------------------------------------
| RESULTS STATS (moved from 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); }

/*
|--------------------------------------------------------------------------
| WHATSAPP FLOATING BUTTON
|--------------------------------------------------------------------------
*/
.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; }

/* Pulse animation */
@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; }

/* Mobile tweaks */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

/* -------- Optional: backward compatibility aliases (remove when all IDs are migrated) -------- */
/*
#seccion-potencial-amazon { all: unset; }  // old ES id (avoid collisions)
#seccion-consolida-negocio { all: unset; } // old ES id
#formulario-contacto { all: unset; }       // old ES id
*/
