/* =========================================================
   Grupo IDUK — Hoja de estilo base
   Paleta tomada del logo (azul marino profundo)
   ========================================================= */

:root {
    --navy: #0E1E47;
    --navy-deep: #081431;
    --navy-soft: #1a2c63;
    --accent: #3a5bbf;
    --accent-light: #5f7ddd;
    --gold: #c8913a;

    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #f4f6fb;
    --border: #e5e8f0;
    --text: #0E1E47;
    --text-muted: #5b657d;
    --text-on-dark: #e8ecf6;
    --muted-on-dark: #9aa6c2;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 8px rgba(14, 30, 71, 0.06);
    --shadow-md: 0 12px 32px rgba(14, 30, 71, 0.10);
    --shadow-lg: 0 30px 60px rgba(14, 30, 71, 0.18);

    --container: 1240px;
    --header-h: 84px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

address {
    font-style: normal;
}

/* ---------- Layout helpers ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.eyebrow-light {
    color: var(--accent-light);
}

.eyebrow-spaced {
    margin-top: 24px;
}

.h-display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    color: var(--navy);
}

.h-display.light {
    color: var(--white);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(58, 91, 191, 0.35);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 18px 34px;
    font-size: 1rem;
}

.btn-arrow {
    font-weight: 400;
    display: inline-block;
    transition: transform .2s ease;
}

.btn:hover .btn-arrow {
    transform: translate(3px, -3px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s ease, gap .2s ease;
}

.link-arrow:hover {
    border-color: var(--navy);
    gap: 14px;
}

/* ---------- Header flotante (sobre el hero) ---------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 20px 0;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

.site-header.is-scrolled {
    position: fixed;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: var(--shadow-sm);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo grande (mayor en hero; reduce cuando hace scroll) */
.logo {
    display: inline-block;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: padding .25s ease;
}

.logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-header.is-scrolled .logo {
    padding: 6px 14px;
}

.site-header.is-scrolled .logo img {
    height: 40px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Lang switch (blanco translúcido sobre hero, sólido en scroll) */
.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.lang-switch a {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    letter-spacing: 0.05em;
}

.lang-switch a.active {
    background: var(--white);
    color: var(--navy);
}

.site-header.is-scrolled .lang-switch {
    background: var(--bg-soft);
    border-color: transparent;
}

.site-header.is-scrolled .lang-switch a {
    color: var(--text-muted);
}

.site-header.is-scrolled .lang-switch a.active {
    background: var(--navy);
    color: var(--white);
}

/* Botón Menú (círculo/pildora superior derecha) */
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.menu-btn:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.menu-btn-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.menu-btn-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.site-header.is-scrolled .menu-btn {
    border-color: var(--navy);
    color: var(--navy);
}

.site-header.is-scrolled .menu-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.site-header--light .lang-switch {
    background: var(--bg-soft);
    border-color: transparent;
}

.site-header--light .lang-switch a {
    color: var(--text-muted);
}

.site-header--light .lang-switch a.active {
    background: var(--navy);
    color: var(--white);
}

.site-header--light .menu-btn {
    border-color: var(--navy);
    color: var(--navy);
}

.site-header--light .menu-btn:hover {
    background: var(--navy);
    color: var(--white);
}

/* Panel de menú desplegable */
.menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    color: var(--white);
    z-index: 29;
    padding: 140px 0 64px;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.7, .05, .2, 1);
}

.menu-panel.is-open {
    transform: translateY(0);
}

.menu-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-panel-inner a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: color .2s ease, padding-left .2s ease;
}

.menu-panel-inner a:hover {
    color: var(--accent-light);
    padding-left: 12px;
}

.menu-contact {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-contact-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--white);
    text-align: left;
    transition: color .2s ease, padding-left .2s ease;
}

.menu-contact-toggle:hover,
.menu-contact-toggle.is-open {
    color: var(--accent-light);
    padding-left: 12px;
}

.menu-contact-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1;
    transition: transform .2s ease, border-color .2s ease;
}

.menu-contact-toggle.is-open .menu-contact-icon {
    transform: rotate(45deg);
    border-color: rgba(95, 125, 221, 0.75);
}

.menu-contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transform: translateY(-6px);
    transition: max-height .26s ease, opacity .2s ease, padding .26s ease, transform .26s ease;
}

.menu-contact-options.is-open {
    max-height: 150px;
    opacity: 1;
    padding: 4px 0 22px;
    transform: translateY(0);
}

.menu-panel-inner .menu-contact-options a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--text-on-dark);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.menu-panel-inner .menu-contact-options a:hover {
    padding-left: 16px;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

body.menu-open {
    overflow: hidden;
}

/* ---------- Hero (video de fondo + contenido centrado) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 80px;
    color: var(--white);
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 30, 71, 0.55) 0%, rgba(14, 30, 71, 0.65) 60%, rgba(8, 20, 49, 0.85) 100%);
    z-index: 1;
}

.hero-technical-grid {
    position: absolute;
    inset: -12%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.hero-technical-grid::before,
.hero-technical-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.hero-technical-grid::before {
    background:
        linear-gradient(115deg, transparent 0 37%, rgba(232, 236, 246, 0.12) 37.08%, rgba(232, 236, 246, 0.12) 37.22%, transparent 37.3% 100%),
        linear-gradient(115deg, transparent 0 67%, rgba(95, 125, 221, 0.14) 67.08%, rgba(95, 125, 221, 0.14) 67.24%, transparent 67.34% 100%),
        linear-gradient(90deg, rgba(232, 236, 246, 0.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(232, 236, 246, 0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 92px 92px, 92px 92px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0) 78%);
    mask-image: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0) 78%);
    animation: hero-grid-drift 18s linear infinite alternate;
}

.hero-technical-grid::after {
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(232, 236, 246, 0.13) 18.05%, rgba(232, 236, 246, 0.13) 18.16%, transparent 18.24% 100%),
        linear-gradient(90deg, transparent 0 72%, rgba(95, 125, 221, 0.12) 72.05%, rgba(95, 125, 221, 0.12) 72.18%, transparent 72.28% 100%),
        linear-gradient(145deg, transparent 0 48%, rgba(232, 236, 246, 0.1) 48.08%, rgba(232, 236, 246, 0.1) 48.22%, transparent 48.3% 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 18%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 18%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0) 100%);
    animation: hero-line-shift 14s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.08;
    max-width: 880px;
    margin: 8px auto 20px;
    letter-spacing: -0.015em;
}

.hero-subtitle {
    max-width: 640px;
    font-size: 1.05rem;
    color: var(--text-on-dark);
    opacity: 0.9;
    margin: 0 auto 56px;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-card {
    position: relative;
    grid-column: span 2;
    aspect-ratio: 5 / 4;
    min-height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: transform .3s ease, box-shadow .3s ease;
}

.hero-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.hero-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hero-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-units-logo-row {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translate(-50%, -50%);
}

.hero-units-logo {
    width: 92px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 16px 34px rgba(8, 20, 49, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-units-logo--proelectric img {
    width: 164%;
    height: 164%;
    max-width: none;
    object-fit: contain;
    transform: translateY(-5%);
}

.hero-units-logo--probuild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 20, 49, 0.85) 0%, rgba(8, 20, 49, 0.1) 60%);
}

.hero-card-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-card-label .arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    transition: background .2s ease;
}

.hero-card:hover .arrow {
    background: var(--accent);
}

@keyframes hero-grid-drift {
    from {
        transform: translate3d(-48px, -28px, 0);
    }

    to {
        transform: translate3d(48px, 28px, 0);
    }
}

@keyframes hero-line-shift {
    from {
        transform: translate3d(-56px, 20px, 0);
    }

    to {
        transform: translate3d(56px, -20px, 0);
    }
}

/* ---------- Placeholder helper ---------- */
.placeholder-img {
    background:
        linear-gradient(135deg, rgba(14, 30, 71, 0.15), rgba(14, 30, 71, 0.35)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 12px, rgba(255, 255, 255, 0) 12px 24px),
        var(--navy-soft);
    position: relative;
}

.placeholder-img::after {
    content: 'IMG';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
}

/* ---------- Stats ---------- */
.stats-section {
    background: var(--navy);
    color: var(--white);
    padding: 120px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
}

.stat-num span {
    color: var(--accent-light);
}

.stat-label {
    margin-top: 12px;
    color: var(--muted-on-dark);
    font-size: 0.95rem;
}

/* ---------- Journey block (debajo de las stats, mismo fondo navy) ---------- */
.journey-block {
    margin-top: 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.journey-media {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.journey-img {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.journey-img-primary {
    top: 0;
    left: 0;
    width: 78%;
    aspect-ratio: 4 / 5;
    z-index: 1;
}

.journey-img-secondary {
    bottom: 0;
    right: 0;
    width: 42%;
    aspect-ratio: 1 / 1;
    z-index: 2;
    border: 6px solid var(--navy);
}

.journey-copy {
    max-width: 460px;
}

.journey-title {
    margin-bottom: 20px;
}

.journey-desc {
    color: var(--muted-on-dark);
    font-size: 1.02rem;
    margin: 0 0 32px;
    line-height: 1.65;
}

/* ---------- Units ---------- */
.units-section {
    padding: 120px 0;
    background: var(--bg);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.unit-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: transform .3s ease, box-shadow .3s ease;
}

.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.unit-card-img {
    aspect-ratio: 16 / 10;
}

.hero-card-img img,
.unit-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unit-card-img {
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}

.unit-card-logo {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 74px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(8, 20, 49, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.unit-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.unit-card-logo--proelectric {
    width: 132px;
    height: 104px;
}

.unit-card-logo--probuild {
    width: 232px;
}

.unit-card-body {
    padding: 36px;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.unit-card-body h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 12px;
    color: var(--navy);
}

.unit-card-body p {
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* ---------- Program section (proyectos por unidad, con carrusel) ---------- */
.program-section {
    position: relative;
    min-height: 760px;
    padding: 120px 0 140px;
    color: var(--white);
    overflow: hidden;
}

.program-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.program-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 30, 71, 0.75) 0%, rgba(14, 30, 71, 0.45) 50%, rgba(8, 20, 49, 0.8) 100%);
    z-index: 1;
}

/* Modificadores: tinte diferente por unidad (visual distinto sin foto) */
.program-section--proelectric .program-overlay {
    background: linear-gradient(135deg, rgba(14, 30, 71, 0.82) 0%, rgba(26, 44, 99, 0.55) 50%, rgba(8, 20, 49, 0.9) 100%);
}

.program-section--probuild .program-overlay {
    background: linear-gradient(225deg, rgba(8, 20, 49, 0.88) 0%, rgba(58, 91, 191, 0.35) 55%, rgba(14, 30, 71, 0.92) 100%);
}

/* Variante "alineada a la derecha" (Probuild) — se empuja al lado derecho del viewport.
   La card mantiene su estructura interna (body izquierda + imagen derecha) para evitar
   romper el grid; sólo se espeja la posición del bloque completo y la alineación del texto. */
.program-section--probuild .program-inner {
    text-align: right;
}

.program-section--probuild .program-head {
    margin-left: auto;
    margin-right: 0;
}

.program-section--probuild .program-desc {
    margin-left: auto;
    margin-right: 0;
}

.program-section--probuild .program-actions {
    justify-content: flex-end;
}

.program-section--probuild .carousel {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: 0;
}

.program-section--probuild .carousel-controls {
    justify-content: flex-end;
}

/* Card interna: solo invertimos la alineación del copy (no el orden de columnas) */
.program-section--probuild .program-card-body {
    text-align: left;
}

/* legibilidad dentro de la card */
.program-section--probuild .program-card-tags {
    justify-content: flex-start;
}

.program-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.program-head {
    max-width: 640px;
}

.program-title {
    margin-bottom: 20px;
}

.program-desc {
    color: var(--text-on-dark);
    opacity: 0.9;
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0;
}

.program-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Carrusel — efecto "deck / baraja" (animación vertical, loop infinito) */
.carousel {
    width: min(100%, 760px);
    max-width: 760px;
    margin-top: 24px;
}

.carousel-viewport {
    position: relative;
    height: 430px;
    /* proporción más compacta y cercana a cuadrada */
    padding-bottom: 48px;
    touch-action: pan-y;
}

/* Todas las cards se apilan absolutas — su posición en el deck
   se controla con data-pos (active / back-1 / back-2 / hidden) */
.program-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 44%);
    align-items: stretch;
    background: var(--white);
    color: var(--navy);
    border-radius: 26px;
    overflow: hidden;
    height: 370px;
    min-height: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    transform-origin: 50% 50%;
    transition:
        transform .6s cubic-bezier(.4, 0, .2, 1),
        opacity .45s ease,
        box-shadow .4s ease;
    will-change: transform, opacity;
    text-decoration: none;
    cursor: pointer;
}

.program-card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.program-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.86);
    outline-offset: 6px;
}

.program-card[data-pos="active"] {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 5;
}

.program-card[data-pos="back-1"] {
    transform: translateY(24px) scale(0.965);
    opacity: 0.88;
    z-index: 4;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.program-card[data-pos="back-2"] {
    transform: translateY(46px) scale(0.93);
    opacity: 0.62;
    z-index: 3;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.program-card[data-pos="hidden"] {
    transform: translateY(66px) scale(0.89);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Estado transitorio cuando la card que era activa se va "hacia abajo del deck"
   — usado sólo en la dirección "next" para enfatizar el movimiento */
.program-card[data-pos="leaving"] {
    transform: translateY(82px) scale(0.9);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.program-card-media {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-left: 1px solid rgba(14, 30, 71, 0.08);
    background: linear-gradient(180deg, rgba(244, 246, 251, 0.12), rgba(255, 255, 255, 0));
}

.program-card-body {
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    background: var(--white);
}

.program-card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

.tag-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.tag-plain {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.program-card-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.program-card-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 600;
    margin: 0;
    color: var(--navy);
    line-height: 1.2;
}

.program-card-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 44ch;
}

.program-card-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

/* Controles */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background .2s ease, transform .2s ease;
    padding: 0;
}

.carousel-dot.is-active {
    background: var(--accent-light);
    transform: scale(1.25);
}

.center-cta {
    text-align: center;
    margin-top: 56px;
}

/* ---------- Aliados y clientes ---------- */
.partners-section {
    background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%);
    color: var(--text);
    border-top: 1px solid rgba(14, 30, 71, 0.08);
}

/* Parte superior: hero con imagen a la derecha y copy a la izquierda */
.partners-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.partners-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(95, 125, 221, 0.16) 0%, rgba(95, 125, 221, 0) 34%),
        radial-gradient(circle at 78% 28%, rgba(14, 30, 71, 0.08) 0%, rgba(14, 30, 71, 0) 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 246, 251, 0.94) 56%, rgba(229, 232, 240, 0.72) 100%);
    z-index: 0;
}

.partners-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    z-index: 0;
    opacity: 0.22;
    filter: grayscale(1) contrast(1.05);
    mix-blend-mode: multiply;
}

.partners-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(246, 248, 252, 0.94) 42%,
            rgba(238, 243, 251, 0.72) 58%,
            rgba(238, 243, 251, 0.18) 100%);
    z-index: 1;
}

.partners-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 24px;
}

.partners-copy {
    max-width: 560px;
}

.partners-copy .eyebrow {
    margin-bottom: 18px;
}

.partners-copy .h-display {
    margin-bottom: 24px;
    color: var(--navy);
}

.partners-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 36px;
    line-height: 1.65;
    max-width: 520px;
}

/* Parte inferior: marquee infinito de logos sobre fondo blanco */
.partners-marquee {
    background: var(--white);
    overflow: hidden;
    padding: 34px 0;
    position: relative;
    border-top: 1px solid rgba(14, 30, 71, 0.08);
    box-shadow: inset 0 18px 36px rgba(14, 30, 71, 0.03);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 72px;
    width: max-content;
    animation: partners-scroll 40s linear infinite;
}

.partners-section:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    min-width: 150px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    filter: grayscale(1);
    opacity: 0.7;
    transition: opacity .2s ease, filter .2s ease;
    white-space: nowrap;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo--stone img {
    max-width: 220px;
}

.partner-logo--gosselin,
.partner-logo--costa-palmas,
.partner-logo--desierto,
.partner-logo--agricole {
    height: 92px;
    min-width: 130px;
}


.partner-logo--fh {
    min-width: 180px;
}

.partner-logo--stone {
    min-width: 220px;
}

/* Mientras no hay imágenes, estilizar el nombre como "logo" placeholder */
.partner-logo span {
    padding: 10px 18px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

/* ---------- Nosotros ---------- */
.about-page {
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

.about-hero {
    padding: 160px 0 96px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-hero-grid {
    display: grid;
    width: min(calc(100vw - 48px), 1720px);
    max-width: none;
    grid-template-columns: minmax(240px, 420px) minmax(600px, 680px) minmax(240px, 420px);
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 4.2vw, 76px);
}

.about-hero-copy {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    min-width: 0;
}

.about-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.8rem, 5.7vw, 5.4rem);
    line-height: 1.02;
    text-wrap: balance;
    margin: 0 0 24px;
    color: var(--navy);
}

.about-intro {
    margin: 0 auto;
    max-width: 580px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.about-hero-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.about-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 600;
}

.about-inline-link span {
    transition: transform .2s ease;
}

.about-inline-link:hover span {
    transform: translate(3px, -3px);
}

.about-hero-media {
    display: grid;
    gap: 54px;
    min-width: 0;
}

.about-hero-media-left {
    padding-top: 42px;
}

.about-hero-media-right {
    padding-bottom: 42px;
}

.about-hero-img {
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(14, 30, 71, 0.11);
}

.about-hero-img-a,
.about-hero-img-b {
    aspect-ratio: 1 / 1;
}

.about-hero-img-c,
.about-hero-img-d {
    aspect-ratio: 4 / 3;
}

.about-statement-section {
    padding: 96px 0 120px;
    background: var(--white);
}

.about-statement-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    gap: 84px;
}

.about-statement-media img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.about-statement-copy {
    max-width: 590px;
    min-width: 0;
}

.about-statement-copy p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.72;
    margin: 0 0 20px;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 36px 0 0;
}

.about-facts div {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.about-facts dt {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1;
    color: var(--navy);
    font-weight: 600;
}

.about-facts dd {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.about-directors-section {
    padding: 96px 0 88px;
    background: var(--white);
}

.about-directors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    max-width: 100%;
}

.about-team-section {
    padding: 120px 0;
    background: var(--white);
    border-top: 1px solid rgba(14, 30, 71, 0.07);
}

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

.about-person-card {
    min-width: 0;
}

.about-person-photo {
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f7;
}

.about-person-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.about-person-card:hover .about-person-photo img {
    transform: scale(1.035);
}

.about-person-card--placeholder .about-person-photo {
    background: var(--navy);
    border: 1px solid rgba(14, 30, 71, 0.08);
}

.about-person-card--placeholder .about-person-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 1;
    transform: none;
}

.about-person-card--placeholder:hover .about-person-photo img {
    transform: none;
}

.about-person-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding-top: 18px;
}

.about-person-meta span {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.3;
}

.about-person-meta i {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent-light);
    flex: 0 0 auto;
}

.about-person-meta h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 600;
    line-height: 1.2;
}

.about-principles-section {
    padding: 112px 0;
    background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
    border-top: 1px solid rgba(14, 30, 71, 0.07);
    border-bottom: 1px solid rgba(14, 30, 71, 0.07);
}

.about-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.about-principle-card {
    background: var(--white);
    border: 1px solid rgba(14, 30, 71, 0.08);
    border-radius: 18px;
    padding: 30px;
    min-height: 230px;
    box-shadow: var(--shadow-sm);
}

.about-card-line {
    display: block;
    width: 34px;
    height: 2px;
    background: var(--accent-light);
    margin-bottom: 26px;
}

.about-principle-card h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--navy);
    margin: 0 0 14px;
}

.about-principle-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-closing-section {
    padding: 120px 0;
    background: var(--white);
}

.about-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.about-closing-text {
    max-width: 620px;
    min-width: 0;
}

.about-closing-text p {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.about-closing-text .btn {
    margin-top: 12px;
}

/* ---------- Servicios ---------- */
.services-page {
    background: var(--white);
    color: var(--text);
}

.services-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 168px 0 96px;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.services-hero-bg,
.services-hero-overlay {
    position: absolute;
    inset: 0;
}

.services-hero-bg {
    z-index: 0;
}

.services-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 20, 49, 0.94) 0%, rgba(14, 30, 71, 0.82) 44%, rgba(14, 30, 71, 0.26) 100%),
        linear-gradient(180deg, rgba(8, 20, 49, 0.38) 0%, rgba(8, 20, 49, 0.76) 100%);
}

.services-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.45fr);
    align-items: end;
    gap: 64px;
    width: 100%;
}

.services-hero-copy {
    max-width: 780px;
}

.services-hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.9rem, 6vw, 5.5rem);
    line-height: 1.02;
    margin: 8px 0 24px;
    color: var(--white);
}

.services-hero-subtitle {
    max-width: 680px;
    margin: 0 0 38px;
    color: var(--text-on-dark);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.7;
}

.services-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.services-hero-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

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

.services-hero-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.services-hero-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.services-hero-card-body {
    padding: 24px;
}

.services-hero-card-body span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.services-hero-card-body span::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.services-hero-card-body strong {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 600;
}

.services-hero-card-body p {
    margin: 14px 0 0;
    color: var(--text-on-dark);
    font-size: 0.94rem;
    line-height: 1.65;
}

.services-main-section {
    padding: 118px 0 132px;
    background: var(--white);
}

.services-main-head {
    max-width: 1020px;
    margin: 0 auto 112px;
    text-align: center;
}

.services-main-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    font-weight: 500;
}

.services-main-head .eyebrow::before {
    content: "";
    width: 44px;
    height: 2px;
    background: var(--accent-light);
}

.services-main-head h2 {
    margin: 0 0 34px;
    color: #05070c;
    font-family: var(--font-sans);
    font-size: clamp(3.6rem, 8vw, 7rem);
    line-height: 0.98;
    font-weight: 500;
}

.services-main-points {
    display: grid;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
}

.services-main-points p {
    position: relative;
    margin: 0;
    color: #141821;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.38;
}

.services-main-points p::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 20px;
    vertical-align: middle;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--accent-light) 0 3px, transparent 4px),
        rgba(95, 125, 221, 0.12);
    box-shadow: inset 0 0 0 1px rgba(95, 125, 221, 0.28);
}

.services-main-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(390px, 0.86fr);
    align-items: start;
    gap: 72px;
}

.services-main-media {
    position: relative;
    min-height: 660px;
}

.services-main-photo,
.services-main-photo-small {
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(14, 30, 71, 0.12);
}

.services-main-photo {
    width: 100%;
    height: 620px;
    object-position: center;
}

.services-main-photo-small {
    position: absolute;
    right: 12%;
    bottom: 0;
    width: 38%;
    min-width: 210px;
    aspect-ratio: 4 / 5;
    border: 10px solid var(--white);
}

.services-main-copy {
    padding-top: 10px;
}

.services-main-copy h3 {
    margin: 0 0 26px;
    color: #05070c;
    font-family: var(--font-sans);
    font-size: clamp(2.65rem, 5.2vw, 4.4rem);
    line-height: 1.05;
    font-weight: 500;
}

.services-main-copy>p {
    margin: 0 0 28px;
    color: #141821;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.58;
}

.services-main-checklist {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 18px;
}

.services-main-checklist li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    color: #111722;
    font-size: clamp(1.02rem, 1.55vw, 1.22rem);
    line-height: 1.32;
}

.services-main-checklist span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-light);
    color: var(--white);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
}

.services-main-note {
    margin-top: 12px;
    font-style: italic;
}

.services-main-after {
    max-width: 640px;
}

.services-process-section {
    position: relative;
    padding: 126px 0 132px;
    background: linear-gradient(180deg, #07132f 0%, #0b1b41 100%);
    color: var(--white);
    overflow: hidden;
}

.services-process-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
}

.services-process-section>.container {
    position: relative;
    z-index: 1;
}

.services-process-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
    align-items: end;
    gap: 76px;
    margin-bottom: 72px;
}

.services-process-heading {
    max-width: 820px;
}

.services-process-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    color: var(--text-on-dark);
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    font-weight: 500;
}

.services-process-head .eyebrow::before {
    content: "";
    width: 44px;
    height: 2px;
    background: var(--accent-light);
}

.services-process-title {
    margin: 0;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0;
}

.services-process-head p {
    max-width: 480px;
    margin: 0 0 12px;
    color: var(--text-on-dark);
    font-size: clamp(1.08rem, 1.65vw, 1.32rem);
    line-height: 1.38;
}

.services-process-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    row-gap: 88px;
}

.services-process-card {
    min-width: 0;
}

.services-process-card-media {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 6.4;
}

.services-process-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.services-process-card:hover .services-process-card-media img {
    transform: scale(1.035);
}

.services-process-card-body {
    padding-top: 28px;
}

.services-process-card-index {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.services-process-card-index::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(95, 125, 221, 0.72);
}

.services-process-card h3 {
    margin: 0 0 22px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(2.1rem, 4vw, 3.65rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.services-process-card-body p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #d7deed;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.58;
}

.services-process-card-body ul {
    list-style: none;
    max-width: 620px;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px;
}

.services-process-card-body li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    color: var(--text-on-dark);
    font-size: clamp(0.98rem, 1.28vw, 1.08rem);
    line-height: 1.48;
}

.services-process-card-body li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: 0.66em;
    border-radius: 50%;
    background: var(--accent-light);
}

.services-sectors-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.services-sectors-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.services-sectors-media {
    position: relative;
}

.services-sectors-media::before {
    content: "";
    position: absolute;
    inset: 28px -24px -28px 36px;
    border-radius: 18px;
    background: var(--navy);
    opacity: 0.08;
}

.services-sectors-media img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.services-sectors-copy {
    max-width: 650px;
}

.services-sectors-copy p {
    margin: 0 0 30px;
    color: var(--text-muted);
    font-size: 1.03rem;
    line-height: 1.72;
}

.services-sector-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.services-sector-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(14, 30, 71, 0.1);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 8px 20px rgba(14, 30, 71, 0.05);
}

.services-sector-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.services-closing-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.services-closing-bg,
.services-closing-overlay {
    position: absolute;
    inset: 0;
}

.services-closing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-closing-overlay {
    background:
        linear-gradient(90deg, rgba(8, 20, 49, 0.94) 0%, rgba(8, 20, 49, 0.82) 44%, rgba(8, 20, 49, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 20, 49, 0.15), rgba(8, 20, 49, 0.8));
}

.services-closing-content {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 112px 24px;
}

.services-closing-content .h-display {
    max-width: 680px;
}

.services-closing-content p {
    margin: 0 0 34px;
    color: var(--text-on-dark);
    font-size: 1.08rem;
    line-height: 1.72;
    max-width: 660px;
}

/* =========================================================
   Página Unidades
   ========================================================= */

.units-page {
    background: var(--white);
    color: var(--text);
}

.units-page-hero {
    padding: 156px 0 0;
    background: var(--white);
    overflow: hidden;
}

.units-page-hero-copy {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 0;
}

.units-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #111722;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
}

.units-page-kicker::before {
    content: "";
    width: 42px;
    height: 2px;
    background: var(--accent-light);
}

.units-page-kicker--light {
    color: var(--text-on-dark);
}

.units-page-hero-title {
    margin: 0 auto;
    max-width: 980px;
    color: #05070c;
    font-family: var(--font-sans);
    font-size: 5.5rem;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: 0;
}

.units-page-hero-text {
    max-width: 760px;
    margin: 30px auto 0;
    color: #202532;
    font-size: 1.12rem;
    line-height: 1.68;
}

.units-page-hero-media {
    width: 100%;
    height: 540px;
    min-height: 380px;
    margin: 84px 0 0;
    overflow: hidden;
    background: var(--bg-soft);
}

.units-page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.unit-detail-section {
    padding: 124px 0;
    background: var(--white);
}

.unit-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 82px;
}

.unit-brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 18px 22px;
    border: 1px solid rgba(14, 30, 71, 0.09);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.unit-brand-lockup img {
    display: block;
    width: auto;
    object-fit: contain;
}

.unit-brand-lockup--proelectric img {
    height: 118px;
}

.unit-detail-copy h2,
.unit-field-copy h2,
.units-operating-head h2,
.units-page-cta h2 {
    margin: 0;
    color: #05070c;
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.unit-detail-copy p {
    margin: 28px 0 0;
    color: #202532;
    font-size: 1.06rem;
    line-height: 1.76;
}

.unit-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 36px;
}

.unit-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 700;
}

.unit-inline-link span {
    transition: transform .2s ease;
}

.unit-inline-link:hover span {
    transform: translate(3px, -3px);
}

.unit-detail-media {
    position: relative;
}

.unit-detail-media::before {
    content: "";
    position: absolute;
    inset: 34px -28px -34px 42px;
    border-radius: 18px;
    background: rgba(58, 91, 191, 0.1);
}

.unit-detail-media img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.unit-detail-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 84px;
}

.unit-detail-point {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    padding: 28px;
    border: 1px solid rgba(14, 30, 71, 0.09);
    border-radius: 18px;
    background: #f8faff;
}

.unit-detail-point>span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 0.82rem;
}

.unit-detail-point h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.25;
}

.unit-detail-point p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.62;
}

.unit-field-section {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
}

.unit-field-bg,
.unit-field-overlay {
    position: absolute;
    inset: 0;
}

.unit-field-bg {
    z-index: 0;
}

.unit-field-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.unit-field-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 20, 49, 0.96) 0%, rgba(8, 20, 49, 0.84) 40%, rgba(8, 20, 49, 0.35) 100%),
        linear-gradient(180deg, rgba(8, 20, 49, 0.42) 0%, rgba(8, 20, 49, 0.72) 100%);
}

.unit-field-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(240px, 0.38fr);
    align-items: center;
    gap: 72px;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
}

.unit-field-copy {
    max-width: 720px;
}

.unit-field-copy h2 {
    color: var(--white);
}

.unit-field-copy p {
    margin: 26px 0 0;
    color: #dbe2ef;
    font-size: 1.06rem;
    line-height: 1.72;
}

.unit-field-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin: 34px 0 0;
    padding: 0;
}

.unit-field-list li {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    color: var(--text-on-dark);
    font-weight: 600;
    line-height: 1.45;
}

.unit-field-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 0.6em;
    border-radius: 50%;
    background: var(--gold);
}

.unit-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.unit-field-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.unit-field-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.unit-field-mark {
    justify-self: end;
    width: min(100%, 320px);
    min-height: 244px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 34px 30px;
    border-radius: 18px;
    background: var(--white);
    color: var(--navy);
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.unit-field-mark img {
    display: block;
    width: 100%;
    max-width: 246px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.unit-field-mark span {
    display: block;
    padding-top: 18px;
    border-top: 1px solid rgba(14, 30, 71, 0.13);
    color: var(--navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.units-operating-section {
    padding: 116px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.units-operating-head {
    max-width: 820px;
    margin-bottom: 56px;
}

.units-operating-head p {
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 1.06rem;
    line-height: 1.72;
}

.units-operating-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.units-operating-card {
    padding: 30px;
    min-height: 250px;
    background: var(--white);
    border: 1px solid rgba(14, 30, 71, 0.09);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.units-operating-card>span {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 28px;
    background: var(--accent-light);
}

.units-operating-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
}

.units-operating-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.units-page-cta {
    padding: 108px 0;
    background: var(--white);
}

.units-page-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 56px;
    padding: 60px 0;
}

.units-page-cta h2 {
    max-width: 760px;
}

.units-page-cta p {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.72;
}

.units-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* -50% porque la lista se duplica en PHP */
}

@media (prefers-reduced-motion: reduce) {
    .hero-technical-grid::before,
    .hero-technical-grid::after {
        animation: none;
    }

    .partners-track {
        animation: none;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: var(--text-on-dark);
    padding: 100px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 72px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 32px;
    color: var(--white);
    font-weight: 500;
}

.footer-col .eyebrow {
    color: var(--accent-light);
}

.footer-col p,
.footer-col address {
    color: var(--text-on-dark);
    margin: 0;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-contact-trigger {
    border: 0;
}

.footer-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-contact-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text-on-dark);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.footer-contact-actions a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
}

.footer-contact-panel {
    margin-top: 12px;
    margin-bottom: 28px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-bottom: 0;
    transform: translateY(-10px);
    transition: max-height .32s ease, opacity .24s ease, padding-bottom .32s ease, transform .32s ease;
}

.footer-contact-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    padding-bottom: 64px;
    transform: translateY(0);
}

.footer-contact-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.footer-contact-panel h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: 500;
}

.footer-contact-panel p {
    margin: 0;
    color: var(--muted-on-dark);
}

.footer-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.footer-contact-form label {
    display: grid;
    gap: 8px;
    color: var(--text-on-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-contact-form label:nth-of-type(4),
.footer-form-actions,
.footer-form-note {
    grid-column: 1 / -1;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.footer-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    border-color: var(--accent-light);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(95, 125, 221, 0.18);
}

.footer-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-whatsapp-btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.footer-whatsapp-btn:hover {
    background: var(--white);
    color: var(--navy);
}

.footer-form-note {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.footer-form-note.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.footer-form-note.is-error {
    background: rgba(248, 113, 113, 0.13);
    color: #fecaca;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.social-row a,
.social-link-disabled {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background .2s ease;
}

.social-row a:hover {
    background: var(--accent);
    color: var(--white);
}

.social-link-disabled {
    color: var(--muted-on-dark);
    cursor: default;
    opacity: 0.72;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 24px;
}

.footer-divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.footer-logo {
    height: 56px;
    width: auto;
    background: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--muted-on-dark);
}

.footer-legal {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 150px 0 72px;
    }

    .hero-title {
        max-width: 760px;
    }

    .hero-subtitle {
        margin-bottom: 44px;
    }

    .hero-cards {
        max-width: 1100px;
        gap: 18px;
    }

    .journey-block {
        gap: 56px;
    }

    .program-section {
        padding: 110px 0 128px;
    }
}

@media (max-width: 1024px) {
    .site-header {
        padding: 16px 0;
    }

    .header-bar {
        gap: 16px;
    }

    .header-actions {
        gap: 10px;
    }

    .lang-switch a {
        padding: 6px 10px;
    }

    .menu-btn {
        padding: 10px 18px;
    }

    .menu-panel {
        padding: 120px 0 52px;
    }

    .menu-panel-inner a {
        font-size: clamp(1.8rem, 4.8vw, 3rem);
    }

    .hero {
        min-height: auto;
        padding: 150px 0 72px;
    }

    .hero-title {
        max-width: 720px;
    }

    .hero-subtitle {
        max-width: 600px;
        margin-bottom: 40px;
    }

    .hero-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 760px;
        gap: 16px;
    }

    .hero-card,
    .hero-card:nth-child(4),
    .hero-card:nth-child(5) {
        grid-column: span 2;
    }

    .hero-card:nth-child(5) {
        grid-column: 2 / span 2;
    }

    .hero-card {
        min-height: 220px;
    }

    .stats-section,
    .units-section {
        padding: 96px 0;
    }

    .section-head {
        margin-bottom: 44px;
    }

    .journey-block {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 40px;
        margin-top: 96px;
    }

    .journey-media {
        min-height: 440px;
    }

    .journey-copy {
        max-width: 420px;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .program-section {
        min-height: auto;
        padding: 96px 0 116px;
    }

    .program-inner {
        gap: 40px;
    }

    .program-head,
    .program-desc,
    .program-section--probuild .program-head,
    .program-section--probuild .program-desc {
        max-width: 100%;
    }

    .carousel,
    .program-section--probuild .carousel {
        width: min(100%, 680px);
        max-width: 680px;
    }

    .carousel-viewport {
        height: 430px;
    }

    .program-card {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 40%);
        height: 370px;
    }

    .program-card-body {
        padding: 30px 28px;
    }

    .program-card-desc {
        max-width: 34ch;
    }

    .partners-hero {
        min-height: 460px;
    }

    .partners-bg {
        width: 50%;
    }

    .partners-content {
        padding: 72px 24px;
    }

    .partners-copy {
        max-width: 500px;
    }

    .partners-track {
        gap: 56px;
    }

    .partner-logo {
        min-width: 120px;
    }

    .about-hero {
        min-height: auto;
        padding: 136px 0 84px;
    }

    .about-hero-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-hero-copy {
        order: -1;
        max-width: 720px;
    }

    .about-hero-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .about-statement-grid,
    .about-closing-grid {
        gap: 56px;
    }

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

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 32px;
    }

    .footer-tagline {
        margin-bottom: 24px;
    }
}

@media (max-width: 900px) {
    .hero-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 100%;
    }

    .journey-block {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-top: 84px;
    }

    .journey-media {
        min-height: 420px;
        max-width: 440px;
        margin: 0 auto;
    }

    .journey-copy {
        max-width: 100%;
        text-align: left;
    }

    .program-section--probuild .program-inner {
        text-align: left;
    }

    .program-section--probuild .program-head,
    .program-section--probuild .program-desc,
    .program-section--probuild .carousel {
        margin-left: 0;
        margin-right: 0;
    }

    .program-section--probuild .carousel-controls {
        justify-content: flex-start;
    }

    .carousel,
    .program-section--probuild .carousel {
        width: min(100%, 100%);
        max-width: 100%;
    }

    .carousel-viewport {
        height: 410px;
    }

    .program-card {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
        height: 350px;
    }

    .about-hero {
        min-height: auto;
        padding: 136px 0 84px;
    }

    .about-hero-grid,
    .about-statement-grid,
    .about-closing-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-copy {
        order: -1;
        max-width: 100%;
    }

    .about-hero-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
    }

    .about-hero-img {
        border-radius: 18px;
    }

    .about-statement-media {
        max-width: 640px;
    }

    .about-statement-copy,
    .about-closing-text {
        max-width: 100%;
    }

    .about-principles-grid {
        grid-template-columns: 1fr;
    }

    .about-directors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

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

    .footer-contact-panel-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 72px;
    }

    .container {
        padding: 0 18px;
    }

    .logo img {
        height: 40px;
    }

    .logo {
        padding: 6px 12px;
    }

    .header-bar {
        align-items: flex-start;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-switch {
        padding: 3px;
    }

    .lang-switch a {
        padding: 6px 9px;
        font-size: 0.72rem;
    }

    .menu-btn-label {
        display: none;
    }

    .menu-btn {
        padding: 10px 14px;
    }

    .menu-panel {
        padding: 104px 0 40px;
    }

    .menu-panel-inner a,
    .menu-contact-toggle {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .menu-contact-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .hero {
        min-height: 100vh;
        padding: 124px 0 56px;
    }

    .hero-title {
        margin: 6px auto 16px;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 32px;
    }

    .hero-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-card {
        min-height: 190px;
    }

    .hero-units-logo-row {
        gap: 12px;
    }

    .hero-units-logo {
        width: 78px;
        border-radius: 14px;
    }

    .hero-card-label {
        padding: 14px 16px;
        font-size: 0.88rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .stats-section,
    .units-section {
        padding: 80px 0;
    }

    .unit-card-logo {
        left: 18px;
        bottom: 18px;
        height: 66px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .unit-card-logo--proelectric {
        width: 112px;
        height: 88px;
    }

    .unit-card-logo--probuild {
        width: 200px;
    }

    .program-section {
        padding: 80px 0 100px;
    }

    .program-inner {
        gap: 32px;
    }

    .carousel-viewport {
        height: 500px;
    }

    .program-card {
        grid-template-columns: 1fr;
        grid-template-rows: 210px auto;
        height: auto;
        min-height: 0;
    }

    .program-card-media {
        border-left: 0;
        border-bottom: 1px solid rgba(14, 30, 71, 0.08);
        order: -1;
    }

    .program-card-body {
        justify-content: flex-start;
        padding: 22px 24px;
    }

    .program-card-title {
        font-size: clamp(1.35rem, 5vw, 1.8rem);
    }

    .program-card-desc {
        max-width: none;
        font-size: 0.95rem;
        line-height: 1.58;
    }

    .carousel-controls {
        margin-top: 18px;
    }

    .journey-block {
        grid-template-columns: 1fr;
        gap: 56px;
        margin-top: 80px;
    }

    .journey-media {
        min-height: 420px;
        max-width: 420px;
        margin: 0 auto;
    }

    .journey-copy {
        max-width: none;
        text-align: left;
    }

    .partners-hero {
        min-height: auto;
    }

    .partners-bg {
        width: 100%;
        opacity: 0.14;
        mix-blend-mode: multiply;
    }

    .partners-overlay {
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.96) 0%,
                rgba(244, 246, 251, 0.92) 52%,
                rgba(238, 243, 251, 0.84) 100%);
    }

    .partners-content {
        padding: 80px 24px 64px;
    }

    .partner-logo {
        min-width: 110px;
        max-width: 220px;
    }

    .partners-track {
        gap: 48px;
    }

    .about-hero {
        padding: 124px 0 72px;
    }

    .about-title {
        font-size: clamp(2.4rem, 6vw, 3.2rem);
    }

    .about-intro {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .about-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .about-inline-link {
        justify-content: center;
    }

    .about-statement-section,
    .about-directors-section,
    .about-principles-section,
    .about-team-section,
    .about-closing-section {
        padding: 72px 0;
    }

    .about-facts,
    .about-directors-grid {
        grid-template-columns: 1fr;
    }

    .about-facts {
        gap: 22px;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .about-unit-body,
    .about-principle-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 48px;
    }

    .footer-contact-form {
        grid-template-columns: 1fr;
    }

    .footer-contact-panel-inner {
        padding: 26px 22px;
    }

    .footer-logo-row {
        padding: 28px 18px;
    }

    .site-footer {
        padding: 64px 0 24px;
    }

    .footer-bottom {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn,
    .btn-lg {
        width: 100%;
        justify-content: center;
        white-space: normal;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-bar {
        align-items: center;
        gap: 10px;
    }

    .header-actions {
        gap: 6px;
    }

    .lang-switch a {
        padding: 6px 8px;
    }

    .menu-btn {
        min-width: 46px;
        justify-content: center;
    }

    .hero {
        padding: 116px 0 48px;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .hero-card:nth-child(4),
    .hero-card:nth-child(5) {
        grid-column: 1;
    }

    .hero-card {
        min-height: 180px;
    }

    .hero-units-logo {
        width: 82px;
    }

    .about-hero {
        padding: 108px 0 56px;
    }

    .about-hero-grid {
        gap: 26px;
    }

    .about-hero-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .about-hero-img {
        border-radius: 14px;
    }

    .about-hero-img-c,
    .about-hero-img-d {
        aspect-ratio: 1 / 1;
    }

    .about-title {
        font-size: clamp(2.05rem, 9.4vw, 2.35rem);
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .about-intro {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .about-statement-section,
    .about-directors-section,
    .about-principles-section,
    .about-team-section,
    .about-closing-section {
        padding: 64px 0;
    }

    .about-statement-media img {
        aspect-ratio: 4 / 5;
        border-radius: 18px;
    }

    .about-principle-card {
        min-height: auto;
    }

    .about-person-meta {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 12px;
    }

    .about-person-meta span {
        gap: 7px;
        font-size: 0.76rem;
    }

    .about-person-meta i {
        width: 18px;
    }

    .about-person-meta h3 {
        font-size: 1.08rem;
    }

    .journey-media {
        min-height: 340px;
        max-width: 100%;
    }

    .journey-img-primary {
        width: 82%;
    }

    .journey-img-secondary {
        width: 48%;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .unit-card-body h3 {
        font-size: 1.75rem;
    }

    .unit-card-logo {
        left: 14px;
        bottom: 14px;
    }

    .unit-card-logo--proelectric {
        width: 96px;
        height: 76px;
    }

    .unit-card-logo--probuild {
        width: min(180px, calc(100% - 28px));
    }

    .carousel-controls {
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 14px;
    }

    .carousel-viewport {
        height: 455px;
    }

    .program-card {
        grid-template-rows: 180px auto;
        height: auto;
        border-radius: 22px;
    }

    .program-card-body {
        padding: 20px;
    }

    .program-card-tags {
        gap: 8px;
    }

    .program-card-desc {
        font-size: 0.92rem;
        line-height: 1.56;
    }

    .partners-content {
        padding: 64px 16px 48px;
    }

    .partners-marquee {
        padding: 28px 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .partners-track {
        gap: 32px;
    }

    .partner-logo {
        height: 68px;
        min-width: 120px;
        max-width: 180px;
        font-size: 0.88rem;
    }

    .partner-logo--gosselin,
    .partner-logo--costa-palmas,
    .partner-logo--desierto {
        height: 78px;
        min-width: 108px;
    }

    .partner-logo--fh {
        min-width: 150px;
    }

    .partner-logo--stone {
        min-width: 180px;
    }

    .partner-logo--stone img {
        max-width: 180px;
    }

    .partner-logo span {
        padding: 9px 14px;
        font-size: 0.72rem;
    }

    .unit-card-body {
        padding: 24px;
    }

    .footer-logo {
        height: 48px;
        padding: 6px 10px;
    }

    .footer-legal {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .services-hero {
        padding: 148px 0 84px;
    }

    .services-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
        gap: 40px;
    }

    .services-main-section,
    .services-process-section,
    .services-sectors-section {
        padding: 96px 0;
    }

    .services-main-head {
        margin-bottom: 84px;
    }

    .services-main-detail,
    .services-sectors-grid {
        gap: 48px;
    }

    .services-process-head {
        gap: 48px;
        margin-bottom: 58px;
    }

    .services-process-cards {
        column-gap: 36px;
        row-gap: 64px;
    }

    .services-process-card-media {
        aspect-ratio: 16 / 7.4;
    }

    .services-main-media {
        min-height: 560px;
    }

    .services-main-photo {
        height: 520px;
    }
}

@media (max-width: 900px) {
    .services-hero {
        min-height: auto;
    }

    .services-hero-inner,
    .services-main-detail,
    .services-sectors-grid {
        grid-template-columns: 1fr;
    }

    .services-process-head,
    .services-process-cards {
        grid-template-columns: 1fr;
    }

    .services-process-head {
        gap: 24px;
        margin-bottom: 52px;
    }

    .services-process-head p {
        max-width: 720px;
        margin: 0;
    }

    .services-process-cards {
        row-gap: 58px;
    }

    .services-hero-copy,
    .services-hero-subtitle,
    .services-sectors-copy {
        max-width: none;
    }

    .services-hero-card {
        max-width: 460px;
    }

    .services-main-copy {
        padding-top: 0;
    }

    .services-main-media {
        max-width: 640px;
    }

    .services-sectors-media {
        max-width: 560px;
    }

    .services-sectors-media img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 124px 0 68px;
    }

    .services-hero-title {
        font-size: clamp(2.45rem, 10vw, 4rem);
    }

    .services-main-section,
    .services-process-section,
    .services-sectors-section {
        padding: 80px 0;
    }

    .services-main-head {
        margin-bottom: 56px;
    }

    .services-main-head h2 {
        font-size: clamp(3rem, 13vw, 5rem);
    }

    .services-main-points {
        gap: 18px;
    }

    .services-main-media {
        min-height: 520px;
    }

    .services-main-photo {
        height: 480px;
    }

    .services-main-photo-small {
        right: 8%;
        width: 40%;
        min-width: 170px;
        border-width: 8px;
    }

    .services-main-copy h3 {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    .services-process-title {
        font-size: clamp(2.8rem, 12vw, 4.6rem);
    }

    .services-process-card-media {
        border-radius: 14px;
        aspect-ratio: 16 / 9;
    }

    .services-process-card h3 {
        font-size: clamp(2.05rem, 8vw, 3rem);
    }

    .services-process-card-body {
        padding-top: 22px;
    }

    .services-closing-section {
        min-height: auto;
    }

    .services-closing-content {
        padding: 86px 18px;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 116px 0 58px;
    }

    .services-hero-card-body {
        padding: 20px;
    }

    .services-main-head .eyebrow {
        gap: 12px;
    }

    .services-main-head h2 {
        font-size: clamp(2.65rem, 12vw, 3.65rem);
    }

    .services-main-head .eyebrow::before {
        width: 32px;
    }

    .services-main-points p::before {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }

    .services-main-media {
        min-height: auto;
        padding-bottom: 78px;
    }

    .services-main-photo {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .services-main-photo-small {
        right: 0;
        bottom: 0;
        width: 46%;
        min-width: 140px;
    }

    .services-main-checklist li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .services-main-checklist span {
        width: 30px;
        height: 30px;
        font-size: 0.96rem;
    }

    .services-process-head .eyebrow {
        gap: 12px;
        margin-bottom: 18px;
    }

    .services-process-head .eyebrow::before {
        width: 32px;
    }

    .services-process-cards {
        row-gap: 48px;
    }

    .services-process-card-body ul {
        gap: 12px;
    }

    .services-sector-list li {
        width: 100%;
    }

    .services-sectors-media::before {
        inset: 20px -10px -20px 18px;
    }
}

@media (max-width: 1024px) {
    .units-page-hero {
        padding-top: 140px;
    }

    .units-page-hero-copy {
        padding-bottom: 0;
    }

    .units-page-hero-title {
        font-size: 4.25rem;
    }

    .units-page-hero-media {
        height: 460px;
        margin-top: 72px;
    }

    .unit-detail-section,
    .units-operating-section,
    .units-page-cta {
        padding: 96px 0;
    }

    .unit-detail-grid {
        gap: 54px;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    }

    .unit-detail-media::before {
        inset: 28px 0 -28px 34px;
    }

    .unit-detail-copy h2,
    .unit-field-copy h2,
    .units-operating-head h2,
    .units-page-cta h2 {
        font-size: 3.25rem;
    }

    .unit-detail-points,
    .units-operating-grid {
        gap: 18px;
    }

    .unit-detail-point {
        grid-template-columns: 1fr;
    }

    .unit-field-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {

    .unit-detail-grid,
    .unit-field-grid,
    .units-page-cta-inner {
        grid-template-columns: 1fr;
    }

    .unit-detail-media {
        max-width: 620px;
    }

    .unit-detail-points,
    .units-operating-grid {
        grid-template-columns: 1fr;
    }

    .unit-detail-point {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .unit-field-section {
        min-height: auto;
    }

    .unit-field-overlay {
        background:
            linear-gradient(90deg, rgba(8, 20, 49, 0.96) 0%, rgba(8, 20, 49, 0.88) 58%, rgba(8, 20, 49, 0.62) 100%),
            linear-gradient(180deg, rgba(8, 20, 49, 0.5) 0%, rgba(8, 20, 49, 0.8) 100%);
    }

    .unit-field-mark {
        justify-self: start;
    }

    .units-page-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .units-page-hero {
        padding-top: 124px;
    }

    .units-page-hero-copy {
        padding-bottom: 0;
        text-align: left;
    }

    .units-page-hero-title {
        font-size: 3.15rem;
    }

    .units-page-hero-text {
        margin-top: 24px;
        font-size: 1rem;
    }

    .units-page-hero-media {
        height: 380px;
        min-height: 320px;
        margin-top: 56px;
    }

    .unit-detail-section,
    .units-operating-section,
    .units-page-cta {
        padding: 80px 0;
    }

    .unit-detail-copy h2,
    .unit-field-copy h2,
    .units-operating-head h2,
    .units-page-cta h2 {
        font-size: 2.65rem;
    }

    .unit-detail-copy p,
    .unit-field-copy p,
    .units-operating-head p,
    .units-page-cta p {
        font-size: 1rem;
    }

    .unit-detail-points {
        margin-top: 58px;
    }

    .unit-field-grid {
        padding-top: 86px;
        padding-bottom: 86px;
    }

    .unit-field-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .units-page-hero {
        padding-top: 116px;
    }

    .units-page-hero-copy {
        padding-bottom: 0;
    }

    .units-page-hero-title {
        font-size: clamp(2.35rem, 10.8vw, 2.65rem);
    }

    .units-page-kicker {
        gap: 10px;
        font-size: 0.9rem;
    }

    .units-page-kicker::before {
        width: 30px;
    }

    .unit-detail-grid {
        gap: 42px;
    }

    .unit-brand-lockup {
        width: 100%;
    }

    .unit-brand-lockup--proelectric img {
        height: 98px;
    }

    .unit-detail-actions,
    .unit-field-actions,
    .units-page-cta-actions {
        gap: 12px;
    }

    .unit-detail-point {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .unit-detail-media::before {
        inset: 20px -10px -20px 18px;
    }

    .unit-field-mark {
        width: 100%;
        min-height: 180px;
    }

    .units-operating-card {
        padding: 24px;
        min-height: auto;
    }

    .units-page-cta-inner {
        padding: 42px 0;
    }
}

/* =========================================================
   Página Proyectos
   ========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.projects-page {
    background: var(--white);
    color: var(--text);
}

/* ---------- Hero ---------- */
.projects-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 168px 0 96px;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.projects-hero-bg,
.projects-hero-overlay {
    position: absolute;
    inset: 0;
}

.projects-hero-bg {
    z-index: 0;
}

.projects-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.projects-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 20, 49, 0.94) 0%, rgba(14, 30, 71, 0.82) 44%, rgba(14, 30, 71, 0.38) 100%),
        linear-gradient(180deg, rgba(8, 20, 49, 0.36) 0%, rgba(8, 20, 49, 0.78) 100%);
}

.projects-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.projects-hero-copy {
    max-width: 820px;
}

.projects-hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    line-height: 1.04;
    margin: 8px 0 24px;
    color: var(--white);
}

.projects-hero-subtitle {
    max-width: 680px;
    margin: 0 0 38px;
    color: var(--text-on-dark);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
}

.projects-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.projects-hero-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

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

/* ---------- Catalog section ---------- */
.projects-catalog-section {
    padding: 112px 0 128px;
    background: var(--white);
}

.projects-catalog-head {
    max-width: 720px;
    margin-bottom: 40px;
}

/* ---------- Toolbar (filtros + búsqueda + sort) ---------- */
.projects-toolbar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.projects-toolbar-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.projects-toolbar-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--text-muted);
}

.projects-filter-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projects-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.projects-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.projects-filter-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(58, 91, 191, 0.28);
}

.projects-toolbar-controls {
    justify-content: space-between;
    width: 100%;
}

.projects-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 320px;
    max-width: 480px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 4px 14px 4px 44px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.projects-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(58, 91, 191, 0.12);
}

.projects-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.projects-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    font-size: 0.95rem;
    padding: 10px 0;
}

.projects-search input::placeholder {
    color: var(--text-muted);
}

.projects-search input::-webkit-search-cancel-button {
    display: none;
}

.projects-search-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border);
    color: var(--navy);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.projects-search-clear:hover {
    background: var(--accent-light);
    color: var(--white);
}

.projects-sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 0.92rem;
}

.projects-sort-label {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--text-muted);
}

.projects-sort select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230E1E47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") no-repeat right 16px center;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 10px 42px 10px 18px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.projects-sort select:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(58, 91, 191, 0.12);
}

.projects-result-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 28px;
    min-height: 1.25em;
}

/* ---------- Grid de proyectos ---------- */
/* Fluid grid: el navegador decide cuántas columnas caben en función del ancho.
   Las columnas mantienen ~320px mínimo, así que en mobile cae a 1, tablet a 2,
   desktop a 3, ultrawide 4+. Sin breakpoints rígidos. */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

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

.project-card[hidden] {
    display: none;
}

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

.project-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

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

.project-card-unit {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-card-unit--proelectric {
    background: rgba(58, 91, 191, 0.9);
}

.project-card-unit--probuild {
    background: rgba(200, 145, 58, 0.92);
}

.project-card-unit--group {
    background: linear-gradient(135deg, rgba(58, 91, 191, 0.95) 0%, rgba(200, 145, 58, 0.95) 100%);
}

.project-card-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(8, 20, 50, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-card-status--proximo {
    background: rgba(18, 112, 99, 0.94);
}

.project-card-status--en-progreso {
    background: rgba(194, 122, 28, 0.95);
}

.project-card-status--concluido {
    background: rgba(23, 84, 157, 0.94);
}

.project-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.project-card-body {
    padding: 22px 64px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-card-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.project-card-location svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.project-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 2px 0 0;
}

.project-card-desc {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}

.project-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.project-card-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform .25s ease;
}

.project-card:hover .project-card-arrow {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(58, 91, 191, 0.32);
}

.project-card:hover .project-card-arrow svg {
    transform: translate(2px, -2px);
}

/* ---------- Empty state ---------- */
.projects-empty {
    text-align: center;
    padding: 72px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
}

.projects-empty strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.projects-empty p {
    margin: 0;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
}

/* ---------- Closing section ---------- */
.projects-closing-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
}

.projects-closing-bg,
.projects-closing-overlay {
    position: absolute;
    inset: 0;
}

.projects-closing-bg {
    z-index: 0;
}

.projects-closing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.projects-closing-overlay {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 20, 49, 0.72) 0%, rgba(8, 20, 49, 0.92) 100%);
}

.projects-closing-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px;
    max-width: 720px;
}

.projects-closing-content p {
    color: var(--text-on-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .projects-hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .projects-catalog-section {
        padding: 88px 0 104px;
    }

    .projects-grid {
        gap: 24px;
    }

    .projects-toolbar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-search {
        max-width: 100%;
    }

    .projects-sort {
        justify-content: space-between;
        width: 100%;
    }

    .projects-sort select {
        flex: 1;
        margin-left: 12px;
    }

    .projects-closing-content {
        padding: 96px 24px;
    }
}

@media (max-width: 640px) {
    .projects-grid {
        gap: 20px;
    }

    .projects-toolbar {
        padding: 18px;
        gap: 14px;
    }

    .projects-toolbar-row {
        gap: 12px;
    }

    .projects-toolbar-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-filter-group {
        width: 100%;
    }

    .projects-filter-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 16px;
    }

    .projects-search {
        width: 100%;
        flex: 0 0 auto;
        min-height: 48px;
    }

    .projects-sort {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .projects-sort select {
        width: 100%;
        margin-left: 0;
    }

    .project-card-body {
        padding: 20px 20px 24px;
    }

    .project-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: 120px 0 64px;
    }

    .projects-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   Detalle de Proyecto
   ========================================================= */

.project-page {
    background: var(--white);
    color: var(--text);
    padding-top: var(--header-h);
}

/* ---------- 404 ---------- */
.project-not-found {
    padding: 140px 0 120px;
    text-align: center;
}

.project-not-found .eyebrow {
    letter-spacing: 0.26em;
}

.project-not-found p {
    max-width: 520px;
    margin: 0 auto 28px;
    color: var(--text-muted);
}

/* ---------- Hero ---------- */
.project-detail-hero {
    padding: 60px 0 0;
    background: var(--white);
}

.project-detail-head {
    max-width: 980px;
    margin: 0 auto 40px;
    text-align: center;
}

.project-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.project-breadcrumb a {
    color: var(--text-muted);
    transition: color .2s ease;
}

.project-breadcrumb a:hover {
    color: var(--accent);
}

.project-breadcrumb span[aria-hidden] {
    color: var(--border);
}

.project-detail-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    margin: 8px 0 20px;
}

.project-detail-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
}

.project-detail-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
}

.project-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Body: grid con main + aside sticky ---------- */
.project-detail-body {
    padding: 80px 0 96px;
    background: var(--white);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    gap: 56px;
    align-items: start;
}

.project-detail-main {
    min-width: 0;
}

/* ---------- Contenido principal ---------- */
.project-detail-content-head {
    margin-bottom: 24px;
}

.project-detail-content-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    line-height: 1.18;
    margin: 6px 0 0;
}

.project-detail-content p {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 0 0 20px;
}

.project-scope-title {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.35rem;
    margin: 36px 0 18px;
    font-weight: 600;
}

.project-scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.project-scope-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    align-items: center;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 500;
}

.project-scope-list li span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-scope-list li span svg {
    width: 16px;
    height: 16px;
}

/* ---------- Aside: card sticky oscura ---------- */
.project-detail-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.project-meta-card {
    background: var(--navy-deep);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 36px 36px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.project-meta-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(58, 91, 191, 0.32) 0%, rgba(58, 91, 191, 0) 65%);
    pointer-events: none;
}

.project-meta-card-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-meta-card-eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.project-meta-card-year {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--white);
    font-size: clamp(3.4rem, 6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.project-meta-card-type {
    color: var(--text-on-dark);
    font-size: 0.94rem;
    line-height: 1.4;
    max-width: 220px;
}

.project-meta-card-list {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}

.project-meta-card-list>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-card-list dt {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--muted-on-dark);
}

.project-meta-card-list dd {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.project-meta-cta {
    margin-top: 32px;
    justify-content: center;
    width: 100%;
}

.project-detail-status.project-card-status {
    position: static;
    margin: 0 auto 18px;
}

/* ---------- Galería ---------- */
.project-gallery-section {
    padding: 40px 0 110px;
    background: var(--white);
}

.project-gallery-head {
    margin-bottom: 44px;
    max-width: 680px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
}

.project-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-soft);
    padding: 0;
    cursor: zoom-in;
    border: 0;
    transition: transform .3s ease, box-shadow .3s ease;
}

.project-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-gallery-item img,
.project-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.project-gallery-item:hover img,
.project-gallery-item:hover video {
    transform: scale(1.06);
}

/* Patrón dinámico: cada 7 items una card toma 2 columnas y 2 filas */
.project-gallery-item:nth-child(7n+1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.project-gallery-item--video {
    cursor: pointer;
}

.project-gallery-play {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(8, 20, 49, 0.05) 0%, rgba(8, 20, 49, 0.42) 100%);
    color: var(--white);
    transition: background .2s ease;
}

.project-gallery-play svg {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .25s ease, background .25s ease;
}

.project-gallery-item--video:hover .project-gallery-play svg {
    transform: scale(1.08);
    background: rgba(58, 91, 191, 0.85);
}

.project-gallery-more {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 24px;
    text-align: left;
    color: var(--white);
    background: var(--navy-deep);
    transition: transform .3s ease, box-shadow .3s ease;
}

.project-gallery-more::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(58, 91, 191, 0.72), rgba(8, 20, 49, 0.08) 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.project-gallery-more > * {
    position: relative;
    z-index: 1;
}

.project-gallery-more:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-gallery-item:focus-visible,
.project-gallery-more:focus-visible {
    outline: 3px solid rgba(58, 91, 191, 0.38);
    outline-offset: 4px;
}

.project-gallery-more-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.project-gallery-more-icon svg {
    width: 24px;
    height: 24px;
}

.project-gallery-more-label {
    max-width: 9rem;
    font-family: var(--font-display);
    font-size: 1.38rem;
    line-height: 1.12;
    font-weight: 600;
}

.project-gallery-more-count {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.74);
}

/* ---------- Lightbox ---------- */
.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 10, 28, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.project-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-lightbox[hidden] {
    display: flex;
}

.project-lightbox-stage {
    max-width: min(92vw, 1400px);
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox-stage img,
.project-lightbox-stage video {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #000;
}

.project-lightbox-close,
.project-lightbox-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}

.project-lightbox-close {
    top: 24px;
    right: 24px;
}

.project-lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.project-lightbox-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.project-lightbox-next:hover {
    transform: translateY(-50%) translateX(2px);
}

.project-lightbox-nav svg {
    width: 22px;
    height: 22px;
}

.project-lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

body.lightbox-open {
    overflow: hidden;
}

/* ---------- Sección "Proyectos relacionados" ---------- */
.project-related-section {
    padding: 80px 0 120px;
    background: var(--bg-soft);
}

.project-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .project-detail-side {
        position: static;
        max-width: 520px;
    }

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

    .project-gallery-item:nth-child(7n+1) {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 780px) {
    .project-detail-hero {
        padding: 40px 0 0;
    }

    .project-detail-body {
        padding: 64px 0 80px;
    }

    .project-meta-card {
        padding: 36px 28px 32px;
    }

    .project-meta-card-hero {
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .project-meta-card-list {
        gap: 18px;
    }

    .project-gallery-section {
        padding: 24px 0 80px;
    }

    .project-gallery {
        gap: 12px;
    }

    .project-lightbox-close {
        top: 16px;
        right: 16px;
    }

    .project-lightbox-prev {
        left: 10px;
    }

    .project-lightbox-next {
        right: 10px;
    }

    .project-related-grid {
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery-item {
        aspect-ratio: 4 / 3;
    }

    .project-gallery-item:nth-child(7n+1) {
        aspect-ratio: 4 / 3;
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-meta-cta {
        font-size: 0.9rem;
        padding: 14px 22px;
    }
}
