/* Alameda Legal (demo): sobrio y editorial, verde bosque, marfil y latón */
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/newsreader-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 200 800; src: url('../fonts/newsreader-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/public-sans-latin-wght-normal.woff2') format('woff2'); }

:root { --forest: #10261f; --forest-2: #183329; --ivory: #f5f1e6; --ivory-2: #ebe5d5; --brass: #b08d4a; --brass-2: #d4b676; --ink: #15211c; --muted: #5b675f; --pill: #b08d4a; --map-bg: #183329; --scroll-bar: #b08d4a; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--ivory); color: var(--ink); font-family: 'Public Sans', system-ui, sans-serif; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); margin-top: 0.5rem; max-width: 18ch; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 clamp(1.1rem, 3vw, 2rem); }
.kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.dark { background: var(--forest); color: var(--ivory); }
.dark .kicker { color: var(--brass-2); }
.tint { background: var(--ivory-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.6rem; font-size: 0.92rem; font-weight: 600; text-decoration: none; border-radius: 2px; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.btn-brass { background: var(--brass); color: #14110a; }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { border: 1px solid rgba(245, 241, 230, 0.4); }
.btn-ghost:hover { background: var(--ivory); color: var(--forest); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Encabezado */
.head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem clamp(1.1rem, 3vw, 2rem); background: rgba(245, 241, 230, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(21, 33, 28, 0.12); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'Newsreader', Georgia, serif; font-size: 1.3rem; text-decoration: none; }
.logo span { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass); font-size: 1.05rem; }
.head-nav { display: flex; gap: 1.6rem; font-size: 0.88rem; }
.head-nav a { text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease-out); padding-bottom: 2px; }
.head-nav a:hover { background-size: 100% 1px; }
@media (max-width: 820px) { .head-nav { display: none; } }

/* Héroe */
.hero { background: var(--forest); color: var(--ivory); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2rem; align-items: center; max-width: 74rem; margin: 0 auto; min-height: calc(100svh - 4rem); padding: clamp(3rem, 7vw, 5rem) clamp(1.1rem, 3vw, 2rem); }
.hero .kicker { color: var(--brass-2); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(3.3rem, 9.5vw, 7.8rem); line-height: 1; }
.hero h1 em { color: var(--brass-2); }
.lead { max-width: 34rem; margin-top: 1.6rem; font-size: 1.1rem; color: rgba(245, 241, 230, 0.82); }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.temple { width: 100%; height: auto; color: var(--brass-2); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; } .temple { max-width: 15rem; order: -1; margin-bottom: -0.5rem; } }

/* Cifras */
.figures { background: var(--forest-2); color: var(--ivory); border-top: 1px solid rgba(245, 241, 230, 0.1); }
.figures dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 74rem; margin: 0 auto; padding: 2.2rem clamp(1.1rem, 3vw, 2rem); }
.figures dd { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--brass-2); }
.figures dt { margin-top: 0.35rem; font-size: 0.82rem; opacity: 0.8; }
@media (max-width: 640px) { .figures dl { grid-template-columns: repeat(2, 1fr); } }

/* Áreas */
.areas { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.6rem; align-items: start; }
.area-btn { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; padding: 1rem 0; text-align: left; font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 1.95rem); color: var(--muted); border-bottom: 1px solid rgba(21, 33, 28, 0.15); transition: color 0.3s ease, padding 0.45s var(--ease-out); }
.area-btn span { font-family: 'Public Sans', sans-serif; font-size: 0.75rem; }
.area-btn:hover { color: var(--ink); padding-left: 0.5rem; }
.area-btn[aria-selected='true'] { color: var(--ink); padding-left: 0.9rem; border-bottom-color: var(--brass); }
.area-panel { position: sticky; top: 6rem; padding: clamp(1.6rem, 3vw, 2.6rem); background: #fff; border: 1px solid rgba(21, 33, 28, 0.1); }
.area-panel.swap > * { animation: panelIn 0.65s var(--ease-out) both; }
.area-panel.swap > *:nth-child(2) { animation-delay: 0.04s; }
.area-panel.swap > *:nth-child(3) { animation-delay: 0.08s; }
.area-panel.swap > *:nth-child(4) { animation-delay: 0.12s; }
.area-panel.swap > *:nth-child(5) { animation-delay: 0.16s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.area-num { font-family: 'Newsreader', Georgia, serif; font-style: italic; color: #7a6028; }
.area-panel h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 0.3rem; }
.area-panel p { margin-top: 0.8rem; color: var(--muted); }
.area-panel ul { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.area-panel li { padding-left: 1.4rem; position: relative; }
.area-panel li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.8rem; height: 1px; background: var(--brass); }
.link-arrow { display: inline-block; margin-top: 1.3rem; font-weight: 600; font-size: 0.92rem; color: #7c5f24; text-underline-offset: 4px; }
@media (max-width: 820px) { .areas { grid-template-columns: 1fr; } .area-panel { position: static; } }

/* Orientación */
.orienta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.orienta > div > p:not(.kicker) { margin-top: 1rem; color: rgba(245, 241, 230, 0.78); max-width: 30rem; }
.situations { display: grid; gap: 0.5rem; margin-top: 1.6rem; }
.situation { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.95rem; border: 1px solid rgba(245, 241, 230, 0.22); transition: background 0.25s ease, border-color 0.25s ease, transform 0.4s var(--ease-out); }
.situation:hover { transform: translateX(5px); border-color: var(--brass-2); }
.situation[aria-pressed='true'] { background: var(--brass); border-color: var(--brass); color: #14110a; font-weight: 600; }
.next-step { background: var(--ivory); color: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem); }
.next-step.swap > * { animation: panelIn 0.6s var(--ease-out) both; }
.next-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a3b1d; }
.next-step h3 { font-size: 1.9rem; margin-top: 0.4rem; }
.next-step p { margin-top: 0.7rem; color: var(--muted); }
.next-step .next-docs-title { margin-top: 1rem; font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.next-step ul { padding-left: 1.1rem; margin: 0.4rem 0 1.3rem; font-size: 0.92rem; }
.next-step .next-note { font-size: 0.74rem; margin-top: 0.9rem; }
@media (max-width: 820px) { .orienta { grid-template-columns: 1fr; } }

/* Proceso */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.process-side { position: sticky; top: 7rem; align-self: start; }
.timeline-wrap { position: relative; }
.timeline { list-style: none; position: relative; padding: 0 0 0 2.4rem; display: grid; gap: clamp(2.2rem, 5vw, 3.6rem); }
.timeline-rail { position: absolute; left: 0.45rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: rgba(21, 33, 28, 0.14); display: block; }
.timeline-rail .fill-line { background: var(--brass); display: block; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -2.4rem; top: 0.5rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--ivory); border: 2px solid var(--brass); }
.timeline h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.timeline p { margin-top: 0.4rem; color: var(--muted); max-width: 30rem; }
@media (max-width: 820px) { .process { grid-template-columns: 1fr; } .process-side { position: static; } }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.member { padding: 1.8rem; background: var(--ivory); border: 1px solid rgba(21, 33, 28, 0.12); }
.mono { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 50%; border: 1px solid var(--brass); font-family: 'Newsreader', Georgia, serif; font-size: 2rem; color: #7c5f24; }
.member h3 { font-size: 1.7rem; margin-top: 1.1rem; }
.role { font-size: 0.8rem; font-weight: 600; color: #7c5f24; margin-top: 0.15rem; }
.member p:last-child { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }

/* Testimonios */
.quotes { background: var(--ivory-2); padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid rgba(21, 33, 28, 0.08); }
.quote-box { display: grid; }
.quote { grid-area: 1 / 1; font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.16; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.9s var(--ease-out), visibility 0s linear 0.7s; }
.quote.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.quote cite { display: block; margin-top: 1rem; font-family: 'Public Sans', sans-serif; font-size: 0.85rem; font-style: normal; color: var(--muted); }
.quote-dots { display: flex; gap: 0.4rem; margin-top: 1.5rem; }
.quote-dots button { width: 2.2rem; height: 1rem; position: relative; }
.quote-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(21, 33, 28, 0.2); transition: background 0.3s ease; }
.quote-dots button[aria-pressed='true']::before { background: var(--brass); }

/* Guías */
.guides { margin-top: 2.4rem; border-top: 1px solid rgba(21, 33, 28, 0.15); }
.guides details { border-bottom: 1px solid rgba(21, 33, 28, 0.15); }
.guides summary { list-style: none; display: flex; align-items: baseline; gap: 1.2rem; padding: 1.3rem 0; cursor: pointer; font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
.guides summary::-webkit-details-marker { display: none; }
.guides .time { flex: none; width: 3rem; font-family: 'Public Sans', sans-serif; font-size: 0.75rem; color: var(--muted); }
.guides i { margin-left: auto; font-style: normal; color: var(--brass); transition: transform 0.35s var(--ease-out); }
.guides details[open] i { transform: rotate(45deg); }
.guides p { padding: 0 0 1.4rem 4.2rem; color: var(--muted); max-width: 46rem; }
@media (max-width: 560px) { .guides p { padding-left: 0; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact > div > p:not(.kicker) { margin-top: 1rem; color: rgba(245, 241, 230, 0.78); }
.office { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.contact .map-facade { margin-top: 1.4rem; min-height: 220px; border: 1px solid rgba(245, 241, 230, 0.2); }
.contact .map-frame { min-height: 220px; height: 220px; filter: grayscale(0.3) invert(0.9) hue-rotate(120deg) contrast(0.9); }
.consult { background: var(--ivory); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.3rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.75rem 0.85rem; font: inherit; font-size: 0.95rem; color: inherit; background: #fff; border: 1px solid rgba(21, 33, 28, 0.22); border-radius: 2px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 74, 0.2); }
.field [aria-invalid='true'] { border-color: #a2281a; }
.field textarea { resize: vertical; }
.form-error { color: #a2281a; font-size: 0.85rem; margin-bottom: 0.7rem; }
.form-note { margin-top: 0.8rem; font-size: 0.74rem; color: var(--muted); text-align: center; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.foot { background: var(--forest); color: var(--ivory); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.8rem clamp(1.1rem, 3vw, 2rem) 5rem; font-size: 0.8rem; }
.foot p:last-child { opacity: 0.8; }
