/* ===== REALIUXE — Estilos globales ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', sans-serif; font-weight: 400; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }

/* ===== TOKENS ===== */
:root {
  --verde: #0F3B33;
  --verde-deep: #0A2A24;
  --marfil: #F5F1E8;
  --piedra: #E7E0D4;
  --carbon: #1E1E1A;
  --champan: #C6A66B;
  --blanco: #fff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-w: 1200px;
  --px: 1.5rem;
}
@media (min-width: 1024px) { :root { --px: 2rem; } }

/* ===== BODY ===== */
body { background: var(--marfil); color: var(--carbon); }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }
.font-serif { font-family: var(--font-serif); }
.text-marfil { color: var(--marfil); }
.text-carbon { color: var(--carbon); }
.text-champan { color: var(--champan); }
.text-verde { color: var(--verde); }
.bg-marfil { background: var(--marfil); }
.bg-piedra { background: var(--piedra); }
.bg-verde { background: var(--verde); }
.bg-verde-deep { background: var(--verde-deep); }

/* ===== NAVIGATION ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all 0.5s ease; height: 80px; }
.nav.scrolled { background: rgba(245,241,232,0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--px); height: 100%; }
.nav-logo { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 0.15em; color: var(--marfil); transition: color 0.5s; z-index: 55; position: relative; }
.nav.scrolled .nav-logo { color: var(--verde); }

/* Desktop links */
.nav-links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-size: 15px; font-weight: 500; letter-spacing: 0.5px; color: rgba(245,241,232,0.9); transition: color 0.3s; }
.nav-link:hover { color: var(--marfil); }
.nav.scrolled .nav-link { color: var(--carbon); }
.nav.scrolled .nav-link:hover { color: var(--verde); }
.nav-link.active { color: var(--marfil); }
.nav.scrolled .nav-link.active { color: var(--verde); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-toggle svg { transition: transform 0.2s; width: 14px; height: 14px; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; padding-top: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: all 0.2s ease; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu-inner { background: rgba(245,241,232,0.98); backdrop-filter: blur(16px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 12px 4px; min-width: 200px; }
.nav-dropdown-link { display: block; padding: 10px 20px; font-size: 14px; font-weight: 500; letter-spacing: 0.3px; color: rgba(30,30,26,0.8); transition: all 0.2s; }
.nav-dropdown-link:hover { color: var(--verde); background: rgba(231,224,212,0.5); }
.nav-dropdown-link.active { color: var(--verde); background: rgba(231,224,212,0.3); }

/* Mobile */
.nav-hamburger { display: flex; z-index: 55; position: relative; padding: 4px; }
@media (min-width: 1024px) { .nav-hamburger { display: none; } }
.nav-hamburger svg { width: 24px; height: 24px; color: var(--marfil); transition: color 0.3s; }
.nav.scrolled .nav-hamburger svg { color: var(--carbon); }
.mobile-menu { position: fixed; inset: 0; background: var(--marfil); z-index: 45; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-hamburger svg { color: var(--carbon); }
.mobile-link { font-family: var(--font-serif); font-size: 1.875rem; color: var(--carbon); transition: color 0.3s; }
.mobile-link:hover, .mobile-link.active { color: var(--verde); }
.mobile-sub { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.mobile-sub a { font-size: 1rem; font-weight: 500; color: rgba(30,30,26,0.6); transition: color 0.3s; }
.mobile-sub a:hover, .mobile-sub a.active { color: var(--verde); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero.compact { min-height: 70vh; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,42,36,0.7), rgba(10,42,36,0.5), rgba(10,42,36,0.8)); }
.hero-content { position: relative; z-index: 10; max-width: var(--max-w); margin: 0 auto; padding: 8rem var(--px); width: 100%; }
.hero-content-inner { max-width: 750px; }
.hero-line { height: 1px; width: 64px; background: var(--champan); margin-bottom: 2rem; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2.375rem, 5vw, 3.875rem); color: var(--marfil); line-height: 1.1; margin-bottom: 1.5rem; }
.hero .hero-sub { color: rgba(245,241,232,0.75); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; max-width: 600px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-size: 15px; font-weight: 500; letter-spacing: 0.5px; transition: all 0.3s; }
.btn-primary { background: var(--verde); color: var(--marfil); }
.btn-primary:hover { background: var(--verde-deep); }
.btn-outline { border: 1px solid rgba(245,241,232,0.4); color: var(--marfil); }
.btn-outline:hover { background: rgba(245,241,232,0.1); }
.btn-light { background: var(--marfil); color: var(--verde); font-weight: 600; }
.btn-light:hover { background: var(--piedra); }
.btn svg { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 15px; font-weight: 500; letter-spacing: 0.3px; color: var(--verde); transition: gap 0.3s; }
.text-link:hover { gap: 0.75rem; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--champan); margin-bottom: 1rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(2.25rem, 4vw, 3rem); color: var(--carbon); margin-bottom: 4rem; line-height: 1.15; }
.section-title.light { color: var(--marfil); }
.section-line { height: 1px; width: 48px; background: var(--champan); }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-12 { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.col-4 { grid-column: span 1; }
.col-5 { grid-column: span 1; }
.col-7 { grid-column: span 1; }
.col-8 { grid-column: span 1; }
@media (min-width: 1024px) { .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } }

/* ===== CARDS ===== */
.card { position: relative; overflow: hidden; display: block; }
.card-image { position: relative; padding-top: 75%; overflow: hidden; background: var(--piedra); }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,42,36,0.8), rgba(10,42,36,0.2), transparent); }
.card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
@media (min-width: 1024px) { .card-body { padding: 2rem; } }
.card-descriptor { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color:  var(--blanco); margin-bottom: 0.5rem; }
.card-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 1.75rem); color: var(--marfil); margin-bottom: 0.75rem; }
.card-text { color: rgba(245,241,232,0.7); font-size: 15px; line-height: 1.6; margin-bottom: 1rem; max-width: 400px; }
.card-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--marfil); font-size: 14px; font-weight: 500; letter-spacing: 0.3px; transition: gap 0.3s; }
.card:hover .card-link { gap: 0.75rem; }

/* ===== CONTENT BLOCKS ===== */
.block { padding: 2rem; }
@media (min-width: 1024px) { .block { padding: 2.5rem; } }
.block-piedra { background: rgba(231,224,212,0.5); }
.block-marfil { background: var(--marfil); }
.block-verde-deep { background: var(--verde-deep); }
.block h3 { font-size: 1.25rem; font-weight: 600; color: var(--carbon); margin-bottom: 0.75rem; }
.block p { color: rgba(30,30,26,0.65); font-size: 1rem; line-height: 1.7; }
.block.light h3 { color: var(--marfil); }
.block.light p { color: rgba(245,241,232,0.6); }

/* Service card */
.service-card { background: var(--marfil); padding: 1.75rem; transition: box-shadow 0.4s; }
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.service-card .icon { color: var(--verde); margin-bottom: 1rem; width: 24px; height: 24px; }
.service-card p { color: var(--carbon); font-size: 1rem; font-weight: 500; line-height: 1.6; }

/* Service row */
.service-row { display: flex; gap: 1.5rem; background: var(--marfil); padding: 2rem 2.5rem; }
.service-row .icon { color: var(--verde); flex-shrink: 0; width: 28px; height: 28px; }
.service-row h3 { font-size: 1.25rem; font-weight: 600; color: var(--carbon); margin-bottom: 0.5rem; }
.service-row p { color: rgba(30,30,26,0.65); font-size: 1rem; line-height: 1.7; }

/* Step */
.step .num { font-family: var(--font-serif); font-size: 3rem; color: var(--piedra); }
.step h3 { font-size: 1.125rem; font-weight: 600; color: var(--carbon); margin-top: 0.5rem; margin-bottom: 0.75rem; }
.step p { color: rgba(30,30,26,0.6); font-size: 15px; line-height: 1.7; }

/* Pain point */
.pain { display: flex; align-items: flex-start; gap: 1rem; }
.pain-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champan); margin-top: 10px; flex-shrink: 0; }
.pain p { color: rgba(30,30,26,0.7); font-size: 17px; line-height: 1.6; }

/* Check item */
.check-item { display: flex; align-items: center; gap: 0.75rem; }
.check-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.check-item span { font-size: 17px; }
.check-item.light span { color: rgba(245,241,232,0.8); }
.check-item.dark span { color: rgba(30,30,26,0.75); }

/* Pillar */
.pillar { display: flex; gap: 1.5rem; }
.pillar .icon { flex-shrink: 0; color: var(--champan); width: 24px; height: 24px; margin-top: 4px; }
.pillar h3 { font-size: 1.25rem; font-weight: 600; color: var(--carbon); margin-bottom: 0.75rem; }
.pillar p { color: rgba(30,30,26,0.65); font-size: 1rem; line-height: 1.7; }

/* Callout */
.callout { background: var(--marfil); padding: 2rem 2.5rem; border-left: 2px solid var(--champan); margin-top: 3rem; }
.callout p { color: rgba(30,30,26,0.7); font-size: 1rem; line-height: 1.7; font-style: italic; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 6rem 0; text-align: center; }
@media (min-width: 1024px) { .cta-section { padding: 8rem 0; } }
.cta-section h2 { font-family: var(--font-serif); font-size: clamp(2.25rem, 4vw, 3.25rem); color: var(--marfil); margin-bottom: 1.5rem; }
.cta-section p { color: rgba(245,241,232,0.7); font-size: 17px; line-height: 1.7; max-width: 550px; margin: 0 auto 2.5rem; }

/* ===== EDITORIAL ===== */
.editorial-intro { max-width: 800px; margin: 0 auto; text-center: center; text-align: center; }
.editorial-intro .section-line { margin: 0 auto 2rem; }
.editorial-intro p { font-family: var(--font-serif); font-size: clamp(1.625rem, 2.5vw, 2.125rem); color: var(--carbon); line-height: 1.4; }

/* Division detail row */
.div-row { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .div-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.div-row.reverse { direction: ltr; }
@media (min-width: 1024px) { .div-row.reverse { direction: rtl; } .div-row.reverse > * { direction: ltr; } }
.div-row .image-wrap { position: relative; padding-top: 62.5%; overflow: hidden; }
.div-row .image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.div-row:hover .image-wrap img { transform: scale(1.05); }

/* ===== TWO COL LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .image-wrap { position: relative; padding-top: 75%; overflow: hidden; }
.two-col .image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== AUDIENCE CARD ===== */
.audience-card { background: var(--marfil); padding: 2rem 2.5rem; }
.audience-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; }
.audience-header .icon { color: var(--verde); flex-shrink: 0; margin-top: 4px; width: 28px; height: 28px; }
.audience-header h3 { font-size: 1.375rem; font-weight: 600; color: var(--carbon); }
.audience-header .subtitle { color: var(--champan); font-size: 14px; font-weight: 500; letter-spacing: 0.5px; margin-top: 4px; }
.audience-text { color: rgba(30,30,26,0.65); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .audience-text, .audience-bullets { margin-left: 52px; } }
.audience-bullets { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .audience-bullets { grid-template-columns: 1fr 1fr; } }
.audience-bullet { display: flex; align-items: flex-start; gap: 0.5rem; }
.audience-bullet svg { width: 14px; height: 14px; color: var(--verde); margin-top: 6px; flex-shrink: 0; }
.audience-bullet span { color: rgba(30,30,26,0.6); font-size: 15px; }

/* ===== BORDER CARD (Alliance dark) ===== */
.border-card { border: 1px solid rgba(245,241,232,0.1); padding: 2rem; transition: border-color 0.5s; }
.border-card:hover { border-color: rgba(245,241,232,0.2); }
.border-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--marfil); margin-bottom: 0.75rem; }
.border-card p { color: rgba(245,241,232,0.6); font-size: 1rem; line-height: 1.7; }

/* ===== TWO-MODEL CARDS (Co-Living) ===== */
.model-card { padding: 2rem 2.5rem; height: 100%; }
.model-label { font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--champan); margin-bottom: 1rem; }
.model-card h3 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 1.25rem; }

/* ===== FOOTER ===== */
.footer { background: var(--verde-deep); color: rgba(245,241,232,0.8); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 4rem var(--px) 5rem; }
@media (min-width: 1024px) { .footer-inner { padding: 5rem var(--px); } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; } }
.footer-logo { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 0.15em; color: var(--marfil); }
.footer-desc { margin-top: 1.25rem; font-size: 14px; line-height: 1.6; color: rgba(245,241,232,0.6); max-width: 280px; }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champan); margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a, .footer-links span { font-size: 14px; color: rgba(245,241,232,0.6); transition: color 0.3s; }
.footer-links a:hover { color: var(--marfil); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(245,241,232,0.1); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy { font-size: 12px; color: rgba(245,241,232,0.4); }
.footer-accent { height: 1px; width: 48px; background: rgba(198,166,107,0.3); }

/* ===== FORM ===== */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: rgba(30,30,26,0.7); margin-bottom: 0.5rem; }
.form-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(30,30,26,0.2); padding: 0.75rem 0; font-size: 17px; color: var(--carbon); outline: none; transition: border-color 0.3s; }
.form-input:focus { border-color: var(--verde); }
.form-input::placeholder { color: rgba(30,30,26,0.3); }
textarea.form-input { resize: none; }
select.form-input { appearance: none; cursor: pointer; }
.form-note { color: rgba(30,30,26,0.4); font-size: 13px; margin-top: 1rem; }
.form-error { display: flex; align-items: center; gap: 0.5rem; color: #dc2626; font-size: 14px; margin-bottom: 1rem; }
.form-success { background: rgba(15,59,51,0.05); padding: 2.5rem; text-align: center; }
.form-success h3 { font-family: var(--font-serif); font-size: 1.75rem; color: var(--carbon); margin: 1rem 0 0.75rem; }
.form-success p { color: rgba(30,30,26,0.6); font-size: 1rem; }
.form-success button { margin-top: 1.5rem; color: var(--verde); font-size: 15px; font-weight: 500; }
.form-success button:hover { text-decoration: underline; }
.contact-sidebar { background: rgba(231,224,212,0.5); padding: 2rem 2.5rem; }
.contact-sidebar h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--carbon); margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .icon { color: var(--verde); flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.contact-item .label { font-size: 14px; font-weight: 500; color: rgba(30,30,26,0.5); margin-bottom: 0.25rem; }
.contact-item .value { font-size: 1rem; color: var(--carbon); }
.contact-note { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(30,30,26,0.1); }
.contact-note p { color: rgba(30,30,26,0.5); font-size: 15px; line-height: 1.7; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ===== MISC ===== */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-600 { max-width: 600px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.italic { font-style: italic; }
