/* ============================================================
   Notaría 3 — demo (basado en estructura/efectos de Powder)
   Tema claro + café #5c3a21 y dorado #a97e2f (vintage sobrio) · Inter + Fragment Mono
   ============================================================ */

:root {
  --bg: #faf6ee;
  --bg-2: #f1e9da;
  --panel: rgba(92, 58, 33, 0.05);
  --panel-border: rgba(92, 58, 33, 0.14);
  --accent: #5c3a21;
  --accent-soft: rgba(92, 58, 33, 0.10);
  --gold: #a97e2f;
  --gold-soft: rgba(169, 126, 47, 0.15);
  --text: #2f2419;
  --muted: #6b5d4f;
  --muted-2: #94866f;
  --radius: 16px;
  --maxw: 1160px;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* fondo global con sutil gradiente radial */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(92, 58, 33, 0.07), transparent 60%),
    radial-gradient(800px 500px at 100% 30%, rgba(169, 126, 47, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; }

a { color: inherit; text-decoration: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fragment Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(92, 58, 33, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ============================ Botones ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 8px 24px rgba(92, 58, 33, 0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(92, 58, 33, 0.40); }
.btn-ghost { background: rgba(92, 58, 33, 0.05); color: var(--text); border-color: var(--panel-border); }
.btn-ghost:hover { background: rgba(92, 58, 33, 0.10); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ============================ Navbar ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(250, 246, 238, 0.88);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .logo { flex: 0 1 auto; min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav .logo-img { height: 38px; max-width: min(180px, 40vw); width: auto; object-fit: contain; }
.footer .logo-img { height: 92px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-toggle { min-width: 42px; height: 38px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 999px; background: transparent; color: var(--accent); font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background .18s ease, color .18s ease; }
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--accent); color: #fff; outline: none; }

/* ============================ Hero ============================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; background: #3a2817; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .layer { position: absolute; inset: 0; }
.hero-bg .gradient {
  background:
    radial-gradient(1200px 600px at 50% 120%, rgba(169, 126, 47, 0.30), transparent 60%),
    linear-gradient(180deg, #3a2817 0%, #5c3a21 100%);
}
.hero-bg .hills {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0,224L80,213C160,202,320,180,480,192C640,204,800,250,960,245C1120,240,1280,184,1360,160L1440,136L1440,320L0,320Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: bottom;
  bottom: 0; top: auto; height: 55%;
  opacity: 0.5;
}
.hero-bg .glow {
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 126, 47, 0.30), transparent 70%);
  filter: blur(40px);
  top: 10%; left: 50%; transform: translateX(-50%);
}
.hero-content { text-align: center; max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.hero-content .chip { margin-bottom: 22px; color: #ffffff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.30); }
.hero-content h1 { margin-bottom: 22px; color: #ffffff; }
.hero-content h1 .accent { color: #d9a944; }
.hero-content p.sub { color: rgba(255, 255, 255, 0.78); font-size: 1.15rem; max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--gold); color: #2f2419; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.hero-actions .btn-primary:hover { background: #c99637; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30); }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ============================ Ticker ============================ */
.ticker {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track { display: flex; gap: 44px; white-space: nowrap; animation: ticker 28s linear infinite; width: max-content; }
.ticker-track span {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 44px;
}
.ticker-track span::after { content: "•"; color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ Secciones ============================ */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .chip { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============================ Servicios (tabs) ============================ */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.tab:hover { color: var(--text); border-color: rgba(92, 58, 33, 0.25); }
.tab.active { background: var(--accent); color: #ffffff; border-color: var(--accent); font-weight: 600; }

.service-panel { display: none; }
.service-panel.active { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.service-panel h3 { font-size: 1.7rem; margin-bottom: 10px; }
.service-panel > div p.lead { color: var(--muted); margin-bottom: 24px; }
.service-list { list-style: none; display: grid; gap: 14px; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; }
.service-list .check { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-top: 2px; }
.service-list .check svg { width: 12px; height: 12px; }
.service-list strong { display: block; font-weight: 600; }
.service-list span { color: var(--muted); font-size: 0.92rem; }

.service-visual {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.service-visual .big-icon { font-size: 4rem; opacity: 0.9; }
.service-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 70% 20%, rgba(92, 58, 33, 0.08), transparent 60%);
  pointer-events: none;
}

/* ============================ Nosotros / valores ============================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid h3 { font-size: 1.8rem; margin-bottom: 16px; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.value-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 24px; transition: transform 0.18s ease, border-color 0.18s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(92, 58, 33, 0.35); }
.value-card .v-icon { font-size: 1.5rem; margin-bottom: 10px; }
.value-card h4 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.notario-card {
  background: linear-gradient(160deg, rgba(169, 126, 47, 0.14), transparent);
  border: 1px solid rgba(169, 126, 47, 0.30);
  border-radius: var(--radius); padding: 32px;
}
.notario-card .chip { margin-bottom: 14px; }
.notario-card h3 { margin-bottom: 8px; }
.notario-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================ Proceso ============================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 26px 20px; position: relative; }
.step .num {
  font-family: 'Fragment Mono', monospace; font-size: 0.8rem; color: var(--accent);
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  background: var(--accent-soft); border-radius: 50%; margin-bottom: 14px;
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ============================ Honorarios ============================ */
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fee-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.fee-card .fee-val { font-size: 2rem; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.fee-card .fee-label { font-family: 'Fragment Mono', monospace; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.fee-card p { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.fees-note { text-align: center; color: var(--muted-2); font-size: 0.85rem; margin-top: 26px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ============================ FAQ ============================ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--panel-border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { font-size: 1.4rem; color: var(--accent); transition: transform 0.25s ease; line-height: 1; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ============================ Contacto ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.7rem; margin-bottom: 18px; }
.contact-info p { color: var(--muted); margin-bottom: 24px; }
.contact-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; color: var(--muted); }
.contact-row .c-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--panel); border: 1px solid var(--panel-border); display: grid; place-items: center; }
.contact-form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 28px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: rgba(92, 58, 33, 0.04); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { justify-content: center; }

/* ============================ Footer ============================ */
.footer { border-top: 1px solid var(--panel-border); background: var(--bg-2); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 16px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--panel-border); padding-top: 24px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted-2); font-size: 0.85rem; }

/* ============================ Reveal animations ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-zoom { transform: scale(0.95); }
.js-anim .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.js-anim .stagger.is-visible > * { opacity: 1; transform: none; }
.js-anim .stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.js-anim .stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.js-anim .stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.js-anim .stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.js-anim .stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js-anim .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track { animation: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .service-panel.active { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fees-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav-cta { gap: 8px; }
  .nav .logo-img { height: 34px; max-width: 38vw; }
  .nav-cta .btn { padding: 10px 12px; font-size: 0.78rem; }
  .lang-toggle { min-width: 38px; height: 36px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
