/* ══════════════════════════════════════════════════════════
   NOTARÍA DE LA CRUZ SERRAT — SISTEMA DE DISEÑO 2026
   Tipografía: Inter exclusivamente
   ══════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  /* Marca */
  --vino:          #7A1826;
  --vino-oscuro:   #4E0F18;
  --vino-claro:    #9B2335;
  --dorado:        #B8982A;
  --dorado-claro:  #C9A84C;
  --dorado-fondo:  #FDF8EE;

  /* Paleta de texto */
  --t1:  #1d1d1f;   /* títulos y cuerpo principal */
  --t2:  #6e6e73;   /* subtextos y leads */
  --t3:  #86868b;   /* metadata, footer, placeholders */

  /* Fondos */
  --bg:      #ffffff;
  --bg-alt:  #f5f5f7;
  --bg-card: #ffffff;

  /* Bordes */
  --b1: #d2d2d7;
  --b2: #e8e8ed;

  /* Tipografía — Inter como único eje */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala tipográfica */
  --text-h1:    clamp(42px, 6vw, 72px);
  --text-h1-pg: 48px;          /* H1 páginas internas */
  --text-h2:    clamp(28px, 3vw, 32px);
  --text-lead:  clamp(19px, 2vw, 21px);
  --text-body:  16px;
  --text-name:  15px;          /* nombres de trámites */
  --text-meta:  13px;          /* micro-tipografía */
  --text-micro: 12px;

  /* Forma */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-pill: 980px;
  --sh-sm:  0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --sh-lg:  0 12px 40px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
}

/* ── RESET UNIVERSAL ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Inter forzado en absolutamente todos los elementos */
*, *::before, *::after,
input, button, select, textarea, optgroup {
  font-family: var(--font);
}

body {
  background: var(--bg);
  color: var(--t1);
  font-size: var(--text-body);
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── ESCALA TIPOGRÁFICA ── */
/* H1 — Impacto */
h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--t1);
}
/* H1 páginas internas */
.page-h1 {
  font-size: var(--text-h1-pg);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
/* H2 — Sección */
h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--t1);
}
/* H3 — Subsección */
h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--t1);
}
/* Lead / Bajada */
.lead {
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--t2);
}
/* Body */
p {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--t2);
}
/* Nombre de trámite */
.nombre-tramite {
  font-size: var(--text-name);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--t1);
}
/* Meta / Footer */
.meta {
  font-size: var(--text-meta);
  color: var(--t3);
  letter-spacing: -0.01em;
}
/* Precio */
.precio {
  font-size: var(--text-name);
  font-weight: 600;
  color: var(--vino);
  letter-spacing: -0.01em;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--vino-oscuro);
  color: rgba(255,255,255,0.65);
  font-size: var(--text-micro);
  font-weight: 400;
  padding: 8px 0;
  letter-spacing: -0.01em;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
}
.topbar a { color: var(--dorado-claro); font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

/* ── HEADER — GLASSMORPHISM ── */
header {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

/* ── LOGO ── */
/* Jerarquía: 15px, Bold 700, -0.04em — carácter de marca */
.logo-link {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.logo-barra {
  width: 3px; height: 28px;
  background: var(--dorado-claro);
  border-radius: 2px; flex-shrink: 0;
}
.logo-texto { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.logo-nombre {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--t1);
  line-height: 1;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  color: var(--vino);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-link:hover .logo-nombre { color: var(--vino); transition: color 0.18s; }

/* ── NAVEGACIÓN ── */
nav { display: flex; align-items: center; gap: 0; }
nav a {
  font-size: var(--text-meta);
  font-weight: 500;
  color: var(--t1);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  opacity: 0.65;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s;
}
nav a:hover { opacity: 1; background: rgba(0,0,0,0.04); }
nav a.active { opacity: 1; color: var(--vino); font-weight: 600; }
nav a.nav-cta {
  background: var(--vino); color: #fff;
  opacity: 1; font-weight: 600;
  padding: 7px 15px; border-radius: var(--r-pill);
  margin-left: 6px;
  transition: background 0.18s, transform 0.15s;
}
nav a.nav-cta:hover { background: var(--vino-claro); transform: scale(1.03); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--t1); border-radius: 2px; transition: all 0.25s;
}
nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: 60px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 16px 18px; z-index: 200;
  border-bottom: 1px solid var(--b2);
  box-shadow: var(--sh-md);
}
nav.open a { padding: 11px 14px; opacity: 1; border-radius: var(--r-sm); }
nav.open a.nav-cta { margin: 8px 0 0; text-align: center; }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--vino-oscuro);
  background-image: linear-gradient(135deg, #4E0F18 0%, #7A1826 60%, #5A1020 100%);
  padding: 56px 28px 48px;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  font-size: var(--text-micro);
  font-weight: 500;
  color: rgba(255,255,255,0.40);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.breadcrumb a { color: var(--dorado-claro); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-size: var(--text-h1-pg);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-hero .lead { color: rgba(255,255,255,0.60); max-width: 520px; }

/* ── SECCIONES ── */
.section { padding: 88px 28px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 52px; }
.section-header h2 { color: var(--t1); margin-bottom: 14px; }
.section-header .lead { max-width: 560px; }
.divider {
  display: block; width: 32px; height: 2px;
  background: var(--dorado); border-radius: 2px; margin-bottom: 20px;
}

/* ── BOTONES ── */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: -0.02em;
  border: none; border-radius: var(--r-pill);
  padding: 11px 24px;
  transition: background 0.18s, transform 0.15s, border-color 0.18s;
}
.btn-fill  { background: var(--vino); color: #fff; }
.btn-fill:hover  { background: var(--vino-claro); transform: scale(1.02); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.38); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.80); background: rgba(255,255,255,0.07); }
.btn-wsp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; margin-top: 20px;
  transition: background 0.18s, transform 0.15s;
}
.btn-wsp:hover { background: #1da851; transform: scale(1.02); }

/* ── INFO RÁPIDA ── */
.info-rapida { background: var(--bg); border-bottom: 1px solid var(--b2); }
.info-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.info-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 22px 20px; border-right: 1px solid var(--b2);
}
.info-item:last-child { border-right: none; }
.info-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--bg-alt); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.info-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--t3);
}
.info-value { font-size: 13.5px; font-weight: 500; color: var(--t1); margin-top: 3px; }
.info-value a { color: var(--vino); font-weight: 600; }
.info-value a:hover { text-decoration: underline; }

/* ── FAQ ── */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--b2); }
.faq-btn {
  width: 100%; background: none; border: none;
  padding: 20px 0; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--t1);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.faq-btn:hover, .faq-btn.open { color: var(--vino); }
.faq-arrow { font-size: 16px; flex-shrink: 0; color: var(--dorado); transition: transform 0.22s; }
.faq-btn.open .faq-arrow { transform: rotate(45deg); }
.faq-body {
  display: none; padding: 0 0 20px;
  font-size: 14.5px; line-height: 1.65; color: var(--t2);
}
.faq-body.open { display: block; }

/* ── UBICACIÓN ── */
.ubicacion-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 52px; align-items: start; }
.ubicacion-dato { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.ubicacion-dato-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--bg-alt); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.ubicacion-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--t3); display: block;
}
.ubicacion-value { font-size: 14.5px; font-weight: 500; color: var(--t1); }
.ubicacion-value a { color: var(--vino); font-weight: 600; }
.ubicacion-value a:hover { text-decoration: underline; }
.ubicacion-mapa {
  background: var(--bg-alt); border: 1px solid var(--b2);
  border-radius: var(--r-lg); height: 340px; overflow: hidden;
}
.ubicacion-mapa iframe { width: 100%; height: 100%; border: none; }

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--b2);
  padding: 64px 28px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--b2);
}
.footer-desc {
  font-size: var(--text-meta); color: var(--t3);
  margin-top: 14px; line-height: 1.65; max-width: 300px;
}
.footer-col-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--t1); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: var(--t3);
  font-size: var(--text-meta); margin-bottom: 10px;
  transition: color 0.15s; letter-spacing: -0.01em;
}
.footer-col a:hover { color: var(--vino); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-micro); color: var(--t3); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--vino); font-weight: 500; }

/* ── FORMULARIOS ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--t1); margin-bottom: 6px; letter-spacing: -0.01em;
}
.form-label .req { color: var(--vino); }
.form-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--b1); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 400; color: var(--t1);
  background: var(--bg); outline: none;
  letter-spacing: -0.01em;
  transition: border-color 0.18s; -webkit-appearance: none;
}
.form-input:focus { border-color: var(--vino); }
.form-input::placeholder { color: var(--t3); }
textarea.form-input { resize: vertical; min-height: 108px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; padding: 12px 24px;
  background: var(--vino); color: #fff; border: none;
  font-size: 14px; font-weight: 600; letter-spacing: -0.02em;
  border-radius: var(--r-pill); cursor: pointer; margin-top: 4px;
  transition: background 0.18s;
}
.form-submit:hover { background: var(--vino-claro); }
.form-msg { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; display: none; }
.form-msg.ok    { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-msg.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ubicacion-wrap   { grid-template-columns: 1fr; }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  nav               { display: none; }
  .hamburger        { display: flex; }
  .info-item        { border-right: none; border-bottom: 1px solid var(--b2); }
  .info-item:last-child { border-bottom: none; }
  .section          { padding: 64px 20px; }
  .form-row         { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section          { padding: 52px 18px; }
  .footer-inner     { grid-template-columns: 1fr; gap: 32px; }
  .header-inner     { padding: 0 18px; }
  .topbar-inner     { padding: 0 18px; }
  .logo-nombre      { font-size: 13px; }
  h1                { letter-spacing: -0.03em; }
  .page-hero h1     { font-size: 36px; }
}
