/* ============================================
   ARANDA & VILLALBA — Editorial dark luxe
   ============================================ */

:root {
    --bg: #0B0B0B;
    --bg-2: #111110;
    --bg-3: #161514;
    --cream: #EDE6DA;
    --cream-2: #B8AFA2;
    --muted: #6E665C;
    --muted-2: #4A443E;
    --gold: #C2A06B;
    --gold-bright: #D4B67F;
    --gold-deep: #A88756;
    --border: #242220;
    --border-light: #322F2B;

    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--cream);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Grano sutil */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    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.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }

.container {
    width: 88%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ============================================
   BARRA DE PROGRESO
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    z-index: 1002;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */
.cursor-ring,
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s, width 0.4s var(--ease-expo),
                height 0.4s var(--ease-expo), background 0.4s var(--ease-expo);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold);
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
}

.cursor-ring.active {
    width: 64px;
    height: 64px;
    background: rgba(194, 160, 107, 0.1);
    border-color: var(--gold-bright);
}

@media (hover: hover) and (pointer: fine) {
    body:hover .cursor-ring,
    body:hover .cursor-dot { opacity: 1; }
}

@media (hover: none), (pointer: coarse) {
    .cursor-ring, .cursor-dot { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.6rem 0;
    transition: background 0.6s var(--ease-expo),
                padding 0.5s var(--ease-expo),
                border-color 0.6s var(--ease-expo);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: 88%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gold);
    border: 1px solid var(--gold-deep);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.6s var(--ease-expo);
}

.logo:hover .logo-mark {
    border-color: var(--gold);
    background: rgba(194, 160, 107, 0.06);
}

.logo-mark .amp { font-style: italic; font-size: 0.85em; margin: 0 0.05em; }

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 400;
}

.logo-text em { color: var(--gold); font-style: italic; }

.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;

    background: #111110;
    border-left: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 7rem 2.5rem 2rem;
    gap: 0;

    transform: translate3d(100%, 0, 0);
    transition: transform 0.8s var(--ease-expo);

    z-index: 1005;

    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.35);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.main-nav.open {
    transform: translate3d(0, 0, 0);
}

.main-nav a,
.main-nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-2);
    font-weight: 400;
    position: relative;
    transition: color 0.5s var(--ease-smooth);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s var(--ease-expo);
}

.main-nav a:hover { color: var(--cream); }
.main-nav a:hover::after { width: 100%; }

.nav-contact {
    color: var(--gold) !important;
    padding: 0.55rem 1.3rem !important;
    border: 1px solid var(--gold-deep) !important;
    border-radius: 1px;
    transition: all 0.5s var(--ease-smooth) !important;
}

.nav-contact:hover {
    background: var(--gold) !important;
    color: var(--bg) !important;
    border-color: var(--gold) !important;
}

.nav-contact::after { display: none !important; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
    z-index: 1006;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--cream);
    transition: transform 0.4s var(--ease-expo), opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.menu-toggle.active span:nth-child(2) { transform: rotate(-45deg) translate(3px, -3px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) contrast(1.05);
    will-change: transform;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.92) 75%),
        linear-gradient(180deg, rgba(11,11,11,0.7) 0%, rgba(11,11,11,0.35) 40%, rgba(11,11,11,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2.4rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 1.4s var(--ease-expo) 0.2s forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6.5vw, 5.4rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 2.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 0.1em;
    margin: 0 -0.1em;
}

.hero-title .word > span {
    display: inline-block;
    transform: translateY(105%);
    animation: wordUp 1.4s var(--ease-expo) forwards;
}

.hero-title .line:nth-child(1) .word:nth-child(1) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(1) .word:nth-child(2) > span { animation-delay: 0.58s; }
.hero-title .line:nth-child(1) .word:nth-child(3) > span { animation-delay: 0.66s; }
.hero-title .line:nth-child(2) .word:nth-child(1) > span { animation-delay: 0.78s; }
.hero-title .line:nth-child(2) .word:nth-child(2) > span { animation-delay: 0.86s; }
.hero-title .line:nth-child(2) .word:nth-child(3) > span { animation-delay: 0.94s; }
.hero-title .line:nth-child(2) .word:nth-child(4) > span { animation-delay: 1.02s; }

.hero-title em {
    color: var(--gold-bright);
    font-style: italic;
    font-weight: 300;
}

.hero-rule {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeUp 1.4s var(--ease-expo) 1.2s forwards;
}

.hero-sub {
    font-size: 1.02rem;
    color: var(--cream-2);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.9;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1.4s var(--ease-expo) 1.35s forwards;
}

.hero-actions {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1.4s var(--ease-expo) 1.55s forwards;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 400;
    padding: 0.8rem 0;
    position: relative;
    transition: color 0.5s var(--ease-smooth);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-deep);
    transition: background 0.5s var(--ease-smooth);
}

.link-arrow .arrow {
    color: var(--gold);
    transition: transform 0.5s var(--ease-expo);
    font-size: 1.1rem;
    line-height: 1;
}

.link-arrow:hover { color: var(--gold-bright); }
.link-arrow:hover .arrow { transform: translateX(8px); }
.link-arrow:hover::after { background: var(--gold); }

.link-muted {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    transition: color 0.5s;
}

.link-muted:hover { color: var(--cream-2); }

.hero-vertical {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    z-index: 2;
}

.hero-vertical-left { left: 2.5rem; }
.hero-vertical-right { right: 2.5rem; }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    z-index: 2;
    color: var(--muted);
    transition: color 0.5s;
    opacity: 0;
    animation: fadeUp 1.5s var(--ease-expo) 1.9s forwards;
}

.hero-scroll:hover { color: var(--gold); }

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--gold-deep), transparent);
    animation: scrollPulse 2.6s var(--ease-smooth) infinite;
}

.scroll-label {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wordUp {
    to { transform: translateY(0); }
}

/* ============================================
   SECCIONES
   ============================================ */
.section { padding: 9rem 0; position: relative; }

.section-mark {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.mark-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    font-weight: 500;
}

.mark-line {
    flex: 0 0 48px;
    height: 1px;
    background: var(--gold-deep);
}

.mark-label {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}

.section-mark.light .mark-num { color: var(--gold-bright); }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin-bottom: 2rem;
}

.section-title em { color: var(--gold-bright); font-style: italic; }

.section-sub {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.85;
    font-weight: 300;
}

/* ============================================
   LA FIRMA
   ============================================ */
.firma-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.firma-body p {
    font-size: 1rem;
    color: var(--cream-2);
    margin-bottom: 1.6rem;
    font-weight: 300;
    line-height: 1.85;
}

.values {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
}

.value {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.8rem 0;
    border-top: 1px solid var(--border);
}

.value:last-child { border-bottom: 1px solid var(--border); }

.value-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding-top: 0.15rem;
    font-style: italic;
}

.value h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 0.4rem;
}

.value p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

.firma-visual {
    position: relative;
    padding-top: 3rem;
}

.frame { position: relative; overflow: hidden; }

.frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold-deep);
    transform: translate(20px, 20px);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.8s var(--ease-expo);
}

.firma-visual:hover .frame::before { transform: translate(12px, 12px); }

.frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: brightness(0.92);
    transition: filter 1s var(--ease-smooth), transform 1.2s var(--ease-expo);
    position: relative;
    z-index: 0;
}

.firma-visual:hover .frame img {
    filter: brightness(1);
    transform: scale(1.03);
}

.vertical-note {
    writing-mode: vertical-rl;
    position: absolute;
    right: -2rem;
    top: 3rem;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
    will-change: transform;
}

.marquee-track span {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-style: italic;
    color: var(--muted-2);
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding-right: 1rem;
}

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* ============================================
   QUÉ HACEMOS
   ============================================ */
.section-quehacemos { background: var(--bg-2); }

.quehacemos-head {
    max-width: 760px;
    margin-bottom: 5rem;
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.process-step {
    position: relative;
    padding-top: 2.2rem;
    border-top: 1px solid var(--border);
}

.process-step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 1.6s var(--ease-expo) 0.4s;
}

.process-step.visible::before { width: 100%; }

.step-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold);
    line-height: 1;
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
    max-width: 32px;
}

.process-step h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.7rem;
    transition: color 0.6s var(--ease-smooth);
}

.process-step:hover h3 { color: var(--gold-bright); }

.process-step p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ============================================
   ÁREAS
   ============================================ */
.section-areas { background: var(--bg-3); }

.areas-head { max-width: 760px; margin-bottom: 5rem; }

.areas-list { border-top: 1px solid var(--border); }

.area-row {
    display: grid;
    grid-template-columns: 90px 1fr 60px;
    gap: 2rem;
    padding: 2.8rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: padding 0.7s var(--ease-expo),
                background 0.7s var(--ease-expo),
                border-color 0.7s var(--ease-expo);
    position: relative;
    cursor: pointer;
}

.area-row:hover {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: var(--bg-2);
    border-bottom-color: var(--gold-deep);
}

.area-num {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--muted);
    font-style: italic;
    transition: color 0.6s var(--ease-smooth);
}

.area-row:hover .area-num { color: var(--gold); }

.area-main h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.5rem;
    transition: color 0.5s;
}

.area-main p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    max-width: 680px;
    transition: color 0.5s;
}

.area-row:hover .area-main p { color: var(--cream-2); }

.area-arrow {
    font-size: 1.1rem;
    color: var(--muted-2);
    justify-self: end;
    transition: all 0.6s var(--ease-expo);
}

.area-row:hover .area-arrow {
    color: var(--gold);
    transform: translateX(10px);
}

/* ============================================
   CONSTITUCIÓN
   ============================================ */
.section-constitucion {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 11rem 0;
}

.section-constitucion::before,
.section-constitucion::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.section-constitucion::before { top: 0; }
.section-constitucion::after { bottom: 0; }

.constitucion-vertical-left {
    position: absolute;
    top: 50%;
    left: 2.5rem;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 400;
}

.constitucion-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-mark {
    display: block;
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 0.6;
    color: var(--gold-deep);
    margin-bottom: 2rem;
    opacity: 0.5;
    font-style: italic;
}

.constitucion-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--cream);
    margin-bottom: 2rem;
    border: none;
}

.constitucion-quote em { color: var(--gold-bright); font-style: italic; }

.constitucion-inner cite {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.constitucion-rule {
    width: 1px;
    height: 60px;
    background: var(--gold-deep);
    margin: 0 auto 3.5rem;
}

.constitucion-inner p {
    font-size: 1rem;
    color: var(--cream-2);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 1.6rem;
    text-align: left;
}

.constitucion-inner .link-arrow {
    margin-top: 2rem;
    display: inline-flex;
}

/* ============================================
   EQUIPO
   ============================================ */
.section-equipo { background: var(--bg-2); }

.equipo-head { margin-bottom: 5rem; max-width: 700px; }

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.team-card { cursor: default; }

.team-visual {
    overflow: hidden;
    margin-bottom: 1.8rem;
    position: relative;
}

.team-visual img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: brightness(0.92);
    transition: filter 1s var(--ease-smooth), transform 1.4s var(--ease-expo);
}

.team-card:hover .team-visual img {
    filter: brightness(1);
    transform: scale(1.04);
}

.team-rule {
    width: 32px;
    height: 1px;
    background: var(--gold-deep);
    margin-bottom: 1.2rem;
    transition: width 0.8s var(--ease-expo), background 0.8s;
}

.team-card:hover .team-rule { width: 64px; background: var(--gold); }

.team-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.4rem;
}

.team-role {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}

/* ============================================
   CONTACTO (invitación)
   ============================================ */
.section-contacto {
    background: var(--bg);
    padding-bottom: 10rem;
}

.contacto-final {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.contacto-final .section-title { margin-bottom: 1.5rem; }

.contacto-final .section-sub { margin: 0 auto 1rem; }

.contacto-cta-wrap {
    position: relative;
    display: inline-block;
    margin: 3.5rem 0 5rem;
}

.contacto-cta-wrap::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(194, 160, 107, 0.18) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glowBreath 4s ease-in-out infinite;
}

@keyframes glowBreath {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.btn-gold-large {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gold);
    color: var(--bg);
    border: none;
    padding: 1.4rem 2.8rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-expo);
    will-change: transform;
    box-shadow: 0 20px 50px -20px rgba(194, 160, 107, 0.5);
}

.btn-gold-large:hover {
    background: var(--gold-bright);
    box-shadow: 0 25px 60px -20px rgba(194, 160, 107, 0.75);
}

.btn-gold-large .scale-icon { width: 18px; height: 18px; }

.contacto-datos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

.info-block { padding-bottom: 0; }

.info-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.info-block p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--cream);
    line-height: 1.5;
    font-weight: 400;
}

/* ============================================
   BOTÓN DORADO FLOTANTE
   ============================================ */
.btn-gold-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gold);
    color: var(--bg);
    border: none;
    padding: 1rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 12px 40px -10px rgba(194, 160, 107, 0.55);
    transition: background 0.4s var(--ease-expo),
                transform 0.4s var(--ease-expo),
                box-shadow 0.4s var(--ease-expo);
    animation: floatButtonIn 1.2s var(--ease-expo) 2.2s backwards;
}

@keyframes floatButtonIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-gold-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold);
    border-radius: inherit;
    animation: floatPulse 3.5s ease-out 3s infinite;
    pointer-events: none;
}

@keyframes floatPulse {
    0% { transform: scale(1); opacity: 0.7; }
    60% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.btn-gold-float:hover {
    background: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -10px rgba(194, 160, 107, 0.75);
}

.btn-gold-float .scale-icon { width: 16px; height: 16px; }

/* ============================================
   MODAL DE CONSULTA
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 2rem;
    visibility: hidden;
    pointer-events: none;
}

.modal.open {
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.6s var(--ease-expo);
}

.modal.open .modal-backdrop { opacity: 1; }

.modal-panel {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border-light);
    max-width: 660px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3.5rem 3.5rem 3rem;
    transform: scale(0.82);
    opacity: 0;
    transition: transform 0.75s var(--ease-expo), opacity 0.6s var(--ease-expo);
    will-change: transform, opacity;
}

.modal.open .modal-panel {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(194, 160, 107, 0.15);
}

.modal-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.8s var(--ease-expo) 0.3s;
}

.modal.open .modal-panel::before { opacity: 1; }

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s var(--ease-expo);
}

.modal-close span {
    position: absolute;
    width: 14px;
    height: 1px;
    background: var(--cream-2);
    transition: background 0.3s;
}

.modal-close span:nth-child(1) { transform: rotate(45deg); }
.modal-close span:nth-child(2) { transform: rotate(-45deg); }

.modal-close:hover {
    border-color: var(--gold);
    background: rgba(194, 160, 107, 0.06);
}

.modal-close:hover span { background: var(--gold); }

.modal-head { margin-bottom: 2.5rem; }

.form-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.modal-sub {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

.modal-form { display: flex; flex-direction: column; }

.form-field {
    position: relative;
    border-bottom: 1px solid var(--border);
    padding: 1.6rem 0 0.9rem;
    transition: border-color 0.6s var(--ease-smooth);
}

.form-field:focus-within { border-bottom-color: var(--gold); }

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 0;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: transparent; }

.form-field label {
    position: absolute;
    top: 1.6rem;
    left: 0;
    font-size: 0.98rem;
    color: var(--muted);
    font-family: var(--font-serif);
    font-weight: 400;
    pointer-events: none;
    transition: all 0.5s var(--ease-expo);
}

.form-field:focus-within label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 400;
}

.form-field textarea { min-height: 50px; }

.btn-submit {
    margin-top: 2.5rem;
    background: transparent;
    border: 1px solid var(--gold-deep);
    color: var(--cream);
    padding: 1.05rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 400;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.6s var(--ease-expo);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-expo);
    z-index: 0;
}

.btn-submit span { position: relative; z-index: 1; }

.btn-submit:hover { color: var(--bg); border-color: var(--gold); }
.btn-submit:hover::before { transform: translateY(0); }

.btn-submit:disabled { opacity: 0.7; cursor: wait; }

.form-note {
    margin-top: 1.6rem;
    font-size: 0.7rem;
    color: var(--muted-2);
    letter-spacing: 0.03em;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg);
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.footer-seal {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold);
    border: 1px solid var(--gold-deep);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer-seal .amp { font-style: italic; font-size: 0.85em; }

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 400;
}

.footer-brand em { color: var(--gold); font-style: italic; }

.footer-rule {
    width: 60px;
    height: 1px;
    background: var(--gold-deep);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    font-weight: 300;
}

.footer-muted {
    font-size: 0.68rem !important;
    color: var(--muted-2) !important;
    letter-spacing: 0.08em !important;
}

/* ============================================
   REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.3s var(--ease-expo), transform 1.3s var(--ease-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.process .reveal:nth-child(1) { transition-delay: 0.05s; }
.process .reveal:nth-child(2) { transition-delay: 0.15s; }
.process .reveal:nth-child(3) { transition-delay: 0.25s; }
.process .reveal:nth-child(4) { transition-delay: 0.35s; }

.equipo-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.equipo-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .firma-grid { grid-template-columns: 1fr; gap: 4rem; }
    .firma-visual { max-width: 500px; margin: 0 auto; }
    .vertical-note { display: none; }
    .equipo-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .area-row { grid-template-columns: 60px 1fr 40px; gap: 1.5rem; }
    .process { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
    .contacto-datos-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section { padding: 6rem 0; }
    .section-mark { margin-bottom: 3.5rem; }
    .hero-vertical { display: none; }

    /* --- MENÚ LATERAL MÓVIL SOFISTICADO --- */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh; /* Para navegadores móviles */
        background: var(--bg-2);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 7rem 2.5rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.8s var(--ease-expo);
        z-index: 1005; /* Por encima del header */
        box-shadow: none;
    }

    .main-nav.open {
        transform: translateX(0);
        box-shadow: -30px 0 60px rgba(0, 0, 0, 0.85);
    }

    .main-nav a,
    .main-nav button {
        width: 100%;
        padding: 1.2rem 0;
        border-bottom: 1px solid var(--border-light);
        text-align: left;
        font-size: 0.9rem;
        letter-spacing: 0.2em;
        color: var(--cream);
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.6s var(--ease-expo);
    }

    .main-nav a:hover {
        color: var(--gold-bright);
        padding-left: 0.5rem;
    }

    /* Quitar la línea animada del escritorio */
    .main-nav a::after { display: none; }

    /* Botón de contacto dentro del menú */
    .nav-contact {
        border: none !important;
        padding: 1.2rem 0 !important;
        color: var(--gold) !important;
        text-align: left;
    }

    /* Animación en cascada para los enlaces */
    .main-nav.open a,
    .main-nav.open button {
        opacity: 1;
        transform: translateX(0);
    }
    .main-nav.open a:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.open a:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.open a:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.open a:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.open a:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.open a:nth-child(6) { transition-delay: 0.35s; }

    /* Botón hamburguesa fijo arriba a la derecha */
    .menu-toggle {
        display: flex;
        position: fixed;
        top: 1.6rem;
        right: 2rem;
        z-index: 1006; /* Por encima del menú lateral */
        background: transparent;
        padding: 0.5rem;
    }

    /* Fondo oscuro y difuminado al abrir el menú */
   body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 11, 0.78);
    z-index: 1004;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.6s var(--ease-expo),
                visibility 0.6s var(--ease-expo);
}

    body.nav-open::before {
        opacity: 1;
        visibility: visible;
    }

    /* Bloquear scroll del cuerpo cuando el menú está abierto */
    body.nav-open {
        overflow: hidden;
    }

    /* Ajustes generales para móvil */
    .equipo-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .area-row { grid-template-columns: 45px 1fr; gap: 1rem; padding: 2rem 0; }
    .area-arrow { display: none; }
    .area-row:hover { padding-left: 0.5rem; padding-right: 0.5rem; }
    .contacto-head, .areas-head, .equipo-head, .quehacemos-head { margin-bottom: 3.5rem; }
    .hero-actions { flex-direction: column; gap: 1.5rem; }
    .constitucion-vertical-left { display: none; }
    .section-constitucion { padding: 7rem 0; }
    .quote-mark { font-size: 5rem; }
    .process { grid-template-columns: 1fr; gap: 2.5rem; }
    .contacto-datos-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .btn-gold-large { padding: 1.2rem 1.8rem; font-size: 0.7rem; letter-spacing: 0.18em; }
    .contacto-cta-wrap { margin: 2.5rem 0 3.5rem; }

    /* Botón flotante en móvil (círculo) */
    .btn-gold-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 58px;
        height: 58px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .btn-gold-float span { display: none; }
    .btn-gold-float .scale-icon { width: 22px; height: 22px; }

    /* Modal en móvil */
    .modal { padding: 1rem; }
    .modal-panel { padding: 3rem 1.8rem 2rem; max-height: calc(100vh - 2rem); }
    .modal-close { top: 0.8rem; right: 0.8rem; }
}

@media (max-width: 480px) {
    .container, .header-inner { width: 90%; }
    .logo-text { display: none; }
    .hero-title { font-size: 2.4rem; }
    .area-row { grid-template-columns: 1fr; }
    .area-num { font-size: 1rem; }
    .modal-panel { padding: 2.5rem 1.5rem 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .hero-title .word > span { transform: none; }
}