/* Aranda & Vidal — demo bufete (14-jul-2026)
   Estética: clásico contemporáneo SIN 3D. Tinta + crema + burdeos.
   EB Garamond, reglas finas, números romanos, arcos. */

@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/ebgaramond-var.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/ebgaramond-italic-var.woff2') format('woff2');
  font-weight: 400 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream: #f3efe7;
  --cream-2: #ebe5d8;
  --ink: #1c2733;
  --ink-soft: #5b6672;
  --wine: #7a2e2e;
  --line: rgba(28, 39, 51, .16);
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 78px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--wine); color: var(--cream); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- tipografía ---------- */
.kicker {
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--wine); font-weight: 600; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 550; line-height: 1.06; letter-spacing: .002em; }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h1 em, h2 em { font-style: italic; color: var(--wine); font-weight: 500; }
h3 { font-size: 26px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--wine); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--cream-2); }
.btn-ghost-w { border: 1px solid rgba(243, 239, 231, .5); color: var(--cream); }
.btn-ghost-w:hover { border-color: var(--cream); }
.btn-lg { padding: 20px 42px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 38px;
  padding: 20px var(--pad);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(243, 239, 231, .93);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 13px; padding-bottom: 13px;
}
.nav-logo { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-right: auto; }
.nav-logo i { font-style: italic; color: var(--wine); }
.nav-links { display: flex; gap: 30px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.nav-links a { color: var(--ink-soft); padding: 4px 0; position: relative; transition: color .3s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--wine); transition: width .35s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--ink); padding: 11px 24px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }
.burger { display: none; }

/* menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--pad);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-list li a {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--serif); font-size: clamp(32px, 8.5vw, 50px); padding: 16px 0;
}
.menu-list small { font-family: var(--sans); font-size: 12px; color: var(--wine); letter-spacing: .2em; }
.menu-foot { margin-top: 44px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }
.menu-foot a { color: var(--wine); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 70px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(110px, 16vh, 160px) var(--pad) 60px;
}
.hero-title { font-size: clamp(52px, 8vw, 110px); font-weight: 500; margin: 8px 0 26px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line i {
  display: block; font-style: normal;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line:nth-child(2) i { animation-delay: .12s; }
.hero-title .line:nth-child(3) i { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title .line i { animation: none; transform: none; } }
.hero-sub { max-width: 48ch; color: var(--ink-soft); font-size: 17.5px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-media { position: relative; }
.hero-media video {
  width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover;
  border-radius: 500px 500px 0 0;   /* arco */
  border: 1px solid var(--ink);
  filter: sepia(.14) saturate(.9);
}
.hero-caption {
  display: block; text-align: center; margin-top: 12px;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft);
}

/* ---------- filete ---------- */
.filet {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding: 20px var(--pad);
  border-block: 1px solid var(--ink);
  font-family: var(--serif); font-size: 17px; font-style: italic;
}
.filet i { color: var(--wine); font-style: normal; }

/* ---------- áreas (acordeón) ---------- */
.areas { padding: clamp(80px, 12vh, 140px) var(--pad); }
.areas-head { margin-bottom: 48px; }
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 20px;
  padding: 28px 0; cursor: pointer; list-style: none;
  transition: background .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: rgba(28, 39, 51, .025); }
.acc summary span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--wine); }
.acc summary h3 { font-size: clamp(24px, 3vw, 38px); }
.acc summary i {
  position: relative; width: 22px; height: 22px; justify-self: end;
}
.acc summary i::before, .acc summary i::after {
  content: ''; position: absolute; background: var(--ink); transition: transform .35s;
}
.acc summary i::before { left: 0; top: 10px; width: 22px; height: 1.5px; }
.acc summary i::after { left: 10px; top: 0; width: 1.5px; height: 22px; }
.acc details[open] summary i::after { transform: rotate(90deg); }
.acc-body { padding: 0 0 30px 90px; max-width: 72ch; color: var(--ink-soft); }

/* ---------- cifras ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--ink);
  background: var(--cream-2);
}
.stat { padding: clamp(30px, 4vw, 52px) var(--pad); border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); font-weight: 550; color: var(--wine); }
.stat > span { font-size: 12.5px; letter-spacing: .04em; color: var(--ink-soft); }

/* ---------- manifiesto ---------- */
.manifesto { min-height: 155vh; position: relative; }
.manifesto-sticky {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad);
}
.manifesto-text {
  max-width: 24ch;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 5.2vw, 60px); line-height: 1.28;
}
.manifesto-text .w { color: rgba(28, 39, 51, .16); transition: color .4s; }
.manifesto-text .w.lit { color: var(--ink); }
.manifesto-sign { margin-top: 30px; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); }

/* ---------- socios ---------- */
.people-wrap { padding: clamp(80px, 12vh, 140px) var(--pad); }
.people { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.person { border: 1px solid var(--ink); padding: 36px 30px; background: var(--cream); transition: background .35s; }
.person:hover { background: #fff; }
.person span {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--wine);
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--wine);
  margin-bottom: 20px;
}
.person h3 { font-size: 24px; }
.person small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); margin: 8px 0 12px; }
.person p { font-size: 14px; color: var(--ink-soft); }

/* ---------- método ---------- */
.method { padding: clamp(80px, 12vh, 140px) var(--pad); border-top: 1px solid var(--line); }
.method-list { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.method-list li { border-top: 1px solid var(--ink); padding-top: 22px; }
.method-list li span { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--wine); }
.method-list h3 { margin: 10px 0 10px; font-size: 24px; }
.method-list p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(90px, 14vh, 160px) var(--pad);
  text-align: center;
  background: var(--ink); color: var(--cream);
}
.cta .kicker { color: rgba(243, 239, 231, .6); }
.cta h2 em { color: #c99; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 38px 0 22px; }
.cta-note { font-size: 13px; color: rgba(243, 239, 231, .6); letter-spacing: .04em; }

/* ---------- footer ---------- */
.footer { padding: 70px var(--pad) 30px; border-top: 1px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 60px); margin-bottom: 54px; }
.footer-logo { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.footer-logo i { font-style: italic; color: var(--wine); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-soft); max-width: 36ch; }
.footer-col h4 { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--wine); margin-bottom: 16px; font-weight: 600; }
.footer-col li { font-size: 14.5px; color: var(--ink-soft); padding: 4px 0; }
.footer-col a:hover { color: var(--wine); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-soft);
}
.footer-legal a:hover { color: var(--wine); }

/* ---------- interiores ---------- */
.page-hero { padding: clamp(150px, 23vh, 220px) var(--pad) clamp(44px, 7vh, 76px); max-width: 980px; }
.page-hero h1 { font-size: clamp(42px, 6.6vw, 88px); font-weight: 500; margin: 8px 0 22px; }
.page-hero p { color: var(--ink-soft); font-size: 17.5px; max-width: 56ch; }

.alist { padding: 10px var(--pad) clamp(70px, 11vh, 120px); }

.duo { padding: 20px var(--pad) clamp(70px, 11vh, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 70px); align-items: center; }
.duo-media video { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; border-radius: 500px 500px 0 0; border: 1px solid var(--ink); filter: sepia(.14) saturate(.9); }
.duo-copy > p { color: var(--ink-soft); margin-top: 16px; }

/* contacto */
.contact { padding: 20px var(--pad) clamp(70px, 11vh, 120px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 70px); align-items: start; }
.cform { border: 1px solid var(--ink); padding: clamp(28px, 4vw, 52px); display: grid; gap: 20px; background: #fff; }
.cform label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); display: grid; gap: 10px; }
.cform input, .cform select, .cform textarea {
  font: 400 16px var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 2px; outline: none; transition: border-color .3s; width: 100%;
  border-radius: 0;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--wine); }
.cform button { border: 0; cursor: pointer; margin-top: 6px; }
.form-ok { text-align: center; padding: 40px 10px; }
.form-ok b { font-family: var(--serif); font-style: italic; font-size: 30px; display: block; margin-bottom: 10px; color: var(--wine); }
.form-ok p { color: var(--ink-soft); }
.cinfo { display: grid; border: 1px solid var(--ink); }
.cinfo-card { padding: 28px 32px; border-bottom: 1px solid var(--line); }
.cinfo-card:last-child { border-bottom: 0; }
.cinfo-card h3 { font-size: 20px; margin-bottom: 8px; }
.cinfo-card p { font-size: 14.5px; color: var(--ink-soft); }
.cinfo-card a { color: var(--wine); font-weight: 600; }

/* legal */
.legal-body { padding: 10px var(--pad) clamp(70px, 11vh, 120px); max-width: 760px; color: var(--ink-soft); display: grid; gap: 16px; }
.legal-body h2 { font-size: 26px; margin-top: 18px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .people { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger {
    display: block; position: relative;
    width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%;
    background: transparent; cursor: pointer; z-index: 61;
  }
  .burger i {
    position: absolute; left: 50%; top: 50%;
    width: 18px; height: 1.5px; margin: -1px 0 0 -9px;
    background: var(--ink);
    transition: transform .35s; display: block;
  }
  .burger i:first-child { transform: translateY(-3px); }
  .burger i:last-child { transform: translateY(3px); }
  .burger.active i:first-child { transform: rotate(45deg); }
  .burger.active i:last-child { transform: rotate(-45deg); }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .hero-media { order: -1; max-width: 380px; margin: 0 auto; }
  .hero-media video { aspect-ratio: 4 / 4.2; }
  .acc summary { grid-template-columns: 44px 1fr 30px; }
  .acc-body { padding-left: 64px; }
  .duo, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .people, .stats, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .acc-body { padding-left: 0; }
}
