:root {
    --navy: #162b37;
    --navy-deep: #0f1e27;
    --navy-mid: #1c3545;
    --navy-light: #1f3d4e;
    --black: #0a0a0a;
    --off-white: #efefef;
    --white: #ffffff;
    --muted: rgba(239, 239, 239, 0.52);
    --border: rgba(239, 239, 239, 0.11);
    --border-hi: rgba(239, 239, 239, 0.22);
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --degradado-1: #162b37;
    --degradado-2: #12222c;
    --tipografia: #efefef;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--navy-deep);
    color: var(--off-white);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
}

p {
    font-family: var(--font-body);
    font-style: normal;
    color: var(--tipografia);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--tipografia);
}

/* CURSOR */
* {
    cursor: none;
}

#cur {
    width: 8px;
    height: 8px;
    background: var(--off-white);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s;
}

#cur-r {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(239, 239, 239, 0.35);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

/* GRAIN */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.032;
    pointer-events: none;
    z-index: 200;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 64px;
    transition: background .5s, padding .4s, border-color .5s;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(15, 30, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 18px 64px;
    border-bottom-color: var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo-wordmark {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--off-white);
    text-transform: uppercase;
    line-height: 1;
}

.nav-logo-tagline {
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 0.38em;
    color: var(--muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--off-white);
    transition: width .3s;
}

.nav-links a:hover {
    color: var(--off-white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy-deep) !important;
    background: var(--off-white);
    padding: 12px 28px;
    text-decoration: none;
    transition: background .3s !important;
}

.nav-cta:hover {
    background: var(--white) !important;
}

.nav-cta::after {
    display: none !important;
}

/* DROPDOWN */
.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding-top: 16px;
    background: transparent;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 600;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    inset: 16px 0 0 0;
    background: rgba(15, 30, 39, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-hi);
    z-index: -1;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 13px 22px;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s, background .2s;
    border-bottom: 1px solid var(--border);
    position: static;
    text-align: center;
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}

.nav-dropdown li a:hover {
    color: var(--off-white);
    background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown li a::after {
    display: none !important;
}

.isotipo {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

/* HERO */
#hero {
    height: 100vh;
    min-height: 680px;
    display: flex;
    /* Cambiamos flex-end por center para que el contenido no "caiga" tanto */
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(to right, rgba(8, 18, 26, 1.45) 0%, rgba(8, 18, 26, 0) 100%),
        url('../assets/Videnza/hero_videnza.jpeg') center center / cover no-repeat;
    padding-top: 80px;
    /* Un poco menos de padding inicial */
    box-sizing: border-box;
}

.hero-grid {
    display: none;
}

.hero-glow {
    position: absolute;
    top: -15%;
    right: -5%;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 53, 69, 0.55) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 64px;
    /* Quitamos el padding-bottom excesivo */
    max-width: 880px;
    margin-top: 40px;
    /* Empuja el contenido un poco hacia abajo del nav, pero no al fondo */
    margin-bottom: 60px;
}

.hero-eyebrow {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 1s ease .3s forwards;
}

.hero-eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--muted);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(46px, 7vw, 68px);
    font-weight: 500;
    line-height: 1.01;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease .5s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--off-white);
    opacity: 0.7;
    display: block;
}

.hero-sub {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--white);
    max-width: 510px;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 1s ease .7s forwards;
}

.hero-cta-wrap {
    opacity: 0;
    animation: fadeUp 1s ease .9s forwards;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy-deep);
    background: var(--off-white);
    padding: 18px 52px;
    text-decoration: none;
    transition: background .3s, transform .3s;
}

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

@keyframes btn-shine {
    0%   { left: -100%; opacity: 0; }
    10%  { opacity: 1; }
    60%  { opacity: 0.6; }
    100% { left: 140%; opacity: 0; }
}

.btn-alvea-light {
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--off-white);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 18px 52px;
    text-decoration: none;
    transition: border-color .3s, color .3s, transform .3s;
}

.btn-alvea-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 230, 160, 0.15) 30%,
        rgba(255, 235, 180, 0.55) 50%,
        rgba(255, 230, 160, 0.15) 70%,
        transparent 100%
    );
    animation: btn-shine 1.4s ease-out 1s 1 forwards;
    opacity: 0;
    pointer-events: none;
}

.btn-alvea-light:hover {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-statsbar {
    margin-top: 40px;
    display: flex;
    border: 1px solid var(--border-hi);
    max-width: 560px;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}

.hstat {
    flex: 1;
    padding: 18px 22px;
    border-right: 1px solid var(--border-hi);
}

.hstat:last-child {
    border-right: none;
}

.hstat-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--off-white);
    line-height: 1;
}

.hstat-label {
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 5px;
}

.hero-scroll {
    position: absolute;
    bottom: 48px;
    right: 64px;
    writing-mode: vertical-rl;
    font-size: 8.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease 1.6s forwards;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 54px;
    background: var(--border-hi);
}

/* SHARED */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--muted);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4.5vw, 62px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
}

.divider {
    width: 46px;
    height: 1px;
    background: var(--border-hi);
    margin: 26px 0;
}

/* ABOUT */
#about {
    padding: 140px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: center;
}

.about-text p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 16px;
}

.about-text p:first-of-type {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 400;
    font-style: italic;
    color: var(--off-white);
    line-height: 1.6;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 40px;
}

.pillar {
    background: rgba(239, 239, 239, 0.04);
    border: 1px solid var(--border);
    padding: 20px 16px;
    text-align: center;
    transition: background .3s;
}

.pillar:hover {
    background: rgba(239, 239, 239, 0.08);
}

.pillar-icon {
    font-size: 16px;
    color: var(--off-white);
    opacity: 0.45;
    margin-bottom: 9px;
}

.pillar-name {
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--navy-mid);
    border: 1px solid var(--border);
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    width: 100%;
}

@keyframes border-light-travel {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes border-wrapper-fade {
    0%   { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}

.about-card-wrapper {
    position: relative;
    padding: 1.5px;
    overflow: hidden;
    border-radius: inherit;
}

.about-card-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 320deg,
        rgba(180, 150, 80, 0.0) 328deg,
        rgba(220, 185, 100, 0.85) 344deg,
        rgba(255, 235, 160, 1) 350deg,
        rgba(220, 185, 100, 0.85) 356deg,
        rgba(180, 150, 80, 0.0) 360deg
    );
    transform: translate(-50%, -50%) rotate(0deg);
    animation:
        border-light-travel 2s cubic-bezier(0.4, 0, 0.55, 1) 0.5s 1 forwards,
        border-wrapper-fade 2s ease-in 0.5s 1 forwards;
    pointer-events: none;
    opacity: 0;
    animation-fill-mode: forwards;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--navy-deep) 28%, transparent 100%);
    z-index: 1;
}

.about-card-letter {
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: var(--font-heading);
    font-size: 310px;
    font-weight: 700;
    color: rgba(239, 239, 239, 0.03);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.about-card-content {
    position: relative;
    z-index: 2;
}

.about-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-card-tag {
    font-size: 8.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.about-card-quote {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--off-white);
}

.about-corner {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 96px;
    height: 96px;
    border: 1px solid var(--border-hi);
}

/* MISION VISION */
#mision {
    background: var(--navy-mid);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mv-card {
    padding: 80px 66px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid transparent;
    transition: background .4s, border-color .4s;
}

.mv-card:first-child {
    border-right: 1px solid var(--border);
}

.mv-card:hover {
    background: rgba(239, 239, 239, 0.03);
    border-bottom-color: var(--off-white);
}

.mv-num {
    font-family: var(--font-heading);
    font-size: 130px;
    font-weight: 700;
    color: rgba(239, 239, 239, 0.04);
    position: absolute;
    top: -20px;
    right: 24px;
    line-height: 1;
    user-select: none;
}

.mv-tag {
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.mv-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 18px;
}

.mv-text {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}

/* PROJECTS */
#proyectos {
    padding: 140px 0;
}

.proj-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 68px;
}

.proj-intro-text {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
}

.proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.proj-card {
    position: relative;
    overflow: hidden;
    background: var(--navy-mid);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 30px;
    aspect-ratio: 3/4;
    text-decoration: none;
    color: inherit;
    transition: transform .4s ease;
}

.proj-card:hover {
    transform: translateY(-5px);
}

.proj-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.75) 30%, transparent 100%);
    z-index: 1;
}

.proj-bg {
    position: absolute;
    inset: 0;
    transition: transform .6s ease;
}

.proj-card:hover .proj-bg {
    transform: scale(1.04);
}

.proj-letter {
    position: absolute;
    bottom: -20px;
    right: -8px;
    font-family: var(--font-heading);
    font-size: 190px;
    font-weight: 700;
    color: rgba(239, 239, 239, 0.04);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.proj-content {
    position: relative;
    z-index: 2;
}

.proj-status {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid;
    margin-bottom: 13px;
}

.s-done {
    color: #9ecfaa;
    border-color: #9ecfaa;
}

.s-build {
    color: #9ec5d8;
    border-color: #9ec5d8;
}

.s-next {
    color: var(--muted);
    border-color: var(--muted);
}

.proj-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 7px;
    line-height: 1.1;
}

.proj-loc {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.proj-meta {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: rgba(239, 239, 239, 0.36);
}

.proj-card.feat {
    grid-column: span 2;
    aspect-ratio: 16/7;
}

.proj-card.feat::before {
    background: linear-gradient(to right, rgba(10, 10, 10, 0.75) 30%, transparent 100%);
}

.proj-card.feat .proj-content {
    max-width: 460px;
}

.proj-card.feat .proj-name {
    font-size: 42px;
}

/* ALVEA */
#alvea {
    padding: 140px 0;
    background: var(--navy-mid);
}

.alvea-grid {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 80px;
    align-items: center;
}

.alvea-box {
    background: var(--navy-deep);
    border: 1px solid var(--border);
    padding: 52px 44px;
}

.alvea-carousel-box {
    padding: 0;
    overflow: hidden;
}

.alvea-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.alvea-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.alvea-carousel-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.alvea-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 18, 26, 0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}

.alvea-carousel-btn:hover {
    background: rgba(10, 18, 26, 0.85);
    border-color: rgba(255,255,255,0.4);
}

.alvea-carousel-btn.prev { left: 14px; }
.alvea-carousel-btn.next { right: 14px; }

.alvea-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.alvea-carousel-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background 0.3s;
    cursor: pointer;
}

.alvea-carousel-dots .dot.active {
    background: rgba(255,255,255,0.9);
}

.alvea-box-name {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 400;
    font-style: italic;
    color: var(--off-white);
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
    margin-bottom: 22px;
    letter-spacing: 0.04em;
    opacity: 0.82;
}

.alvea-origin {
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.alvea-desc {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}

.alvea-items {
    margin-top: 32px;
}

.alvea-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.alvea-item-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 400;
}

.alvea-item-info {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ALLIES */
#aliados {
    padding: 130px 0;
}

.allies-head {
    text-align: center;
    margin-bottom: 68px;
}

.allies-head .section-label {
    justify-content: center;
}

.allies-head .section-label::before {
    display: none;
}

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

.ally--featured {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
}

.ally--featured .ally-logo {
    height: 64px;
    justify-content: center;
}

.ally--featured .ally-logo img {
    max-width: 280px;
}

.ally--featured .ally-desc {
    max-width: 560px;
}

.ally--featured .ally-arrow {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
}

.ally--featured:hover .ally-arrow {
    transform: translateX(-50%) translateY(0);
}

.ally {
    background: var(--navy-mid);
    border: 1px solid var(--border);
    padding: 46px 38px;
    text-decoration: none;
    color: inherit;
    transition: background .4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ally:hover {
    background: rgba(239, 239, 239, 0.05);
}

.ally-arrow {
    position: absolute;
    bottom: 26px;
    right: 26px;
    font-size: 17px;
    color: var(--off-white);
    opacity: 0;
    transform: translateX(-8px);
    transition: all .3s;
}

.ally:hover .ally-arrow {
    opacity: 0.55;
    transform: translateX(0);
}

.ally-name {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 500;
    color: var(--off-white);
    margin-bottom: 11px;
}

.ally-logo {
    margin-bottom: 11px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ally-logo img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.ally-role {
    font-size: 8.5px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.ally-desc {
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--muted);
    flex: 1;
    max-width: 46ch;
}

.ally-url {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: rgba(239, 239, 239, 0.3);
    margin-top: 18px;
}

/* CONTACT */
#contacto {
    padding: 140px 0;
    background: var(--navy-deep);
    text-align: center;
}

.contact-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.contact-wrap .section-label {
    justify-content: center;
}

.contact-wrap .section-label::before {
    display: none;
}

.contact-h {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 18px;
}

.contact-h em {
    font-style: italic;
}

.contact-sub {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 52px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.f-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.f-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.f-field label {
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

.f-field input,
.f-field select,
.f-field textarea {
    background: var(--navy-mid);
    border: 1px solid var(--border);
    color: var(--off-white);
    padding: 16px 17px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    outline: none;
    transition: border-color .3s;
    appearance: none;
    cursor: none;
}

.f-field textarea {
    height: 108px;
    resize: none;
}

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
    border-color: var(--off-white);
}

.f-field input::placeholder,
.f-field textarea::placeholder {
    color: rgba(239, 239, 239, 0.22);
}

.f-submit {
    text-align: center;
    margin-top: 26px;
}

/* FOOTER */
footer {
    background: var(--black);
    padding: 48px 64px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.f-logo-word img{
    /* font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--off-white);
    text-transform: uppercase; */
    width: 10rem;
}

.f-logo-tag {
    font-size: 7px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.f-links {
    display: flex;
    gap: 34px;
    list-style: none;
}

.f-links a {
    font-size: 9.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s;
}

.f-links a:hover {
    color: var(--off-white);
}

.f-copy {
    font-size: 10px;
    color: rgba(239, 239, 239, 0.22);
    letter-spacing: 0.04em;
}

/* ANIM */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 0.65
    }
}

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

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

.rd1 {
    transition-delay: .1s
}

.rd2 {
    transition-delay: .2s
}

.rd3 {
    transition-delay: .3s
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 600;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--off-white);
    transition: transform .3s, opacity .3s;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 800;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeOverlay .3s ease forwards;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--navy-deep);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 72px 40px 48px;
    animation: slidePanel .35s ease forwards;
    z-index: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    transition: color .2s;
    line-height: 1;
    padding: 16px;
    margin: -12px;
    z-index: 10;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    color: var(--off-white);
}

.mobile-menu-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    transition: none;
    gap: 0;
    margin-top: 8px;
}

.mobile-menu-link {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: color .25s;
    text-align: center;
    display: block;
}

.mobile-menu-link:hover {
    color: var(--off-white);
}

.mobile-menu-group {
    border-bottom: 1px solid var(--border);
}

.mobile-menu-toggle {
    width: 100%;
    position: relative;
    background: none;
    border: none;
    border-bottom: none;
    cursor: pointer;
}

.toggle-chevron {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 12px;
    height: 8px;
    transition: transform .3s ease;
    color: var(--muted);
}

.mobile-menu-toggle[aria-expanded="true"] .toggle-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-menu-sub-list {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
    text-align: center;
}

.mobile-menu-sub-list.open {
    max-height: 200px;
}

.mobile-menu-sub {
    padding: 14px 0;
    font-size: 9.5px;
    color: rgba(239, 239, 239, 0.4);
    border-bottom: none;
    border-top: 1px solid var(--border);
}

.mobile-menu-sub:hover {
    color: var(--muted);
}

.mobile-menu-cta {
    margin-top: 28px;
    border-bottom: none;
    background: var(--off-white);
    color: var(--navy-deep) !important;
    padding: 16px 24px;
    text-align: center;
    font-weight: 500;
    transition: background .3s;
}

.mobile-menu-cta:hover {
    background: var(--white);
    color: var(--navy-deep) !important;
}

@keyframes fadeOverlay {
    from { opacity: 0 }
    to   { opacity: 1 }
}

@keyframes slidePanel {
    from { transform: translateX(100%) }
    to   { transform: translateX(0) }
}

/* MOBILE */
@media(max-width:900px) {
    * { cursor: auto !important; }

    #cur,
    #cur-r {
        display: none !important;
    }

    nav {
        padding: 18px 24px;
    }

    nav.scrolled {
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #hero {
        /* En tablets/celulares, a veces es mejor usar 100svh o un alto fijo 
           si el contenido es poco para evitar el hueco */
        height: auto;
        min-height: 100vh;
        align-items: center;
        background:
            linear-gradient(rgba(5, 10, 15, 0.78), rgba(5, 10, 15, 0.78)),
            url('../assets/Videnza/hero_videnza.jpeg') center center / cover no-repeat;
        padding-top: 120px;
        /* Espacio para el logo */
        padding-bottom: 80px;
    }

    .hero-content {
        margin-top: 0;
        padding: 0 24px;
    }

    .hero-title {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.1;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-cta-wrap {
        display: inline-flex;
        flex-direction: column;
    }

    .hero-statsbar {
        flex-direction: column;
        max-width: none;
    }

    .hstat {
        border-right: none;
        border-bottom: 1px solid var(--border-hi);
    }

    .hstat:last-child {
        border-bottom: none;
    }

    .container {
        padding: 0 24px;
    }

    .about-grid,
    .mv-grid,
    .proj-intro,
    .alvea-grid {
        grid-template-columns: 1fr;
        gap: 44px
    }

    .proj-grid {
        grid-template-columns: 1fr
    }

    .proj-card.feat {
        grid-column: span 1;
        aspect-ratio: 3/4
    }

    .proj-card.feat .proj-name {
        font-size: 28px
    }

    .proj-card.feat::before {
        background: linear-gradient(to top, rgba(10, 10, 10, 0.75) 30%, transparent 100%)
    }

    .allies-grid {
        grid-template-columns: 1fr
    }

    .ally {
        text-align: center;
        align-items: center;
    }

    .ally-logo {
        justify-content: center;
    }

    .ally-desc {
        max-width: 46ch;
        margin-left: auto;
        margin-right: auto;
    }

    .ally-arrow {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-8px);
    }

    .ally:hover .ally-arrow {
        transform: translateX(-50%) translateY(0);
    }

    footer {
        flex-direction: column;
        gap: 26px;
        text-align: center;
        padding: 36px 24px
    }

    .f-links {
        flex-wrap: wrap;
        justify-content: center
    }

    .f-row {
        grid-template-columns: 1fr
    }

    #about,
    #proyectos,
    #alvea,
    #aliados,
    #contacto {
        padding: 80px 0
    }

    .mv-card {
        padding: 48px 28px
    }

    .mv-card:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .section-title {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .alvea-box-name {
        font-size: 42px;
        overflow-wrap: break-word;
    }

    .contact-h {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-sub {
        max-width: 34ch;
        text-align: left;
        margin-right: auto;
    }
}