@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   SCS Soluciones Integrales — Hoja de estilos principal
   ========================================================================== */

:root {
    --navy: #003366;
    --navy-dark: #00264d;
    --blue: #007bff;
    --blue-dark: #0056b3;
    --blue-strong: #0062cc;
    --green: #2e7d32;
    --green-dark: #1f5f27;
    --orange: #ff9800;
    --sky: #29b6f6;
    --ink: #0b1f3a;
    --muted: #5b6b80;
    --pale: #f3f8fd;
    --line: #dbe7f4;
    --white: #ffffff;
    --container: 1240px;
    --radius: 18px;
    --shadow-sm: 0 4px 16px rgba(0, 38, 77, .07);
    --shadow-md: 0 14px 34px rgba(0, 38, 77, .12);
    --shadow-lg: 0 26px 60px rgba(0, 26, 60, .20);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: 'Nunito Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-fill {
    fill: currentColor;
    stroke: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(219, 231, 244, .9);
    box-shadow: 0 2px 14px rgba(0, 38, 77, .06);
    backdrop-filter: blur(10px);
    transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 26px rgba(0, 38, 77, .11);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: auto;
    height: 52px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #102a4c;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(0, 123, 255, .28);
}

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 24px;
    background: var(--green);
    color: var(--white);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(46, 125, 50, .26);
    transition: background .2s ease, transform .2s ease;
}

.header-whatsapp:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.header-whatsapp .icon {
    width: 21px;
    height: 21px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero / Carrusel
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(115deg, #002a5c 0%, #003f86 48%, #0071d1 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(41, 182, 246, .34), transparent 48%),
        radial-gradient(ellipse at 12% 92%, rgba(0, 123, 255, .38), transparent 52%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -35%;
    right: -8%;
    width: 52%;
    height: 170%;
    background:
        linear-gradient(130deg, transparent 24%, rgba(41, 182, 246, .16) 25% 28%, transparent 29% 34%, rgba(255, 255, 255, .10) 35% 38%, transparent 39%);
    transform: skewX(-14deg);
    pointer-events: none;
}

.hero-carousel {
    position: relative;
    z-index: 2;
}

.hero-slides {
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(46px, 6.5vw, 80px) 0 118px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease, visibility .55s;
}

.hero-slide.is-active {
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #9fe0ff;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    flex: 0 0 28px;
    border-radius: 2px;
    background: var(--sky);
}

.hero h1,
.hero h2 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(32px, 3.9vw, 52px);
    font-weight: 900;
    letter-spacing: -.022em;
    line-height: 1.08;
}

.hero h1 span,
.hero h2 span {
    color: #5fd0ff;
}

.hero-description {
    max-width: 575px;
    margin-bottom: 28px;
    color: #dcecff;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button-green {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(76, 175, 80, .28);
}

.button-green:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.button-outline {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .04);
    color: var(--white);
}

.button-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

.button-white {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.button-white:hover {
    background: #eaf3ff;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-frame {
    padding: 10px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 32px 70px rgba(0, 15, 40, .36);
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.hero-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    border-radius: 11px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: -16px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 900;
}

.hero-badge .icon {
    width: 19px;
    height: 19px;
    color: var(--green);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    backdrop-filter: blur(5px);
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.hero-arrow:hover {
    background: var(--white);
    color: var(--navy);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 45px;
    z-index: 5;
    display: flex;
    gap: 2px;
    transform: translateX(-50%);
}

.hero-dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.hero-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .42);
    transform: translate(-50%, -50%);
    transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active::before {
    width: 24px;
    background: var(--white);
}

/* ==========================================================================
   Beneficios
   ========================================================================== */

.benefits-wrap {
    position: relative;
    z-index: 6;
    margin-top: -38px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 800;
}

.benefit + .benefit {
    border-left: 1px solid var(--line);
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--pale);
    color: var(--blue);
}

.benefit-icon .icon {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Secciones y encabezados
   ========================================================================== */

.section {
    padding: clamp(56px, 7vw, 84px) 0;
}

.section-heading {
    max-width: 730px;
    margin: 0 auto clamp(30px, 4vw, 44px);
    text-align: center;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue-strong);
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.15;
}

.section-heading h2 span {
    color: var(--blue);
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.section-heading.align-left {
    max-width: none;
    margin-left: 0;
    text-align: left;
}

/* ==========================================================================
   Sistemas
   ========================================================================== */

.system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.system-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.system-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 4px;
    background: var(--accent);
}

.system-card.blue {
    --accent: #007bff;
    --accent-strong: #0062cc;
    --accent-soft: #e8f2ff;
}

.system-card.green {
    --accent: #2e9e4f;
    --accent-strong: #2e7d32;
    --accent-soft: #e9f8ee;
}

.system-card.orange {
    --accent: #ef8b00;
    --accent-strong: #b45309;
    --accent-soft: #fff3e2;
}

.system-card.purple {
    --accent: #7b3ff2;
    --accent-strong: #6b2fe0;
    --accent-soft: #f1eafe;
}

.system-card:hover,
.system-card:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.system-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef5fc;
}

.system-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.system-card:hover .system-media img {
    transform: scale(1.04);
}

.system-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 22px;
}

.system-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.system-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.system-icon .icon {
    width: 21px;
    height: 21px;
}

.system-title h3 {
    margin: 0;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

.system-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.35;
}

.system-desc {
    flex: 1;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--accent-strong, var(--accent));
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    transition: filter .2s ease;
}

.card-button .icon {
    width: 16px;
    height: 16px;
}

.system-card:hover .card-button {
    filter: brightness(.94);
}

/* ==========================================================================
   Servicios
   ========================================================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.service-card:hover,
.service-card:focus-visible {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.service-media {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--pale);
}

.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 26, 60, .52));
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    left: 22px;
    bottom: -26px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: var(--blue);
}

.service-icon .icon {
    width: 27px;
    height: 27px;
}

.service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 40px 24px 26px;
}

.service-body h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.service-body p {
    flex: 1;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue-strong);
    font-size: 13.5px;
    font-weight: 900;
}

.text-link .icon {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.service-card:hover .text-link .icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Sectores
   ========================================================================== */

.sectors {
    background: var(--pale);
}

.sectors-inner {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 58px);
}

.sector-photo {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.sector-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 26, 60, .35));
}

.sector-photo-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-sm);
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 800;
}

.sector-photo-badge .icon {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.sector-content .section-heading {
    margin-bottom: 22px;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sector-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 138px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    color: var(--white);
    transition: transform .28s ease, box-shadow .28s ease;
}

.sector-card:hover,
.sector-card:focus-visible {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.sector-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sector-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 26, 60, .06) 18%, rgba(0, 26, 60, .84));
}

.sector-card:hover img {
    transform: scale(1.06);
}

.sector-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.25;
}

.sector-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

.sector-icon .icon {
    width: 17px;
    height: 17px;
}

/* ==========================================================================
   Experiencia
   ========================================================================== */

.experience {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 72px) 0;
    color: var(--white);
    background: linear-gradient(112deg, #002a5c 0%, #004a99 55%, #0071d1 100%);
    text-align: center;
}

.experience::before {
    content: "";
    position: absolute;
    top: -45%;
    right: -10%;
    width: 55%;
    height: 190%;
    background: linear-gradient(130deg, transparent 30%, rgba(41, 182, 246, .16) 31% 35%, transparent 36% 42%, rgba(255, 255, 255, .08) 43% 46%, transparent 47%);
    transform: skewX(-14deg);
    pointer-events: none;
}

.experience::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 15%, rgba(41, 182, 246, .22), transparent 48%);
    pointer-events: none;
}

.experience-inner {
    position: relative;
    z-index: 2;
}

.experience-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    color: #8fe0ff;
}

.experience-icon .icon {
    width: 28px;
    height: 28px;
}

.experience h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.experience h2 span {
    color: #5fd0ff;
}

.experience p {
    max-width: 620px;
    margin: 0 auto 34px;
    color: #dcecff;
    font-size: 15.5px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

.metric {
    padding: 4px 20px;
}

.metric + .metric {
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.metric strong {
    display: block;
    color: var(--white);
    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 9px;
    color: #bfe2ff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ==========================================================================
   Clientes
   ========================================================================== */

.client-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-track {
    display: flex;
    flex: 1;
    gap: 18px;
    padding: 8px 2px 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.client-track::-webkit-scrollbar {
    display: none;
}

.client-card {
    display: flex;
    flex: 0 0 calc((100% - 72px) / 5);
    flex-direction: column;
    align-items: flex-start;
    min-height: 208px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.client-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.client-logo {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 13px;
    background: var(--pale);
    color: var(--blue);
}

.client-logo .icon {
    width: 24px;
    height: 24px;
}

.client-card h3 {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.client-card p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.client-tag {
    margin-top: auto;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eaf3ff;
    color: var(--blue-strong);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.client-arrow:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
}

.slider-dots:empty {
    display: none;
}

.slider-dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.slider-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background: #c7d8ea;
    transform: translate(-50%, -50%);
    transition: width .25s ease, background .25s ease;
}

.slider-dot.is-active::before {
    width: 24px;
    background: var(--blue);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section {
    padding-bottom: clamp(56px, 7vw, 84px);
}

.cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 54px);
    border-radius: 22px;
    background: linear-gradient(112deg, #002a5c 0%, #004a99 60%, #0060b8 100%);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.cta::after {
    content: "";
    position: absolute;
    top: -60%;
    right: -5%;
    width: 42%;
    height: 220%;
    background: linear-gradient(130deg, transparent 34%, rgba(41, 182, 246, .18) 35% 39%, transparent 40% 46%, rgba(255, 255, 255, .08) 47% 50%, transparent 51%);
    transform: skewX(-14deg);
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.cta-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.cta-copy p {
    margin-bottom: 0;
    color: #cfe6ff;
    font-size: 14.5px;
    line-height: 1.65;
}

.cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta .button {
    min-height: 62px;
    padding: 0 28px;
    border-radius: 12px;
    font-size: 15px;
}

.cta .button .icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: var(--pale);
    color: var(--muted);
    text-align: center;
}

.site-footer p {
    margin-bottom: 3px;
    font-size: 14px;
}

.site-footer .footer-name {
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.site-footer small {
    display: block;
    margin-top: 10px;
    color: #55657a;
    font-size: 12px;
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
    transition: background .2s ease, transform .2s ease;
}

.wa-float .icon {
    width: 32px;
    height: 32px;
}

.wa-float::before {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(37, 211, 102, .38);
    border-radius: 50%;
    animation: wa-pulse 2.6s ease-out infinite;
}

.wa-float:hover,
.wa-float:focus-visible {
    background: #1ebe5a;
    transform: scale(1.07);
}

.wa-tooltip {
    position: absolute;
    right: calc(100% + 13px);
    top: 50%;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.wa-float:hover .wa-tooltip,
.wa-float:focus-visible .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%);
}

@keyframes wa-pulse {
    0% {
        opacity: .8;
        transform: scale(.92);
    }
    70% {
        opacity: 0;
        transform: scale(1.22);
    }
    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .header-inner {
        min-height: 74px;
    }

    .brand img {
        height: 46px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 0;
        padding: 16px 20px 22px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
        height: 46px;
        padding: 0 16px;
        font-size: 14px;
    }

    .header-whatsapp {
        order: 2;
    }

    .hero-slides {
        padding-left: 56px;
        padding-right: 56px;
    }

    .hero-slide {
        padding-bottom: 112px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .system-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 900px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 46px 0 108px;
    }

    .hero-copy {
        max-width: 680px;
    }

    .hero-visual {
        width: 100%;
        max-width: 660px;
    }

    .hero-frame {
        transform: none;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(32px, 6vw, 44px);
    }

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

    .benefit:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .benefit:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .sectors-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .sector-photo {
        aspect-ratio: 16 / 9;
    }

    .service-media {
        height: 190px;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .button {
        flex: 1;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 86px;
    }

    .container {
        width: min(100% - 32px, var(--container));
    }

    .hero-slides {
        padding-left: 0;
        padding-right: 0;
    }

    .header-inner {
        gap: 12px;
    }

    .brand img {
        height: 42px;
    }

    .header-whatsapp {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        justify-content: center;
    }

    .wa-label {
        display: none;
    }

    .hero-slide {
        padding: 38px 0 98px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        bottom: 33px;
    }

    .hero-badge {
        left: 10px;
        bottom: 12px;
        padding: 10px 13px;
        font-size: 11.5px;
    }

    .hero-description {
        margin-bottom: 22px;
    }

    .benefits-wrap {
        margin-top: -26px;
    }

    .benefit {
        gap: 11px;
        padding: 16px 14px;
        font-size: 13px;
    }

    .benefit-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .benefit-icon .icon {
        width: 19px;
        height: 19px;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .system-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .system-media {
        aspect-ratio: 16 / 8;
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .service-media {
        height: 200px;
    }

    .sector-grid {
        gap: 10px;
    }

    .sector-card {
        min-height: 124px;
    }

    .sector-card-content {
        padding: 12px;
        font-size: 12.5px;
    }

    .sector-photo-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 11.5px;
    }

    .experience p {
        margin-bottom: 26px;
        font-size: 14px;
    }

    .metric {
        padding: 4px 8px;
    }

    .metric span {
        font-size: 10px;
        letter-spacing: .04em;
    }

    .client-card {
        flex-basis: calc((100% - 18px) / 2);
        min-height: 200px;
    }

    .client-arrow {
        display: none;
    }

    .client-track {
        gap: 14px;
    }

    .cta {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .cta .button {
        width: 100%;
        flex: none;
    }

    .cta-actions {
        flex-direction: column;
        gap: 10px;
    }

    .wa-float {
        right: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }

    .wa-float .icon {
        width: 29px;
        height: 29px;
    }

    .wa-tooltip {
        display: none;
    }
}

@media (max-width: 520px) {
    .hero h1,
    .hero h2 {
        font-size: 30px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .sector-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sector-card {
        min-height: 116px;
    }

    .client-card {
        flex-basis: 82%;
    }

    .metrics {
        grid-template-columns: minmax(0, 1fr);
        max-width: 320px;
        gap: 18px;
    }

    .metric + .metric {
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, .22);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ==========================================================================
   V2 � Navegaci�n con submen�
   ========================================================================== */

.nav-item {
    position: relative;
    display: flex;
}

.nav-drop-toggle {
    gap: 6px;
    background: transparent;
}

.nav-caret {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.nav-drop-toggle[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

.nav-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 120;
    display: none;
    width: 310px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-drop-toggle[aria-expanded="true"] + .nav-drop {
    display: block;
}

.nav-drop-label {
    display: block;
    padding: 6px 12px 8px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-drop-link {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    transition: background .18s ease, color .18s ease;
}

.nav-drop-link strong {
    display: block;
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.3;
}

.nav-drop-link span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.nav-drop-link:hover,
.nav-drop-link:focus-visible,
.nav-drop-link.active {
    background: var(--pale);
}

.nav-drop-link:hover strong,
.nav-drop-link.active strong {
    color: var(--blue-strong);
}

/* ==========================================================================
   V2 � Rubros
   ========================================================================== */

.rubros {
    background: var(--pale);
}

.rubro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.rubro-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.rubro-card:hover,
.rubro-card:focus-visible {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.rubro-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dce8f4;
}

.rubro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.rubro-card:hover .rubro-media img {
    transform: scale(1.06);
}

.rubro-icon {
    position: absolute;
    left: 13px;
    bottom: 13px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 11px;
    background: rgba(0, 38, 77, .88);
    color: var(--white);
    backdrop-filter: blur(3px);
}

.rubro-icon .icon {
    width: 20px;
    height: 20px;
}

.rubro-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.rubro-body strong {
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.rubro-body > span:not(.rubro-link) {
    color: var(--muted);
    font-size: 12.8px;
    line-height: 1.55;
}

.rubro-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--blue-strong);
    font-size: 12px;
    font-weight: 900;
}

.rubro-link .icon {
    width: 15px;
    height: 15px;
    transition: transform .22s ease;
}

.rubro-card:hover .rubro-link .icon {
    transform: translateX(3px);
}

.rubro-more {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 22px;
    border: 1.5px dashed #9dc4ee;
    border-radius: 14px;
    background: #eaf3ff;
    color: var(--navy);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.rubro-more:hover,
.rubro-more:focus-visible {
    border-color: var(--blue);
    background: #deedff;
    transform: translateY(-2px);
}

.rubro-more-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
}

.rubro-more > span:nth-child(2) {
    font-size: 13.5px;
    line-height: 1.55;
}

.rubro-more strong {
    display: block;
    font-size: 14.5px;
    font-weight: 900;
}

.rubro-more > .icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
    flex: 0 0 20px;
    color: var(--blue-strong);
}

/* ==========================================================================
   V2 � Videos
   ========================================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    text-align: left;
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.video-card:hover,
.video-card:focus-visible {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #001a3c;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, opacity .25s ease;
}

.video-card:hover .video-thumb img {
    opacity: .88;
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(0, 20, 45, .58);
    color: var(--white);
    transform: translate(-50%, -50%);
    transition: background .2s ease, transform .2s ease;
    backdrop-filter: blur(2px);
}

.video-play .icon {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.video-card:hover .video-play {
    background: #e62117;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px 13px 14px;
}

.video-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-body span {
    margin-top: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.videos-footer {
    margin-top: 28px;
    text-align: center;
}

.videos-empty {
    padding: 34px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: var(--pale);
    color: var(--muted);
    text-align: center;
}

.button-blue {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(0, 123, 255, .24);
}

.button-blue:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.button-blue .icon {
    width: 19px;
    height: 19px;
}

/* ==========================================================================
   V2 � Redes sociales
   ========================================================================== */

.social {
    background: var(--pale);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.social-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
    padding: 18px 30px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.social-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand, var(--blue));
}

.social-card:hover,
.social-card:focus-visible {
    border-color: var(--brand, var(--blue));
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.social-youtube { --brand: #e62117; }
.social-facebook { --brand: #1877f2; }
.social-instagram { --brand: #d62976; }
.social-tiktok { --brand: #111111; }
.social-linkedin { --brand: #0a66c2; }

.social-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: #f3f8fd;
    color: var(--brand, var(--blue));
}

.social-icon .icon {
    width: 21px;
    height: 21px;
}

.social-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 1px;
}

.social-body strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.social-handle {
    color: var(--brand, var(--blue-strong));
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-label {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.social-metric {
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
}

.social-arrow {
    position: absolute;
    top: 13px;
    right: 11px;
    width: 15px;
    height: 15px;
    color: var(--brand, var(--blue));
}

/* --------------------------------------------------------------------------
   V4 · Programa Partner
   -------------------------------------------------------------------------- */

.partner-home {
    padding: 0 0 clamp(42px, 5vw, 68px);
    background: var(--pale);
}

.partner-home-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid #b9d8f5;
    border-radius: 20px;
    background: linear-gradient(110deg, #eaf5ff, #f7fbff);
    box-shadow: var(--shadow-sm);
}

.partner-home-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 16px;
    background: var(--blue);
    color: var(--white);
}

.partner-home-icon .icon {
    width: 29px;
    height: 29px;
}

.partner-home-copy {
    flex: 1;
}

.partner-home-copy .section-kicker {
    margin-bottom: 5px;
}

.partner-home-copy h2 {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 900;
}

.partner-home-copy h2 span {
    color: var(--blue-strong);
}

.partner-home-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.partner-home-card .button {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .partner-home-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .partner-home-card .button {
        width: 100%;
    }
}

/* ==========================================================================
   V2 � Lightbox de video
   ========================================================================== */

body.video-open {
    overflow: hidden;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: 24px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 12, 28, .88);
    backdrop-filter: blur(4px);
}

.video-modal-box {
    position: relative;
    z-index: 2;
    width: min(980px, 94vw);
}

.video-modal-frame {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    transition: background .2s ease;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    background: rgba(255, 255, 255, .26);
}

.video-modal-close .icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   V2 � Footer ampliado
   ========================================================================== */

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 32px;
    padding: 44px 0 12px;
    text-align: left;
}

.footer-brand p {
    max-width: 360px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334b68;
    font-size: 13px;
    font-weight: 700;
    transition: color .2s ease;
}

.footer-contact a:hover {
    color: var(--blue);
}

.footer-contact .icon {
    width: 16px;
    height: 16px;
    color: var(--blue);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
}

.footer-nav a {
    color: #334b68;
    font-size: 13.5px;
    font-weight: 800;
    transition: color .2s ease;
}

.footer-nav a:hover {
    color: var(--blue);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-social a:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-social .icon {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    text-align: left;
}

.footer-bottom small {
    margin: 0;
}

/* ==========================================================================
   V2 � Aparici�n suave
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   V2 � Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .nav-item {
        display: block;
    }

    .nav-drop-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-drop {
        position: static;
        width: auto;
        margin-top: 4px;
        padding: 6px;
        border-color: var(--line);
        box-shadow: none;
    }

    .rubro-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .social-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rubro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-social {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 760px) {
    .rubro-grid {
        gap: 14px;
    }

    .rubro-body {
        padding: 14px 14px 15px;
    }

    .rubro-body strong {
        font-size: 14px;
    }

    .rubro-body > span:not(.rubro-link) {
        font-size: 12.2px;
    }

    .rubro-more {
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .rubro-more > .icon {
        display: none;
    }

    .video-grid {
        gap: 14px;
    }

    .social-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 34px;
    }

    .video-modal {
        padding: 14px;
    }
}

@media (max-width: 520px) {
    .rubro-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rubro-media {
        aspect-ratio: 16 / 9;
    }

    .video-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
