/* =============================================================================
 * Notaría Segunda del Cantón Riobamba — Sistema de diseño
 * Estética "Elegancia notarial editorial": papel crema, serif de alto contraste,
 * monograma de pluma, sello de cera y reglas finas. Complementa a Tailwind.
 * ========================================================================== */

:root {
  --navy: #1d3587;
  --navy-dark: #16225a;
  --navy-light: #2c46a8;
  --accent: #9a7328;
  --accent-dark: #7c5c1e;
  --cream: #f6f2e9;
  --paper: #fbf9f4;
  --ink: #2a2f45;
  --line: rgba(29, 53, 135, 0.16);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* Grano de papel muy sutil: da calidez y evita el "flat" genérico */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(29,53,135,0.025), transparent 40%),
    radial-gradient(circle at 85% 8%, rgba(154,115,40,0.02), transparent 35%);
}

/* Ligaduras y números elegantes en el serif de titulares */
.font-display { font-feature-settings: "liga" 1, "dlig" 1; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------- *
 * Eyebrow / antetítulo con línea
 * --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* --------------------------------------------------------------------------- *
 * Regla fina con rombo central (motivo de documento)
 * --------------------------------------------------------------------------- */
.hairline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--line);
}
.hairline::before,
.hairline::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
}
.hairline > span {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--accent);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------- *
 * Sello de cera (badge circular)
 * --------------------------------------------------------------------------- */
.seal {
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, #c9a227, var(--accent) 45%, var(--accent-dark));
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 28px -10px rgba(154, 115, 40, 0.6);
  position: relative;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 9999px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------- *
 * Marco de fotografía (efecto lámina montada)
 * --------------------------------------------------------------------------- */
.frame {
  background: #fff;
  padding: 0.6rem;
  border-radius: 0.4rem;
  box-shadow: 0 30px 60px -25px rgba(22, 34, 90, 0.45);
  border: 1px solid rgba(22, 34, 90, 0.06);
}
.frame img { border-radius: 0.2rem; display: block; }

/* --------------------------------------------------------------------------- *
 * Tarjeta de servicio tipo "documento"
 * --------------------------------------------------------------------------- */
.doc-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.doc-card::after { /* filo dorado/rojo que aparece al hover, arriba */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -30px rgba(22, 34, 90, 0.55);
  border-color: rgba(29, 53, 135, 0.3);
}
.doc-card:hover::after { transform: scaleX(1); }

.doc-card__index {
  position: absolute;
  top: 0.7rem; right: 1rem;
  font-family: 'Libre Baskerville', serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(29, 53, 135, 0.10);
}
.doc-card__icon {
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #fff;
  padding: 0.6rem;
  margin-bottom: 1.1rem;
}
.doc-card__icon img,
.doc-card__icon svg { width: 100%; height: 100%; object-fit: contain; }

/* Icono en cabecera de página de servicio */
.sv-icon img,
.sv-icon svg { width: 100%; height: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------- *
 * Filigrana del monograma (marca de agua)
 * --------------------------------------------------------------------------- */
.watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.05;
  filter: none;
}

/* --------------------------------------------------------------------------- *
 * Campos de formulario
 * --------------------------------------------------------------------------- */
.notaria-input {
  width: 100%;
  border: 1px solid #d9d2c4;
  border-radius: 0.35rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.notaria-input::placeholder { color: #b0a894; }
.notaria-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(29, 53, 135, 0.13);
}
.notaria-input:user-invalid { border-color: var(--accent); }

/* --------------------------------------------------------------------------- *
 * FAQ (acordeón)
 * --------------------------------------------------------------------------- */
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s ease; }

/* --------------------------------------------------------------------------- *
 * Accesibilidad / utilidades
 * --------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Enlace subrayado elegante */
.link-underline {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}
.link-underline:hover { background-size: 100% 1.5px; }

/* =============================================================================
 * Recorrido inmersivo (video de instalaciones)
 * -----------------------------------------------------------------------------
 * Marco editorial con tinte azul institucional que se disipa al reproducir,
 * controles propios (play/pausa + sonido) y respeto por prefers-reduced-motion.
 * ========================================================================== */
.video-band {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: 0 40px 80px -35px rgba(22, 34, 90, 0.6);
}
.video-band video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Tinte azul (duotono sutil) que se aclara cuando el video está activo */
.video-band__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(22, 34, 90, 0.78) 0%, rgba(22, 34, 90, 0.10) 45%, rgba(22, 34, 90, 0.20) 100%);
  transition: opacity 0.6s ease;
}
.video-band.is-playing .video-band__tint { opacity: 0.55; }

.video-band__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  z-index: 2;
}

/* Botón de reproducción central (poster / reduced-motion) */
.video-band__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5.5rem; height: 5.5rem;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: rgba(154, 115, 40, 0.92);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 34px -12px rgba(154, 115, 40, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.video-band__play:hover { transform: scale(1.06); background: var(--accent); }
.video-band.is-playing .video-band__play { display: none; }

/* Controles pequeños (pausa / sonido) */
.vid-ctrl {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.vid-ctrl:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.vid-ctrl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* =============================================================================
 * Reseñas / Testimonios
 * ========================================================================== */
:root { --gold: #c9a227; }

.testimonial {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.9rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px -30px rgba(22, 34, 90, 0.5);
  border-color: rgba(29, 53, 135, 0.28);
}
.testimonial__quote-mark {
  font-family: 'Libre Baskerville', serif;
  font-size: 4.5rem;
  line-height: 0.7;
  color: rgba(29, 53, 135, 0.14);
  height: 1.6rem;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 1.05rem; height: 1.05rem; }

.avatar-initials {
  width: 3rem; height: 3rem;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-verified {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 600;
  color: #1a7f4b;
}

/* =============================================================================
 * Franja "¿Por qué elegirnos?" — pilares de confianza
 * ========================================================================== */
.pillar {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.pillar:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}
.pillar__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 0.5rem;
  background: rgba(154, 115, 40, 0.16);
  color: #fff;
  margin-bottom: 1rem;
}
.pillar__icon svg { width: 1.6rem; height: 1.6rem; }

/* Sello institucional (respaldo) */
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.trust-chip svg { width: 1.05rem; height: 1.05rem; color: #d9b45a; }

/* En pantallas donde el usuario pide menos movimiento, ocultamos el tinte animado */
@media (prefers-reduced-motion: reduce) {
  .video-band__tint { transition: none; }
}

/* =============================================================================
 * Diploma del hero — formato certificado vertical, refinado
 * -----------------------------------------------------------------------------
 * Papel color hueso con degradado suave, marco fino con rombos en las esquinas,
 * y un bloque tipo escritura: título, motivo, sello grabado y firma.
 * ========================================================================== */
.diploma {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
  padding: 1.1rem;
  background: radial-gradient(135% 100% at 50% -8%, #ffffff 0%, #fbf9f4 52%, #f2ecde 100%);
  border: 1px solid rgba(29, 53, 135, 0.14);
  border-radius: 0.7rem;
  box-shadow: 0 46px 90px -46px rgba(22, 34, 90, 0.42);
}
.diploma__frame {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.25rem 1.75rem;
  border: 1px solid rgba(29, 53, 135, 0.22);
  border-radius: 0.4rem;
}
/* Rombos decorativos en las esquinas del marco interior */
.diploma__corner {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--navy);
  transform: rotate(45deg);
  opacity: 0.5;
}
.diploma__corner--tl { top: -4px; left: -4px; }
.diploma__corner--tr { top: -4px; right: -4px; }
.diploma__corner--bl { bottom: -4px; left: -4px; }
.diploma__corner--br { bottom: -4px; right: -4px; }

.diploma__eyebrow {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.diploma__title {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-dark);
}
.diploma__subtitle {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
}
.diploma__motto {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.4;
  color: rgba(42, 47, 69, 0.7);
  max-width: 15rem;
}
/* Sello grabado, pequeño (junto a la firma) */
.diploma__seal {
  width: 64px; height: 64px;
  border-radius: 9999px;
  display: grid; place-items: center;
  position: relative;
  color: var(--navy-dark);
  background: radial-gradient(circle at 50% 38%, #ffffff, #f6f2e9);
  border: 1px solid rgba(29, 53, 135, 0.32);
  box-shadow: inset 0 0 0 4px #ffffff, inset 0 0 0 5px rgba(29, 53, 135, 0.12);
}
.diploma__seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9999px;
  border: 1px dashed rgba(29, 53, 135, 0.28);
}
.diploma__seal span {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}
.diploma__signature {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-dark);
  line-height: 1;
}
.diploma__role {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(42, 47, 69, 0.55);
}

/* =============================================================================
 * Proceso "Su trámite en cuatro pasos" — resalte al pasar el mouse
 * -----------------------------------------------------------------------------
 * El paso enfocado sobresale: el número se ilumina (acento) y crece, el título
 * cambia a acento y todo el bloque se eleva; los demás pasos quedan en reposo.
 * ========================================================================== */
.proceso-step {
  transition: transform 0.25s ease;
  cursor: default;
}
.proceso-step .proceso-num {
  transition: color 0.25s ease, transform 0.25s ease;
  transform-origin: center bottom;
}
.proceso-step h3 { transition: color 0.25s ease; }
.proceso-step:hover { transform: translateY(-6px); }
.proceso-step:hover .proceso-num {
  color: var(--accent);
  transform: scale(1.14);
}
.proceso-step:hover h3 { color: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) {
  .proceso-step, .proceso-step .proceso-num { transition: color 0.2s ease; }
  .proceso-step:hover { transform: none; }
  .proceso-step:hover .proceso-num { transform: none; }
}

/* =============================================================================
 * Notaría 11 — Añadidos propios (single page)
 * ========================================================================== */

/* Marca / monograma SVG en la barra de navegación y footer */
.brand-mark { display: block; }

/* Indicador en vivo "Abierto / Cerrado ahora" ------------------------------ */
.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.estado-badge__dot {
  width: 0.6rem; height: 0.6rem;
  border-radius: 9999px;
  flex: 0 0 auto;
  position: relative;
}
.estado-badge--abierto {
  background: rgba(26, 127, 75, 0.12);
  color: #157048;
  border-color: rgba(26, 127, 75, 0.28);
}
.estado-badge--abierto .estado-badge__dot { background: #1a9f57; }
.estado-badge--abierto .estado-badge__dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 9999px;
  background: rgba(26, 159, 87, 0.45);
  animation: pulso 2s ease-out infinite;
}
.estado-badge--cerrado {
  background: rgba(154, 115, 40, 0.10);
  color: var(--accent-dark);
  border-color: rgba(154, 115, 40, 0.30);
}
.estado-badge--cerrado .estado-badge__dot { background: var(--accent); }

@keyframes pulso {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .estado-badge--abierto .estado-badge__dot::after { animation: none; }
}

/* Fila de horario (destacar el día de hoy) --------------------------------- */
.horario-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
}
.horario-row.is-today {
  border-color: rgba(154, 115, 40, 0.5);
  background: linear-gradient(0deg, rgba(154,115,40,0.06), rgba(154,115,40,0.06)), #fff;
  box-shadow: 0 10px 24px -18px rgba(22, 34, 90, 0.5);
}
.horario-row .dia { font-weight: 600; color: var(--navy-dark); }
.horario-row .horas { color: var(--ink); opacity: 0.8; font-variant-numeric: tabular-nums; }
.horario-row.cerrado .horas { color: var(--accent-dark); font-weight: 600; opacity: 1; }
.horario-row .hoy-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark); margin-left: 0.5rem;
}

/* Sello monograma del hero (N 11) reutiliza .diploma__seal, en dorado ------ */
.diploma__seal--n11 {
  width: 82px; height: 82px;
  background: radial-gradient(circle at 50% 34%, #fff, #f6f2e9);
  border-color: rgba(154, 115, 40, 0.55);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(154, 115, 40, 0.35),
              0 14px 30px -14px rgba(154, 115, 40, 0.55);
}

/* Tarjeta de servicio no enlazada (single page) ---------------------------- */
.doc-card--static { cursor: default; }
.doc-card--static:hover { transform: translateY(-5px); }

/* Ítem de contacto con icono ----------------------------------------------- */
.contacto-item {
  display: flex; gap: 0.85rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 0.5rem; padding: 1rem 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contacto-item:hover { border-color: rgba(29,53,135,0.28); transform: translateY(-2px); }
.contacto-item svg { width: 1.4rem; height: 1.4rem; color: var(--accent); flex: 0 0 auto; }

/* =============================================================================
 * Notaría 11 — Rediseño: tipografía formal + componentes propios
 * -----------------------------------------------------------------------------
 * Tipografia:  Libre Baskerville (titulos, documento legal)  +  Source Sans 3 (texto).
 * Estetica:    azul marino institucional, dorado grabado y reglas dobles.
 * ========================================================================== */

:root {
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --navy-deep: #0f184a;
}

body, .font-sans { font-family: var(--font-body); }
.font-display { font-family: var(--font-display) !important; }
body { letter-spacing: 0; }

/* La marca de agua original se retira en este rediseno */
.watermark { display: none !important; }

/* --------------------------------------------------------------------------- *
 * Encabezado de seccion centrado (reemplaza al eyebrow con linea)
 * --------------------------------------------------------------------------- */
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.sec-rule {
  width: 74px; height: 0; margin: 0 auto 1.4rem;
  border-top: 1px solid var(--accent);
  position: relative;
}
.sec-head.left .sec-rule { margin-left: 0; }
.sec-rule::after {
  content: ""; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px;
  background: var(--accent); transform: translateX(-50%) rotate(45deg);
}
.sec-head.left .sec-rule::after { left: 12px; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3rem);
}
.sec-title.on-dark { color: #fff; }
.sec-sub { margin-top: 1rem; color: rgba(42,47,69,0.72); font-size: 1.02rem; line-height: 1.6; }
.sec-sub.on-dark { color: rgba(255,255,255,0.72); }

/* --------------------------------------------------------------------------- *
 * HERO oscuro (institucional)
 * --------------------------------------------------------------------------- */
.hero-dark {
  position: relative;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(201,162,39,0.14), transparent 45%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-dark::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.hero-kicker::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  font-size: clamp(2.5rem, 6vw, 4.4rem); color: #fff;
}
.hero-title em { font-style: italic; color: var(--gold); }

/* Emblema del hero (sello enmarcado en dorado) */
.emblema {
  position: relative; width: 100%; max-width: 23rem; margin: 0 auto;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  border: 1px solid rgba(201,162,39,0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.06), transparent 70%);
}
.emblema::before {
  content: ""; position: absolute; inset: 16px; border-radius: 50%;
  border: 1px dashed rgba(201,162,39,0.35);
}
.emblema__inner { text-align: center; padding: 2rem; }
.emblema__lema {
  font-family: var(--font-display); font-style: italic;
  color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.5;
  margin-top: 1rem; max-width: 15rem;
}

/* Botones reutilizables */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.6rem; border-radius: 0.4rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn--gold { background: var(--gold); color: #23180a; }
.btn--gold:hover { background: #dcb43f; transform: translateY(-1px); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1da851; transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-dark); }
.btn--ghost { border-color: var(--line); color: var(--navy-dark); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* --------------------------------------------------------------------------- *
 * Tarjeta de servicio (rediseno propio)
 * --------------------------------------------------------------------------- */
.servicio-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 0.5rem;
  padding: 1.75rem 1.6rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.servicio-card::before {
  content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 3px;
  background: var(--gold); border-radius: 3px;
  opacity: 0; transition: opacity 0.25s ease;
}
.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px -32px rgba(15,24,74,0.6);
  border-color: rgba(201,162,39,0.5);
}
.servicio-card:hover::before { opacity: 1; }
.servicio-card__index {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1;
  color: rgba(15,24,74,0.08);
}
.servicio-card__icon {
  width: 3.3rem; height: 3.3rem; display: grid; place-items: center;
  border-radius: 0.5rem; background: rgba(201,162,39,0.10);
  border: 1px solid rgba(201,162,39,0.28); padding: 0.6rem; margin-bottom: 1.1rem;
}
.servicio-card__icon svg { width: 100%; height: 100%; }
.servicio-card__cat {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.servicio-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--navy-dark); line-height: 1.2; margin-bottom: 0.6rem;
}
.servicio-card__text { font-size: 0.9rem; color: rgba(42,47,69,0.72); line-height: 1.6; flex-grow: 1; }
.servicio-card__btn {
  margin-top: 1.2rem; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.85rem; color: var(--navy);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: gap 0.2s ease, color 0.2s ease;
}
.servicio-card__btn svg { width: 1rem; height: 1rem; }
.servicio-card__btn:hover { gap: 0.7rem; color: var(--accent-dark); }

/* --------------------------------------------------------------------------- *
 * Modal de detalle del servicio
 * --------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: 1.25rem; overflow-y: auto;
  background: rgba(15,24,74,0.55); backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal__panel {
  position: relative; background: var(--paper); color: var(--ink);
  width: 100%; max-width: 40rem; margin: auto;
  border-radius: 0.75rem; border: 1px solid rgba(201,162,39,0.35);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.55);
  padding: 2.25rem 2rem;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__panel { animation: none; } }
.modal__close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 9999px; border: 1px solid var(--line); background: #fff; color: var(--navy-dark);
  cursor: pointer; transition: background 0.2s ease;
}
.modal__close:hover { background: var(--cream); }
.modal__close svg { width: 1.2rem; height: 1.2rem; }
.modal__cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--navy-dark); line-height: 1.15; margin: 0.35rem 0 0.9rem; }
.modal__desc { font-size: 0.95rem; line-height: 1.65; color: rgba(42,47,69,0.8); }
.modal__h {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy-dark);
  margin: 1.5rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.modal__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.modal__list li { position: relative; padding-left: 1.6rem; font-size: 0.92rem; line-height: 1.55; color: rgba(42,47,69,0.85); }
.modal__list li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg);
}
.modal__tiempo { margin-top: 1rem; font-size: 0.9rem; color: rgba(42,47,69,0.8); background: rgba(201,162,39,0.08); border-left: 3px solid var(--gold); padding: 0.7rem 0.9rem; border-radius: 0 0.3rem 0.3rem 0; }
.modal__faqs { display: flex; flex-direction: column; gap: 0.5rem; }
.modal-faq { border: 1px solid var(--line); border-radius: 0.4rem; background: #fff; padding: 0 0.9rem; }
.modal-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; font-weight: 600; font-size: 0.9rem; color: var(--navy-dark); }
.modal-faq summary::-webkit-details-marker { display: none; }
.modal-faq summary svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: 0 0 auto; transition: transform 0.2s ease; }
.modal-faq[open] summary svg { transform: rotate(180deg); }
.modal-faq p { font-size: 0.88rem; line-height: 1.6; color: rgba(42,47,69,0.75); padding-bottom: 0.85rem; margin: 0; }
.modal__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.modal__cta .btn { flex: 1 1 auto; }
.modal__nota { margin-top: 0.9rem; font-size: 0.75rem; color: rgba(42,47,69,0.55); text-align: center; }

/* --------------------------------------------------------------------------- *
 * "Como funciona?" — linea de pasos con sellos dorados
 * --------------------------------------------------------------------------- */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pasos { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.paso { position: relative; text-align: center; padding-top: 0.5rem; }
@media (min-width: 768px) {
  .paso:not(:last-child)::after {
    content: ""; position: absolute; top: 2rem; left: calc(50% + 2.4rem); right: calc(-50% + 2.4rem);
    height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); opacity: 0.6;
  }
}
.paso__num {
  width: 4rem; height: 4rem; margin: 0 auto 1.1rem; display: grid; place-items: center;
  border-radius: 9999px; background: var(--navy-dark); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  border: 1px solid rgba(201,162,39,0.55);
  box-shadow: 0 14px 30px -14px rgba(15,24,74,0.6); position: relative; z-index: 1;
}
.paso__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy-dark); margin-bottom: 0.4rem; }
.paso__text { font-size: 0.88rem; color: rgba(42,47,69,0.72); line-height: 1.55; max-width: 15rem; margin: 0 auto; }

/* --------------------------------------------------------------------------- *
 * Resenas
 * --------------------------------------------------------------------------- */
.review {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 0.5rem;
  padding: 1.75rem 1.6rem; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.review::before {
  content: "\201C"; position: absolute; top: 0.4rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: rgba(201,162,39,0.35);
}
.review:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -30px rgba(15,24,74,0.5); border-color: rgba(201,162,39,0.45); }
.review__stars { display: inline-flex; gap: 2px; color: var(--gold); margin-bottom: 0.8rem; }
.review__stars svg { width: 1.05rem; height: 1.05rem; }
.review__text { font-size: 0.95rem; line-height: 1.65; color: rgba(42,47,69,0.82); flex-grow: 1; margin-bottom: 1.4rem; }
.review__foot { display: flex; align-items: center; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review__avatar {
  width: 2.9rem; height: 2.9rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9999px;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.review__name { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy-dark); }
.review__tramite { display: block; font-size: 0.78rem; color: rgba(42,47,69,0.55); }

/* --------------------------------------------------------------------------- *
 * FAQ general (acordeon)
 * --------------------------------------------------------------------------- */
#faqGeneral { display: flex; flex-direction: column; gap: 0.75rem; }
#faqGeneral .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 0.5rem; padding: 0 1.25rem; }
#faqGeneral .faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; color: var(--navy-dark); font-size: 1rem;
}
#faqGeneral .faq-item summary::-webkit-details-marker { display: none; }
#faqGeneral .faq-item summary .faq-chevron { width: 1.25rem; height: 1.25rem; color: var(--accent); flex: 0 0 auto; }
#faqGeneral .faq-item[open] .faq-chevron { transform: rotate(180deg); }
#faqGeneral .faq-item p { font-size: 0.92rem; line-height: 1.65; color: rgba(42,47,69,0.75); padding-bottom: 1.1rem; margin: 0; }

/* =============================================================================
 * Notaria 11 — Hero: sello solido tipo medallon (reemplaza al aro vacio)
 * ========================================================================== */
.hero-dark .grid { align-items: center; }

.seal-emblem {
  position: relative; text-align: center;
  max-width: 23rem; margin: 0 auto;
  padding: 2.75rem 2rem 2.5rem;
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 40px 80px -40px rgba(0,0,0,0.65);
}
.seal-emblem::after {
  content: ""; position: absolute; inset: 10px; border-radius: 0.7rem;
  border: 1px solid rgba(201,162,39,0.18); pointer-events: none;
}
.seal-emblem__medallion { width: 150px; height: 150px; margin: 0 auto 1.4rem; display: block; }
.seal-emblem__name {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700;
  color: #fff; line-height: 1.12;
}
.seal-emblem__place {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #d9b45a; margin-top: 0.55rem;
}
.seal-emblem__rule { width: 3rem; height: 1px; background: rgba(201,162,39,0.6); margin: 1.25rem auto; }
.seal-emblem__motto {
  font-family: var(--font-display); font-style: italic;
  color: rgba(255,255,255,0.74); font-size: 1rem; line-height: 1.5;
  max-width: 16rem; margin: 0 auto;
}

@media (max-width: 1023px) {
  .seal-emblem { margin-top: 0.5rem; }
}

/* =============================================================================
 * Notaria 11 — Utilidades que no venian en el Tailwind precompilado.
 * (Se agregan aqui para no depender de recompilar Tailwind.)
 * ========================================================================== */
.h-full { height: 100%; }
.items-stretch { align-items: stretch; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.text-\[1\.5rem\] { font-size: 1.5rem; }

/* Firma de la notaria dentro del sello del hero */
.seal-emblem__signature {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  color: #fff; font-size: 1.15rem; line-height: 1.2;
}
.seal-emblem__role {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #d9b45a; margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------- *
 * Encuentranos — foto de la fachada
 * --------------------------------------------------------------------------- */
.foto-fachada { margin: 0 0 2rem; }
.foto-fachada img {
  width: 100%; max-height: 26rem; object-fit: cover; object-position: center 35%;
  border-radius: 0.2rem; display: block;
}
.foto-fachada .foto-fallback {
  aspect-ratio: 16 / 6; align-items: center; justify-content: center; text-align: center;
  border-radius: 0.2rem; color: rgba(42,47,69,0.6); font-size: 0.95rem; line-height: 1.5;
  background:
    repeating-linear-gradient(45deg, #efeade 0 14px, #f6f2e9 14px 28px);
  border: 1px dashed rgba(29,53,135,0.2);
}
.foto-fachada figcaption {
  text-align: center; font-size: 0.8rem; color: rgba(42,47,69,0.6);
  padding-top: 0.7rem; font-style: italic;
}
.foto-fachada code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; font-style: normal;
  background: rgba(29,53,135,0.08); padding: 0.05rem 0.35rem; border-radius: 4px;
}

.mt-9 { margin-top: 2.25rem; }
.text-ink\/50 { color: rgba(42, 47, 69, 0.5); }

/* --------------------------------------------------------------------------- *
 * "Como funciona?" — resaltado del paso al pasar el cursor
 * --------------------------------------------------------------------------- */
.paso { transition: transform 0.25s ease; }
.paso__num { transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.paso__title { transition: color 0.25s ease; }
.paso:hover { transform: translateY(-6px); }
.paso:hover .paso__num {
  background: var(--gold); color: var(--navy-dark); transform: scale(1.08);
  border-color: var(--gold); box-shadow: 0 18px 34px -14px rgba(201, 162, 39, 0.75);
}
.paso:hover .paso__title { color: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) {
  .paso:hover, .paso:hover .paso__num { transform: none; }
}

/* --------------------------------------------------------------------------- *
 * Recursos — tarjetas de descarga
 * --------------------------------------------------------------------------- */
.recurso-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 0.5rem;
  padding: 1.75rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.recurso-card:hover {
  transform: translateY(-4px); border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 24px 46px -30px rgba(15, 24, 74, 0.5);
}
.recurso-card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.3); background: rgba(201, 162, 39, 0.09);
  color: var(--navy); margin-bottom: 1.1rem;
}
.recurso-card__icon svg { width: 1.5rem; height: 1.5rem; }
.recurso-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--navy-dark); margin-bottom: 0.5rem;
}
.recurso-card__text { font-size: 0.9rem; color: rgba(42, 47, 69, 0.72); line-height: 1.55; flex-grow: 1; margin-bottom: 1.2rem; }
.recurso-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  font-weight: 600; font-size: 0.88rem; color: var(--accent-dark);
  transition: gap 0.2s ease;
}
.recurso-card__link svg { width: 1rem; height: 1rem; }
.recurso-card__link:hover { gap: 0.7rem; }
