/* =========================================================
   SOTER HSEQ — Landing corporativa premium
   Paleta / tipografía / layout / responsive / animaciones
   ========================================================= */

/* ---------- Variables ---------- */
:root {
    --night: #171144;        /* Azul noche / morado oscuro principal */
    --night-2: #21195A;      /* Variante morado oscuro */
    --blue: #0069A8;         /* Azul corporativo */
    --blue-2: #0072B8;       /* Azul corporativo claro */
    --yellow: #FFC400;       /* Amarillo seguridad */
    --yellow-2: #FFD000;     /* Amarillo destacado */
    --red: #F42626;          /* Rojo intenso CTA */
    --red-2: #EF2B2D;        /* Rojo CTA variante */
    --white: #ffffff;
    --gray-bg: #F7F8FA;      /* Gris muy claro */
    --gray-text: #6B7280;    /* Gris texto */
    --gray-border: #E5E7EB;
    --dark-text: #1f2547;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 14px rgba(23, 17, 68, 0.06);
    --shadow: 0 12px 32px rgba(23, 17, 68, 0.10);
    --shadow-lg: 0 24px 60px rgba(23, 17, 68, 0.18);
    --shadow-red: 0 10px 28px rgba(244, 38, 38, 0.35);
    --container: 1240px;
    --header-h: 76px;
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--dark-text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Utilidades ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.text-yellow { color: var(--yellow); }

.section { padding: 96px 0; }
.section--alt { background: var(--gray-bg); }
.section--tight { padding: 56px 0; }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__head--center-light { max-width: 820px; }

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.section__eyebrow--red { color: var(--red); }
.section__eyebrow--yellow { color: var(--yellow); }

.section__title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--night);
}
.section__title--light { color: var(--white); }

.section__lead {
    margin-top: 18px;
    color: var(--gray-text);
    font-size: 1.06rem;
    line-height: 1.75;
}
.section__lead--light { color: rgba(255, 255, 255, 0.82); }

.divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    width: 100%;
}
.divider span { display: block; height: 4px; border-radius: 4px; }
.divider__blue { width: 56px; background: var(--blue); }
.divider__red { width: 28px; background: var(--red); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.96rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    white-space: nowrap;
    cursor: pointer;
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--red { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn--red:hover { background: var(--red-2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(244,38,38,0.45); }

.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 26px rgba(0,105,168,0.32); }
.btn--blue:hover { background: var(--blue-2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,114,184,0.42); }

.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn--ghost:hover { background: var(--white); color: var(--night); transform: translateY(-3px); }

.btn--ghost-dark { background: transparent; color: var(--night); border: 2px solid var(--gray-border); }
.btn--ghost-dark:hover { border-color: var(--night); background: var(--gray-bg); }

/* ---------- Píldora / Etiqueta ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}
.pill--hero {
    background: rgba(255, 196, 0, 0.15);
    color: var(--yellow);
    border: 1px solid rgba(255, 196, 0, 0.4);
    backdrop-filter: blur(8px);
    margin-bottom: 22px;
}

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */
.topbar {
    background: #100c2e;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 42px;
    flex-wrap: wrap;
}
.topbar__left, .topbar__right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; transition: color 0.25s; }
.topbar__item i { color: var(--yellow); font-size: 0.85rem; }
.topbar__right .topbar__item:hover { color: var(--white); }

/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--night);
    box-shadow: 0 4px 24px rgba(23, 17, 68, 0.18);
    transition: box-shadow 0.3s, background 0.3s;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.logo__img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo__img--header {
    max-width: 92px;
    max-height: 58px;
}

.logo__img--footer {
    max-width: 110px;
    max-height: 80px;
}

/* Se dejan anuladas por si en algún punto quedan versiones antiguas del logo */
.logo__mark,
.logo__text,
.logo__accent {
    display: none;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; align-items: center; }
.nav__link {
    font-weight: 500;
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 6px 0;
    transition: color 0.25s;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--yellow);
    transition: width 0.3s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.header__cta { padding: 11px 22px; font-size: 0.92rem; }

/* ---------- Hamburguesa ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px; height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}
.hamburger span {
    display: block;
    width: 26px; height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s var(--ease);
}
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 30, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1099;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--night);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://soterhseq.com/wp-content/uploads/2026/06/grand_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(110deg, rgba(23,17,68,0.96) 0%, rgba(33,25,90,0.88) 45%, rgba(23,17,68,0.62) 100%);
}
.hero__pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
        radial-gradient(rgba(0,114,184,0.18) 1px, transparent 1px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
    opacity: 0.7;
    mask-image: linear-gradient(120deg, black 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(120deg, black 0%, transparent 70%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 120px 24px 90px;
}

.hero__title {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 20px;
}
.hero__text {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero__text strong { color: var(--yellow); }

.hero__benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 34px;
}
.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease), background 0.3s;
}
.benefit:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); }
.benefit__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255, 196, 0, 0.2);
    color: var(--yellow);
    font-size: 1rem;
}
.benefit__text { display: flex; flex-direction: column; line-height: 1.2; }
.benefit__text strong { color: var(--white); font-size: 0.86rem; font-weight: 600; }
.benefit__text span { color: rgba(255,255,255,0.65); font-size: 0.74rem; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }

.hero__trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--night);
    margin-left: -12px;
}
.avatar:first-child { margin-left: 0; }
.stars { color: var(--yellow); display: flex; gap: 2px; font-size: 0.85rem; margin-bottom: 2px; }
.trust__info span { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.trust__info strong { color: var(--white); }

/* ---------- Hero visual ---------- */
.hero__visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__card-float {
    position: absolute;
    top: 14%;
    left: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 280px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.3);
    animation: float 5s ease-in-out infinite;
}
.hero__card-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--night);
    font-size: 1.3rem;
}
.hero__card-float h3 { color: var(--white); font-size: 1.05rem; font-weight: 700; }
.hero__card-float p { color: rgba(255,255,255,0.8); font-size: 0.86rem; margin: 0; }

.hero__badge {
    position: relative;
    width: 200px; height: 200px;
    display: grid;
    place-items: center;
}
.hero__badge .badge-spin { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hero__badge .badge__text {
    fill: var(--yellow);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: var(--font);
}
.hero__badge-center {
    display: grid;
    place-items: center;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
    color: var(--night);
    font-size: 2.6rem;
    box-shadow: 0 14px 40px rgba(255, 196, 0, 0.45);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   STATS
   ========================================================= */
.stats {
    background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
    padding: 60px 0;
    position: relative;
    z-index: 3;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.stat {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s var(--ease), background 0.3s;
}
.stat:hover { transform: translateY(-5px); background: rgba(255,255,255,0.09); }
.stat__icon {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: rgba(255, 196, 0, 0.15);
    color: var(--yellow);
    font-size: 1.3rem;
}
.stat__num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}
.stat__label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 4px; }

/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */
.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 34px 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    border-top: 4px solid var(--blue);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.about-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.about-card--dark {
    background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
    border-top-color: var(--yellow);
    color: var(--white);
}
.about-card--dark p { color: rgba(255,255,255,0.82); }
.about-card__icon {
    display: inline-grid;
    place-items: center;
    width: 58px; height: 58px;
    border-radius: 16px;
    background: rgba(0, 105, 168, 0.1);
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.about-card__icon--yellow { background: rgba(255,196,0,0.18); color: var(--yellow); }
.about-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--night); }
.about-card--dark .about-card__title { color: var(--white); }
.about-card p { color: var(--gray-text); font-size: 0.95rem; line-height: 1.7; }

/* =========================================================
   POLÍTICA DE CALIDAD
   ========================================================= */
.policy {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    color: var(--white);
}
.policy__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin: 8px 0 14px; }
.policy__content p { color: rgba(255,255,255,0.9); line-height: 1.8; }
.policy__list { display: grid; gap: 14px; }
.policy__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(6px);
}
.policy__list i { color: var(--yellow); font-size: 1.15rem; }

/* =========================================================
   SERVICIOS + TABS
   ========================================================= */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-text);
    background: var(--white);
    border: 2px solid var(--gray-border);
    transition: all 0.3s var(--ease);
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab--active {
    background: var(--night);
    color: var(--white);
    border-color: var(--night);
    box-shadow: 0 10px 24px rgba(23,17,68,0.25);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
[data-panel="hidden"] { display: none; }

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--blue);
}
.service-card__icon {
    display: inline-grid;
    place-items: center;
    width: 62px; height: 62px;
    border-radius: 16px;
    background: rgba(0, 105, 168, 0.1);
    color: var(--blue);
    font-size: 1.6rem;
    margin-bottom: 18px;
    transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-card__icon { background: var(--blue); color: var(--white); }
.service-card__title { font-size: 1.25rem; font-weight: 700; color: var(--night); margin-bottom: 10px; }
.service-card p { color: var(--gray-text); font-size: 0.94rem; margin-bottom: 18px; line-height: 1.65; }
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue);
    font-size: 0.9rem;
    transition: gap 0.3s;
}
.service-card__link:hover { gap: 14px; }

/* =========================================================
   PLANES
   ========================================================= */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}
.plan {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.plan--featured {
    background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 100%);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
    z-index: 2;
}
.plan--featured:hover { transform: scale(1.04) translateY(-8px); }
.plan__badge {
    position: absolute;
    top: 22px; right: 22px;
    background: var(--yellow);
    color: var(--night);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
}
.plan__head { margin-bottom: 22px; }
.plan__name { font-size: 1.45rem; font-weight: 800; color: var(--night); }
.plan--featured .plan__name { color: var(--white); }
.plan__range { color: var(--gray-text); font-size: 0.92rem; }
.plan--featured .plan__range { color: rgba(255,255,255,0.7); }
.plan__price {
    font-size: 1rem;
    color: var(--gray-text);
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-border);
}
.plan--featured .plan__price { color: rgba(255,255,255,0.75); border-bottom-color: rgba(255,255,255,0.15); }
.plan__price strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--night); line-height: 1.1; margin-top: 4px; }
.plan--featured .plan__price strong { color: var(--yellow); }
.plan__price span { font-size: 0.86rem; }
.plan__features { display: grid; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan__features li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.93rem; }
.plan__features i { color: var(--blue); margin-top: 3px; }
.plan--featured .plan__features li { color: rgba(255,255,255,0.9); }
.plan--featured .plan__features i { color: var(--yellow); }
.plan__btn { width: 100%; }

/* =========================================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card__icon {
    display: inline-grid;
    place-items: center;
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(0, 105, 168, 0.1);
    color: var(--blue);
    font-size: 1.5rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.why-card:hover .why-card__icon { background: var(--blue); color: var(--white); transform: rotate(8deg); }
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--night); margin-bottom: 8px; }
.why-card p { color: var(--gray-text); font-size: 0.88rem; line-height: 1.6; }

/* =========================================================
   EMERGENCIAS (sección oscura)
   ========================================================= */
.emergency {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--night);
}
.emergency__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,114,184,0.25), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255,196,0,0.12), transparent 40%);
}
.emergency .container { position: relative; z-index: 1; }
.emergency__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 50px;
}
.emergency-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px 22px;
    backdrop-filter: blur(10px);
    transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.emergency-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.11); }
.emergency-card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255, 196, 0, 0.16);
    color: var(--yellow);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.emergency-card h3 { color: var(--white); font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.emergency-card p { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.6; }
.emergency__cta { text-align: center; }

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}
.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
}
.gallery__item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(23,17,68,0.25) 0%, transparent 40%, rgba(23,17,68,0.35) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--yellow);
    color: var(--night);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.testimonial {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial__quote { font-size: 2.4rem; color: rgba(0,105,168,0.18); line-height: 1; margin-bottom: 8px; }
.testimonial .stars { margin-bottom: 14px; }
.testimonial p { color: var(--dark-text); font-style: italic; font-size: 0.98rem; line-height: 1.75; margin-bottom: 24px; }
.testimonial__author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--gray-border); }
.testimonial__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.testimonial__author strong { display: block; color: var(--night); font-size: 1rem; }
.testimonial__author span { color: var(--gray-text); font-size: 0.86rem; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contact__info {
    background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 100%);
    color: var(--white);
    padding: 46px 40px;
}
.contact__info-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.contact__info > p { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin-bottom: 30px; }
.contact__blocks { display: grid; gap: 22px; margin-bottom: 30px; }
.contact__block { display: flex; gap: 14px; align-items: flex-start; }
.contact__block-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 196, 0, 0.16);
    color: var(--yellow);
    font-size: 1.1rem;
}
.contact__block strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.contact__block a { display: block; color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: color 0.25s; }
.contact__block a:hover { color: var(--yellow); }
.contact__highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--yellow);
    color: var(--night);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
}

.contact__form-wrap { padding: 46px 40px; }
.contact__form-title { font-size: 1.5rem; font-weight: 800; color: var(--night); margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form__group label { font-size: 0.88rem; font-weight: 600; color: var(--dark-text); margin-bottom: 7px; }
.form__group label span { color: var(--red); }
.form__group input, .form__group select, .form__group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    background: var(--gray-bg);
    color: var(--dark-text);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    width: 100%;
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0,105,168,0.1);
}
.form__group.invalid input, .form__group.invalid select, .form__group.invalid textarea {
    border-color: var(--red);
    background: rgba(244,38,38,0.04);
}
.form__error { color: var(--red); font-size: 0.8rem; margin-top: 5px; min-height: 0; }

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success__icon {
    display: inline-grid;
    place-items: center;
    width: 78px; height: 78px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-size: 2.4rem;
}
.form-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--night); margin-bottom: 10px; }
.form-success p { color: var(--gray-text); margin-bottom: 24px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--night); color: rgba(255,255,255,0.7); padding-top: 70px; }
.footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { margin: 18px 0 22px; font-size: 0.92rem; line-height: 1.7; max-width: 340px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
}
.footer__social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer__col h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.footer__col li i { color: var(--yellow); width: 16px; }
.footer__col a { transition: color 0.25s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 24px;
    font-size: 0.86rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer__tagline { font-weight: 600; }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 999;
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s var(--ease);
    animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-top {
    position: fixed;
    bottom: 100px; right: 28px;
    z-index: 998;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--night);
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--blue); transform: translateY(-3px); }

/* =========================================================
   ANIMACIONES SCROLL REVEAL
   ========================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* =========================================================
   AJUSTE FINAL LOGO HEADER Y FOOTER
   ========================================================= */

/* Header: evita que el logo se desborde */
.header .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 58px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Imagen del logo en header */
.header .logo img,
.header .logo__img,
.header .logo__img--header {
    display: block;
    width: auto !important;
    height: 48px !important;
    max-width: 120px !important;
    max-height: 48px !important;
    object-fit: contain;
}

/* Footer: puede ser un poco más grande */
.footer .logo,
.footer .logo--footer {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 150px;
    height: 80px;
    overflow: hidden;
}

/* Imagen del logo en footer */
.footer .logo img,
.footer .logo__img,
.footer .logo__img--footer {
    display: block;
    width: auto !important;
    height: 70px !important;
    max-width: 150px !important;
    max-height: 70px !important;
    object-fit: contain;
}

/* Por seguridad, ocultar elementos antiguos si quedaron en el HTML */
.logo__mark,
.logo__text,
.logo__accent {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; gap: 30px; }
    .hero__visual { display: none; }
    .about__grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .emergency__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
    .stats__grid { grid-template-columns: repeat(3, 1fr); }
    .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .plan--featured { transform: none; }
    .plan--featured:hover { transform: translateY(-8px); }
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    /* Menú móvil */
    .topbar { display: none; }
    .hamburger { display: flex; }
    .nav {
        position: fixed;
        top: 0; right: 0;
        width: min(82vw, 360px);
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        background: linear-gradient(165deg, var(--night), var(--night-2));
        padding: 80px 36px 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 1100;
        box-shadow: -20px 0 60px rgba(0,0,0,0.4);
    }
    .nav.open { transform: translateX(0); }
    .nav__list { flex-direction: column; gap: 22px; align-items: stretch; width: 100%; }
    .nav__link { display: block; font-size: 1.15rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav__link::after { display: none; }
    .header__cta { width: 100%; padding: 14px; font-size: 1rem; }

    .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .header .logo {
        width: 90px;
        height: 52px;
    }

    .header .logo img,
    .header .logo__img,
    .header .logo__img--header {
        height: 42px !important;
        max-width: 90px !important;
        max-height: 42px !important;
    }

    .footer .logo,
    .footer .logo--footer {
        width: 120px;
        height: 70px;
    }

    .footer .logo img,
    .footer .logo__img,
    .footer .logo__img--footer {
        height: 60px !important;
        max-width: 120px !important;
        max-height: 60px !important;
    }
}

@media (max-width: 720px) {
    .section { padding: 64px 0; }
    .hero { min-height: auto; }
    .hero__inner { padding: 130px 0 70px; }
    .hero__benefits { grid-template-columns: repeat(2, 1fr); }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .about__grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid, .emergency__grid { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery__item--tall { grid-row: span 1; }
    .gallery__item--wide { grid-column: span 2; }
    .policy { grid-template-columns: 1fr; gap: 30px; padding: 34px 24px; }
    .footer__top { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .contact__info, .contact__form-wrap { padding: 34px 24px; }
    .back-top { bottom: 90px; right: 18px; }
    .whatsapp-float { right: 18px; bottom: 22px; }
}

@media (max-width: 420px) {
    .container { padding-inline: 18px; }
    .hero__benefits { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery__item--wide { grid-column: span 1; }
}

/* ---------- Accesibilidad: respeta reduce-motion ---------- */
@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;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
