/*
 * Rhodac Automation — Main Stylesheet
 * Visual language inspired by Haas CNC: angular, industrial, structured
 */

:root {
    --color-1: #00B1A7;   /* Rhodac Teal — icons, badges, details */
    --color-2: #008B83;   /* Teal Dark — hover */
    --color-3: #1C1917;   /* Carbon Deep — primary dark */
    --color-4: #44403C;   /* Carbon Gray */
    --accent:  #E8500A;   /* Rhodac Orange — CTA */
    --accent-dark: #CC4408;

    --text-dark:  #0F172A;  /* Authority Navy */
    --text-light: #ffffff;
    --bg-white:   #ffffff;
    --bg-light:   #F8FAFC;   /* Cool clean surface */
    --bg-dark:    #0C0A09;   /* Deep black */

    --divider: #E2E8F0;   /* Cool slate border */

    --font-primary: 'Gabarito', sans-serif;
    --font-heading: 'Gabarito', sans-serif; /* Unified */

    --container-width: 1200px;
    --header-height: 90px;

    /* Academy radii */
    --radius-sm: 4px;
    --radius-md: 9px;   /* Buttons & Inputs */
    --radius-lg: 14px;  /* Cards */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 98px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(0, 177, 167, 0.22);
    color: var(--color-3);
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 3.5rem;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Updated section title: cleaner, modern */
h2.section-h2 {
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

h2.with-underline {
    border-bottom: 4px solid var(--accent);
    display: inline-block;
}

h3 { font-size: 1.45rem; color: var(--text-dark); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }

.grid         { display: grid; gap: 2rem; }
.grid-2       { grid-template-columns: 1fr 1fr; }
.grid-3       { grid-template-columns: repeat(3, 1fr); }
.grid-4       { grid-template-columns: repeat(4, 1fr); }
.flex         { display: flex; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-center  { justify-content: center; align-items: center; }
.flex-column  { flex-direction: column; }

/* ============================================================
   BUTTONS — Angular (Haas-style: 2px radius)
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--color-1);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--color-2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,177,167,0.35);
    color: white;
}

.btn-outline {
    border-color: var(--text-light);
    color: var(--text-light);
    background: transparent;
}
.btn-outline:hover {
    background: var(--text-light);
    color: var(--color-3);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,122,0,0.35);
}

/* "Learn More ›" link — Haas-style */
.learn-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.learn-more:hover { gap: 8px; color: var(--color-2); }
.learn-more.orange { color: var(--accent); }
.learn-more.orange:hover { color: var(--accent-dark); }

/* ============================================================
   CARDS — Angular (Haas-style: 4px radius max)
   ============================================================ */
.card-feature {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border-bottom: 4px solid var(--color-1);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--color-1);
    margin-bottom: 15px;
}

.card-project {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
}

.card-testimonial {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.card {
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ============================================================
   SECTION TITLE — Haas-style centered
   ============================================================ */
.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title-center h2 {
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.9rem;
    letter-spacing: 1.5px;
    color: var(--color-3);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-1);
    margin-bottom: 12px;
}
.section-title-center p { color: #666; font-size: 0.95rem; margin-top: 0; }

/* ============================================================
   HEADER — Two-row (dark top bar + white main nav)
   ============================================================ */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.header-hide { transform: translateY(-100%); }

/* Row 1: utility bar */
.header-top {
    background-color: var(--color-3);
    color: white;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}
.header-top .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.header-contact-info {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    align-items: center;
}
.header-contact-info a {
    color: #aaa;
    transition: color 0.25s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.header-contact-info a:hover { color: var(--color-1); }

/* Row 2: main nav */
.header-bottom {
    background-color: white;
    padding: 0;
}
.header-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 32px;
    margin: 0 auto;
}
.nav-links a {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 22px 0;
    position: relative;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--color-1);
}

.menu-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    color: white;
    padding: 90px 0 55px;
    text-align: center;
    border-bottom: 4px solid var(--accent);
}
.page-header--teal  { background-color: var(--color-1); }
.page-header--dark  { background-color: var(--bg-dark); }
.page-header--hero  { background-size: cover; background-position: center; padding: 110px 0 90px; }

.page-header h1     { color: white; margin-bottom: 12px; }
.page-header .lead  { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.page-header--dark .lead { color: #ccc; }
.page-header--hero h1 { font-size: 3.5rem; margin-bottom: 18px; }
.page-header--hero .lead { font-size: 1.3rem; max-width: 800px; margin: 0 auto 28px; font-weight: 300; }

/* ============================================================
   HERO SPLIT — Haas-style two panels
   ============================================================ */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 98px);
    min-height: 460px;
    max-height: 680px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    text-decoration: none;
}

.hero-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s ease;
}
.hero-panel:hover .hero-panel-bg { transform: scale(1.04); }

.hero-panel--dark .hero-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.18) 100%);
    z-index: 1;
}

.hero-panel-content {
    position: relative;
    z-index: 2;
    padding: 38px 40px;
    color: white;
    width: 100%;
}

.hero-panel-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-panel h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: white;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-panel-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 22px;
}

.hero-panel-btn {
    display: inline-block;
    background: var(--color-1);
    color: white;
    padding: 9px 22px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.2s;
}
.hero-panel:hover .hero-panel-btn {
    background: var(--color-2);
    transform: translateX(3px);
}
.hero-panel-btn--white {
    background: white;
    color: var(--color-1);
}
.hero-panel:hover .hero-panel-btn--white {
    background: rgba(255,255,255,0.92);
    transform: translateX(3px);
}

/* ============================================================
   NAV STRIPS — Haas-style 3 solid strips
   ============================================================ */
.nav-strips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.nav-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--color-1);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    border-right: 1px solid rgba(255,255,255,0.18);
    text-decoration: none;
    transition: filter 0.2s, padding-right 0.2s;
}
.nav-strip:last-child { border-right: none; }
.nav-strip:hover { filter: brightness(1.12); padding-right: 22px; }
.nav-strip--dark   { background: #1a1a1a; }
.nav-strip--orange { background: var(--accent); }

/* ============================================================
   QUICK LINKS (light — Haas-style white grid)
   ============================================================ */
.quicklinks-light {
    background: white;
    padding: 55px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.quicklinks-heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-3);
    margin-bottom: 35px;
}
.quicklinks-heading span {
    text-decoration: underline;
    text-decoration-color: var(--color-1);
    text-underline-offset: 4px;
}

.quicklinks-grid-light {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
}

.ql-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 14px 22px;
    background: white;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none;
}
.ql-light:hover { background: #f8f8f8; }

.ql-light i {
    font-size: 1.7rem;
    color: #444;
    transition: color 0.2s;
}
.ql-light:hover i { color: var(--color-1); }

.ql-light .ql-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.ql-light .ql-more {
    font-size: 0.76rem;
    color: var(--color-1);
    font-weight: 700;
}
.ql-light.orange .ql-more { color: var(--accent); }
.ql-light.orange:hover i  { color: var(--accent); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
    background: var(--color-3);
    padding: 55px 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}
.stats-band .stat-item  { text-align: center; }
.stats-band .stat-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--color-1);
    line-height: 1;
}
.stats-band .stat-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* ============================================================
   SERVICE BLOCKS (servicios.html)
   ============================================================ */
.service-block {
    background: white;
    margin-bottom: 50px;
    align-items: center;
    gap: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 30px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.service-block__title {
    color: var(--color-3);
    border-left: 4px solid var(--accent);
    padding-left: 14px;
    margin-bottom: 18px;
}
.service-block__list        { list-style: none; margin-bottom: 22px; }
.service-block__list li     { margin-bottom: 8px; }
.service-block__list i      { color: var(--color-1); margin-right: 8px; }
.service-block__img         { height: 280px; overflow: hidden; border-radius: 0; }
.service-block__img img     { width: 100%; height: 100%; object-fit: cover; }

.service-card-small {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border-top: 3px solid var(--accent);
}
.service-card-small h4 { font-size: 1.1rem; color: var(--color-3); }
.service-card-small p  { font-size: 0.9rem; color: #555; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-item         { display: flex; gap: 18px; margin-bottom: 22px; }
.contact-item__icon   {
    min-width: 48px; height: 48px;
    background: var(--color-1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
}
.contact-item h4      { margin-bottom: 4px; color: var(--text-dark); font-size: 1rem; }
.contact-item .response-time { font-size: 0.82rem; color: #666; margin-top: 4px; }

.callout-box {
    background: var(--bg-light);
    padding: 22px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
}
.callout-box h4 { margin-bottom: 8px; font-size: 0.95rem; }
.callout-box p  { font-size: 0.88rem; }

.form-card {
    background: white;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-top: 4px solid var(--color-1);
}
.form-card h3   { margin-bottom: 22px; font-size: 1.35rem; }
.form-group     { margin-bottom: 18px; }
.form-group--lg { margin-bottom: 22px; }
.form-label     { display: block; margin-bottom: 7px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; }

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-light);
    transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-1);
    background: white;
    box-shadow: 0 0 0 3px rgba(0,177,167,0.14);
}
.form-textarea  { resize: vertical; }
.form-submit    { width: 100%; border: none; padding: 14px; font-size: 0.95rem; }

#formStatus {
    margin-top: 12px;
    font-weight: 700;
    display: none;
    padding: 10px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   MAP
   ============================================================ */
.map-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   CTA STRIP — shared
   ============================================================ */
.section-cta {
    background-color: var(--color-1);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-strip {
    background: linear-gradient(120deg, var(--color-1), var(--color-2));
    padding: 60px 0;
    text-align: center;
}
.cta-strip h2 { color: white; font-size: 1.9rem; margin-bottom: 0.7rem; text-transform: uppercase; font-family: var(--font-heading); font-weight: 400; letter-spacing: 1px; }
.cta-strip p  { color: rgba(255,255,255,0.82); margin-bottom: 2rem; }

/* ============================================================
   COURSE CARDS (cursos.html)
   ============================================================ */
.course-feature-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--color-1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.course-feature-card__img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.course-feature-card__img i { font-size: 3.5rem; }
.course-feature-card__body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-feature-card__body h3 { color: var(--color-3); margin-bottom: 10px; }
.course-feature-card__body p  { margin-bottom: 18px; flex: 1; color: #666; font-size: 0.92rem; }
.course-feature-card__checklist { margin-bottom: 22px; font-size: 0.88rem; color: #555; }
.course-feature-card__checklist i { color: var(--color-1); margin-right: 5px; }
.benefit-icon { font-size: 2.8rem; color: var(--color-1); margin-bottom: 18px; }

/* ============================================================
   VALUE / NOSOTROS CARDS
   ============================================================ */
.value-card-icon { font-size: 2.2rem; color: var(--color-1); margin-bottom: 14px; }
.img-cover-box { overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.img-cover-box img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}
.nav-overlay.active { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Barra naranja sólida antes del footer */
.footer-stripe {
    height: 4px;
    background: var(--accent);
    width: 100%;
}

footer {
    background-color: var(--color-3);
    color: var(--text-light);
    padding: 64px 0 28px;
}
footer h4 {
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}
footer p {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.6;
}
footer ul li { margin-bottom: 10px; }
footer ul li a,
footer ul li span {
    color: #555;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
footer ul li a:hover { color: #aaa; }
footer .arrow-icon { color: var(--accent); opacity: 0.5; font-size: 0.7rem; }

.footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid #2E2E2C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #3A3A38;
}

.social-link-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2E2E2C;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin-left: 6px;
}
.social-link-footer:hover { color: #aaa; }

/* Aliases usados en páginas con footer moderno */
.footer-link {
    color: #555 !important;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-link:hover { color: #aaa !important; }
.nav-title {
    color: #aaa !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 18px !important;
    text-transform: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.social-links-footer {
    display: flex;
    align-items: center;
    gap: 4px;
}
.social-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2E2E2C;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.social-link-item:hover { color: #aaa; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-element {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    width: 56px; height: 56px;
    bottom: 28px; right: 28px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 4px 18px rgba(37,211,102,0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsappPulse 3s infinite;
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.08); }
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08);
    color: white;
    animation: none;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    body { padding-top: 65px; }

    .header-top { display: none !important; }
    .header-bottom {
        background-color: white;
        padding: 0;
        width: 100%;
        height: 65px;
    }
    .header-bottom .container { position: relative !important; justify-content: space-between !important; }
    .header-bottom .logo img { height: 38px !important; max-height: 38px !important; }

    .menu-toggle {
        display: block;
        color: var(--color-3);
        font-size: 1.5rem;
        order: 1;
        margin-right: 14px;
        z-index: 20;
    }
    .header-bottom .logo { display: flex; align-items: center; order: 2; margin-right: auto; }
    .header-mobile-actions { display: flex; align-items: center; gap: 14px; order: 3; z-index: 20; }
    .mobile-action-icon { color: var(--color-3); font-size: 1.2rem; }
    .header-bottom .nav-links,
    .header-bottom .btn { display: none !important; }
    .header-bottom .nav-links.active { display: flex !important; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0; left: -100%;
        width: 78%;
        height: 100vh;
        background-color: var(--color-3);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem;
        box-shadow: 12px 0 30px rgba(0,0,0,0.5);
        transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 2000;
    }
    .nav-links.active { left: 0; }
    .nav-links a {
        color: white;
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-left: none;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥1025px)
   ============================================================ */
@media (min-width: 1025px) {
    .header-mobile-actions { display: none !important; }
    .header-bottom .logo img,
    .logo img { height: 38px !important; max-height: 38px !important; width: auto !important; }
    .header-bottom .container { position: relative !important; justify-content: space-between !important; }
    .nav-links {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        width: auto !important;
    }
    .header-bottom .btn { margin-left: auto !important; margin-right: 0 !important; }
}

/* ============================================================
   RESPONSIVE — HERO SPLIT & NAV STRIPS
   ============================================================ */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    .hero-panel { min-height: 320px; }
    .hero-panel-content { padding: 28px 24px; }

    .nav-strips { grid-template-columns: 1fr; }
    .nav-strip { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .nav-strip:last-child { border-bottom: none; }

    .quicklinks-grid-light { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   ACCESSIBILITY — Focus visible (keyboard nav)
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-1);
    outline-offset: 3px;
}

/* Suppress default outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Buttons: offset focus ring slightly outside */
.btn:focus-visible {
    outline: 2px solid var(--color-1);
    outline-offset: 4px;
    box-shadow: 0 0 0 5px rgba(0,177,167,0.15);
}

/* ============================================================
   SCROLL MARGIN — offset anchor targets behind fixed header
   ============================================================ */
[id] {
    scroll-margin-top: 130px;
}

/* ============================================================
   REDUCED MOTION — respect system preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-element {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   SCROLLBAR — branded (Webkit only)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: var(--color-1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-2); }
