/* =====================================================
   ZAMER - CSS
   Paleta: Azul navy #1E3A6E | Azul medio #2B5EA7 | Cyan #47B9E6 | Blanco #FFF
   ===================================================== */

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

:root {
    --navy:      #1E3A6E;
    --blue:      #2B5EA7;
    --cyan:      #47B9E6;
    --cyan-dark: #2FA3D3;
    --white:     #FFFFFF;
    --gray-100:  #F5F7FA;
    --gray-200:  #E8ECF2;
    --gray-500:  #8898AA;
    --gray-700:  #3D4F6E;
    --text:      #1A2B4A;
    --shadow-sm: 0 2px 8px rgba(30,58,110,.08);
    --shadow-md: 0 8px 32px rgba(30,58,110,.12);
    --shadow-lg: 0 20px 60px rgba(30,58,110,.18);
    --radius:    12px;
    --radius-lg: 20px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- TYPOGRAPHY HELPERS ---- */
.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}
.section-label--light { color: var(--cyan); }

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 620px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}
.btn--primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(43,94,167,.35);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(43,94,167,.45);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}
.btn--white {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-md);
}
.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--full { width: 100%; justify-content: center; }

/* ---- ACCESIBILIDAD ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }
[tabindex="-1"]:focus { outline: none; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- HONEYPOT (invisible para humanos, visible para bots) ---- */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}
.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar__logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
}
.navbar.scrolled .navbar__logo { height: 40px; }

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar__link {
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--white);
    border-radius: 50px;
    transition: var(--transition);
}
.navbar.scrolled .navbar__link { color: var(--navy); }
.navbar__link:hover, .navbar__link.active { background: rgba(255,255,255,.15); }
.navbar.scrolled .navbar__link:hover, .navbar.scrolled .navbar__link.active { background: var(--gray-100); color: var(--blue); }

.navbar__cta {
    padding: 10px 24px;
    background: var(--white);
    color: var(--navy);
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    margin-left: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.navbar.scrolled .navbar__cta {
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    color: var(--white);
}
.navbar__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    /* Zona táctil mínima de 44x44 sin cambiar el icono */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    margin-right: -6px;
}
.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar.scrolled .navbar__toggle span { background: var(--navy); }

/* Dual logo: white version on transparent navbar, color on scrolled */
.navbar__logo--white { display: block; }
.navbar__logo--color { display: none; }
.navbar.scrolled .navbar__logo--white { display: none; }
.navbar.scrolled .navbar__logo--color { display: block; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
    filter: saturate(1.12) contrast(1.05);
}
.hero.loaded .hero__bg { transform: scale(1); }
/* Velo neutro y suave: oscurece sin teñir de azul, para conservar los colores de la foto.
   El sombreado se concentra detrás del texto (centro) y arriba (navbar). */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 50% 50%, rgba(12,24,48,.42) 0%, rgba(12,24,48,0) 100%),
        linear-gradient(180deg, rgba(12,24,48,.35) 0%, rgba(12,24,48,.08) 30%, rgba(12,24,48,.08) 70%, rgba(12,24,48,.3) 100%);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp .9s ease forwards;
}
.hero__badge {
    display: inline-block;
    background: rgba(71,185,230,.25);
    border: 1px solid rgba(71,185,230,.5);
    color: #A8DEFF;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__title--accent {
    background: linear-gradient(90deg, var(--cyan), #A8DEFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-shadow no funciona con texto recortado en degradado: se usa drop-shadow */
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}
.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
    margin-bottom: 40px;
    line-height: 1.7;
}
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.7);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* =====================================================
   STATS
   ===================================================== */
.stats {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    padding: 48px 0;
}
.stats__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stats__item p {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
    margin-top: 4px;
}
.stats__number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.stats__unit {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about__image-wrap { position: relative; }
.about__image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.about__image-badge {
    position: absolute;
    bottom: 24px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 30px 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: .9rem;
    color: var(--navy);
}
.about__image-badge i {
    color: var(--cyan);
    font-size: 1.2rem;
}

.about__text {
    color: var(--gray-700);
    margin-bottom: 16px;
    font-size: .98rem;
    line-height: 1.8;
    text-align: justify;
}
.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.value-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
}
.value-card:hover { background: var(--gray-200); transform: translateY(-2px); }
.value-card__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .9rem;
}
.value-card h3 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}
.value-card p { font-size: .8rem; color: var(--gray-500); }

/* =====================================================
   SERVICES
   ===================================================== */
.services {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}
.services__bg-shape {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71,185,230,.08) 0%, transparent 70%);
    pointer-events: none;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

/* Service card photo header */
.service-card__photo {
    margin: -36px -36px 24px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.service-card:hover .service-card__photo img { transform: scale(1.05); }
.service-card__body { flex: 1; }

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(43,94,167,.3);
}
.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.service-card p {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}
.service-card__list { display: flex; flex-direction: column; gap: 8px; }
.service-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--gray-700);
}
.service-card__list li i { color: var(--cyan); font-size: .75rem; }

.services__cta {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.services__cta p { font-size: 1.05rem; color: var(--gray-700); }

/* =====================================================
   WHY US
   ===================================================== */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
}
.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(71,185,230,.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(71,185,230,.1) 0%, transparent 40%);
    pointer-events: none;
}
.why-us__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}
.why-us__text {
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
    line-height: 1.8;
    text-align: justify;
}
.why-us__features { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature > i {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,.15);
    flex-shrink: 0;
}
.feature h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}
.feature p { font-size: .85rem; color: rgba(255,255,255,.65); }

.why-us__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why-us__image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* =====================================================
   PARTNERS
   ===================================================== */
.partners {
    padding: 100px 0;
    background: var(--white);
}
.partners__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
}
.partner-logo {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-height: 90px;
}
.partner-logo:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
    transform: translateY(-3px);
}
.partner-logo img {
    max-height: 52px;
    width: auto;
    filter: grayscale(1) opacity(.65);
    transition: var(--transition);
}
.partner-logo:hover img { filter: grayscale(0) opacity(1); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
    padding: 100px 0;
    background: var(--gray-100);
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    margin-bottom: 48px;
}
/* Evita que contenido largo (p. ej. el email) ensanche la grid en móvil */
.contact__grid > * { min-width: 0; }
/* El email solo se parte tras la @ (marcado con <wbr> en el HTML) */
.contact__item a,
.footer__contact a { overflow-wrap: break-word; }
.contact__card {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact__item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1rem;
}
.contact__item h3 {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-bottom: 2px;
}
.contact__item p, .contact__item a {
    font-size: .95rem;
    color: var(--white);
    font-weight: 500;
}
.contact__item a:hover { color: var(--cyan); }
.contact__social {
    display: flex;
    gap: 12px;
    margin-top: auto;
}
.contact__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .9rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.2);
}
.contact__social-link:hover { background: var(--cyan); border-color: var(--cyan); }

/* FORM */
.contact__form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(71,185,230,.12);
}
.form-group input.error,
.form-group textarea.error { border-color: #E53E3E; }
.form-error { font-size: .8rem; color: #E53E3E; min-height: 16px; }
.form-error:empty { display: none; }

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: var(--radius);
    color: #166534;
}
.form-success i { font-size: 1.4rem; color: #22C55E; flex-shrink: 0; }
.form-error-global {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    color: #991B1B;
}
.form-error-global i { font-size: 1.4rem; color: #EF4444; flex-shrink: 0; }

.contact__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contact__map iframe { display: block; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 70px 0 0;
}
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}
.footer__logo { height: 52px; width: auto; margin-bottom: 8px; }
.footer__tagline {
    font-style: italic;
    color: var(--cyan);
    font-size: .9rem;
    margin-bottom: 14px;
}
.footer__desc {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
}
.footer__links .footer__heading,
.footer__services .footer__heading,
.footer__contact .footer__heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--cyan);
    margin-bottom: 18px;
}
.footer__links ul li,
.footer__services ul li,
.footer__contact ul li {
    margin-bottom: 10px;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer__links ul li a,
.footer__services ul li a {
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.footer__links ul li a:hover,
.footer__services ul li a:hover { color: var(--cyan); }
.footer__contact ul li i { color: var(--cyan); margin-top: 3px; min-width: 14px; }
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .85rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.15);
}
.footer__social a:hover { background: var(--cyan); border-color: var(--cyan); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}

/* =====================================================
   WHATSAPP BUTTON
   ===================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 14px 22px 14px 18px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
    overflow: hidden;
    max-width: 52px;
}
.whatsapp-btn:hover {
    max-width: 200px;
    box-shadow: 0 8px 28px rgba(37,211,102,.5);
}
.whatsapp-btn i { font-size: 1.4rem; flex-shrink: 0; }
.whatsapp-btn span {
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    transition: opacity .25s ease .1s;
}
.whatsapp-btn:hover span { opacity: 1; }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 88px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--navy); color: var(--white); }

/* Ocultar badge flotante de reCAPTCHA v3 */
.grecaptcha-badge { visibility: hidden !important; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .about__image-card { max-width: 600px; margin: 0 auto; }
    .about__image { height: 360px; }
    .why-us__grid { grid-template-columns: 1fr; gap: 48px; }
    .why-us__image { order: -1; }
    .why-us__image img { height: 360px; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .partners__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 40px;
        box-shadow: var(--shadow-lg);
        transition: right .35s ease;
        gap: 4px;
    }
    .navbar__menu.open { right: 0; }
    .navbar__link { color: var(--navy); width: 100%; padding: 12px 16px; }
    .navbar__link:hover, .navbar__link.active { background: var(--gray-100); color: var(--blue); font-weight: 600; }
    .navbar__cta { margin: 8px 0 0; width: 100%; text-align: center; background: linear-gradient(135deg, var(--blue), var(--cyan-dark)); color: var(--white); }
    .navbar__toggle { display: flex; }
    .navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .navbar__toggle.active span:nth-child(2) { opacity: 0; }
    .navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .navbar.scrolled .navbar__toggle span { background: var(--navy); }
    .navbar__toggle span { background: var(--white); }
    /* El botón queda por encima del panel para poder cerrarlo; en azul sobre el fondo blanco */
    .navbar__toggle { position: relative; z-index: 2; }
    .navbar__toggle.active span { background: var(--navy); }
    /* Enlaces a lo ancho del panel, con zona táctil cómoda */
    .navbar__menu li { width: 100%; }
    .navbar__link, .navbar__cta { display: block; }

    .hero__actions { flex-direction: column; align-items: center; }
    .stats__container { grid-template-columns: repeat(2, 1fr); }
    .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact__grid { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .about__values { grid-template-columns: 1fr; }
    .partners__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }

    /* En pantallas estrechas el texto ocupa casi toda la foto: velo neutro algo más denso */
    .hero__overlay {
        background:
            radial-gradient(ellipse 90% 50% at 50% 48%, rgba(12,24,48,.5) 0%, rgba(12,24,48,.1) 100%),
            linear-gradient(180deg, rgba(12,24,48,.4) 0%, rgba(12,24,48,.15) 40%, rgba(12,24,48,.35) 100%);
    }

    /* El justificado deja huecos grandes entre palabras en columnas estrechas */
    .about__text,
    .service-card p,
    .why-us__text { text-align: left; }

    /* La insignia sobresalía del recuadro (que recorta con overflow:hidden) */
    .about__image-badge { right: 16px; bottom: 16px; padding: 12px 18px; }

    /* Espacio para que los botones flotantes no tapen el final del pie */
    .footer__bottom { padding-bottom: 96px; }
}

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

@media (max-width: 480px) {
    .stats__container { grid-template-columns: repeat(2, 1fr); }
    .partners__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 2rem; }
    .contact__card { padding: 28px; }
    .contact__form-wrap { padding: 24px; }
    .hero__bg { background-image: url('../img/hero_mobile.webp'); }
    /* Botones flotantes más compactos y sin «volver arriba» (en móvil basta con deslizar) */
    .back-to-top { display: none; }
    .whatsapp-btn { right: 16px; bottom: 16px; }
    .service-card__photo { height: 140px; }
}
