/* ==========================================================
   Elizabeth Quispe & Asociados — Estilos Institucionales
   ========================================================== */

:root {
  --obsidian: #070b13;
  --navy: #0c1527;
  --navy-mid: #132039;
  --navy-border: rgba(212, 175, 100, 0.22);

  --gold: #d4af64;
  --gold-light: #edd39a;
  --gold-deep: #a67f35;
  --gold-soft: rgba(212, 175, 100, 0.12);

  --ivory: #f7f4ec;
  --white: #ffffff;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #5b6472;
  --border-light: #e5dfd1;

  --text-light: #f3f4f6;
  --text-light-muted: #b6c0d1;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 12px 32px rgba(9, 14, 26, 0.08);
  --shadow-gold: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 100, 0.24);
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  transition: font-size 0.2s ease;
}

html.font-large {
  font-size: 18.5px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, 100% - 2.25rem);
  margin-inline: auto;
}

/* Barra superior de progreso */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(7, 11, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 100, 0.16);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 11, 19, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.92;
}

.brand-emblem {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 100, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-muted);
  transition: color var(--transition);
  padding-block: 0.25rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Botón accesibilidad A+ */
.a11y-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 100, 0.28);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.a11y-btn:hover {
  background: rgba(212, 175, 100, 0.15);
  border-color: var(--gold-light);
}

.a11y-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b101b;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 100, 0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer sólido (evita transparencia sobre secciones) */
.mobile-drawer {
  display: none;
  background: #070b13;
  border-top: 1px solid rgba(212, 175, 100, 0.2);
  padding: 1rem 1.25rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-link {
  padding: 0.72rem 0.4rem;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-link:hover {
  color: var(--gold-light);
}

.mobile-a11y-btn {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 100, 0.24);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
}

.mobile-a11y-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(212, 175, 100, 0.14);
}

.a11y-badge {
  color: var(--gold-light);
}

.mobile-drawer-cta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.88rem 1.45rem;
  font-size: 0.96rem;
}

.btn-full {
  width: 100%;
  padding: 0.85rem 1.2rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #0b101b;
  box-shadow: 0 8px 24px rgba(212, 175, 100, 0.24);
}

.btn-gold:hover {
  box-shadow: 0 12px 28px rgba(212, 175, 100, 0.38);
}

.btn-outline-gold {
  background: transparent;
  border-color: rgba(212, 175, 100, 0.55);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 100, 0.12);
  border-color: var(--gold-light);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-light-muted);
  padding: 0.88rem 1.15rem;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* HERO */
.hero {
  position: relative;
  padding-top: 126px;
  background: linear-gradient(160deg, var(--obsidian) 0%, var(--navy) 55%, #09101d 100%);
  color: var(--text-light);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.36;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(212, 175, 100, 0.45), transparent 70%);
}

.hero-glow-2 {
  width: 440px;
  height: 440px;
  bottom: 40px;
  left: -140px;
  background: radial-gradient(circle, rgba(31, 67, 130, 0.55), transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 100, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 100, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 90%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4.25rem;
}

.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(212, 175, 100, 0.1);
  border: 1px solid rgba(212, 175, 100, 0.32);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.35rem;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.3vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}

.text-gold-gradient {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, #f5e3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.04rem;
  color: var(--text-light-muted);
  max-width: 58ch;
  margin: 0 0 1.9rem;
}

.hero-description strong {
  color: var(--white);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.meta-value {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 500;
}

.meta-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
}

/* Tarjeta Crest Hero con Sello EQ */
.crest-card {
  position: relative;
  background: linear-gradient(175deg, rgba(19, 32, 57, 0.92), rgba(7, 11, 19, 0.96));
  border: 1px solid rgba(212, 175, 100, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

.crest-card-shine {
  position: absolute;
  top: -120px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(237, 211, 154, 0.14), transparent 70%);
  pointer-events: none;
}

.crest-seal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-bottom: 1.2rem;
}

.crest-seal {
  width: 108px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.crest-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.crest-firm {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
}

.crest-cal {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light-muted);
}

.crest-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 100, 0.45), transparent);
  margin-bottom: 1.3rem;
}

.crest-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.crest-highlights li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.highlight-icon {
  color: var(--gold);
  font-size: 0.72rem;
  margin-top: 0.35rem;
}

.crest-highlights strong {
  display: block;
  font-size: 0.94rem;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.crest-highlights p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.48;
}

.crest-card-footer {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.crest-action {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.92rem;
  transition: letter-spacing var(--transition);
}

.crest-action:hover {
  letter-spacing: 0.02em;
}

/* Banda de confianza */
.trust-strip {
  position: relative;
  background: rgba(4, 7, 13, 0.78);
  border-top: 1px solid rgba(212, 175, 100, 0.2);
  border-bottom: 1px solid rgba(212, 175, 100, 0.14);
  padding: 0.95rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.4rem;
  font-size: 0.86rem;
  color: var(--text-light-muted);
}

.trust-strip strong {
  color: var(--gold-light);
}

.trust-sep {
  color: var(--gold-deep);
}

/* SECCIONES */
.section {
  padding: 5.25rem 0;
}

.section-ivory {
  background: var(--ivory);
  color: var(--ink);
}

.section-light-alt {
  background: var(--white);
  color: var(--ink);
}

.section-navy {
  background: linear-gradient(170deg, var(--navy) 0%, #09101f 100%);
  color: var(--text-light);
}

.section-obsidian {
  background: linear-gradient(180deg, #0a101d 0%, var(--obsidian) 100%);
  color: var(--text-light);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.eyebrow-gold {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 0.8rem;
  color: var(--navy);
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Filtros y Grid de Especialidades */
.practice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.1rem;
}

.filter-btn {
  padding: 0.58rem 1.08rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold-deep);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
  box-shadow: 0 8px 20px rgba(12, 21, 39, 0.16);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.55rem;
}

.practice-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.95rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.practice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 127, 53, 0.55);
  box-shadow: 0 18px 36px rgba(12, 21, 39, 0.11);
}

.practice-card.hidden-card {
  display: none;
}

.practice-card-featured {
  background: linear-gradient(165deg, #101b31 0%, #090f1b 100%);
  border-color: rgba(212, 175, 100, 0.38);
  color: var(--text-light);
}

.practice-card-featured .card-title {
  color: var(--gold-light);
}

.practice-card-featured .card-lead,
.practice-card-featured .card-list li {
  color: var(--text-light-muted);
}

.practice-card-featured .card-list li::before {
  color: var(--gold-light);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
}

.card-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.practice-card-featured .card-index {
  color: var(--gold-light);
}

.card-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 21, 39, 0.06);
  color: var(--navy);
}

.card-badge-gold {
  background: rgba(212, 175, 100, 0.16);
  border: 1px solid rgba(212, 175, 100, 0.35);
  color: var(--gold-light);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--navy);
  line-height: 1.2;
}

.card-lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-list {
  list-style: none;
  margin: 0 0 1.55rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.card-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(166, 127, 53, 0.18);
}

.btn-card-select {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.practice-card-featured .btn-card-select {
  color: var(--gold-light);
}

.btn-card-select:hover {
  color: var(--gold-deep);
  transform: translateX(4px);
}

.practice-card-featured .btn-card-select:hover {
  color: var(--white);
}

/* Micro-guías rápidas */
.guides-block {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border-light);
}

.guides-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.guides-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

.guides-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 16px 30px rgba(12, 21, 39, 0.1);
}

.guide-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  background: rgba(166, 127, 53, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.guide-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.55rem;
  color: var(--navy);
  line-height: 1.2;
}

.guide-card p {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.guide-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.guide-card:hover .guide-cta {
  color: var(--gold-deep);
}

/* EL ESTUDIO (Perfil + Foto + Modalidad) */
.studio-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

.studio-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: -0.3rem 0 1.25rem;
}

.studio-bio {
  color: var(--text-light-muted);
  margin: 0 0 1.85rem;
  font-size: 1rem;
}

.studio-bio strong {
  color: var(--white);
}

.studio-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.value-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 100, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.value-box h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0 0 0.4rem;
  color: var(--gold-light);
}

.value-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

/* Foto editorial del despacho */
.studio-photo-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 100, 0.34);
  background: #070b13;
  box-shadow: var(--shadow-gold);
}

.studio-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-photo-frame:hover .studio-photo {
  transform: scale(1.03);
}

.studio-photo-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  background: rgba(7, 11, 19, 0.92);
  border-top: 1px solid rgba(212, 175, 100, 0.22);
  font-size: 0.82rem;
  color: var(--gold-light);
}

/* Modalidad switcher horizontal */
.modality-card {
  background: rgba(7, 11, 19, 0.72);
  border: 1px solid rgba(212, 175, 100, 0.28);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-gold);
}

.modality-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.35rem;
}

.modality-header h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.25rem;
  color: var(--white);
}

.modality-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-light-muted);
}

.modality-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  min-width: 290px;
}

.modality-tab {
  border: none;
  background: transparent;
  color: var(--text-light-muted);
  padding: 0.62rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.modality-tab.active {
  background: var(--gold);
  color: #0b101b;
}

.modality-body-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.modality-panel {
  display: none;
}

.modality-panel.active {
  display: block;
  animation: fadeSlide 0.25s ease;
}

.modality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.modality-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.93rem;
  color: var(--text-light-muted);
}

.modality-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.modality-list strong {
  color: var(--white);
}

/* METODOLOGÍA */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.step-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-3px);
}

.step-card.active {
  background: var(--navy);
  border-color: var(--gold);
  color: var(--text-light);
  box-shadow: 0 16px 32px rgba(12, 21, 39, 0.16);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}

.step-card.active .step-num {
  color: var(--gold-light);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.step-card.active h3 {
  color: var(--white);
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-card.active p {
  color: var(--text-light-muted);
}

.step-detail-bar {
  margin-top: 1.35rem;
  background: var(--white);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.detail-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}

.step-detail-bar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-container {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--gold-deep);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold-deep);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* CONTACTO */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-lead {
  color: var(--text-light-muted);
  margin: 0 0 1.8rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 100, 0.22);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
}

.info-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.info-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.info-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  word-break: break-word;
}

.info-email {
  font-size: 0.98rem;
}

.info-card-note {
  display: block;
  font-size: 0.84rem;
  color: var(--text-light-muted);
  margin-top: 0.25rem;
}

.copy-btn {
  background: rgba(212, 175, 100, 0.14);
  border: 1px solid rgba(212, 175, 100, 0.35);
  color: var(--gold-light);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.copy-btn:hover {
  background: rgba(212, 175, 100, 0.28);
}

.map-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-light);
}

.map-link:hover {
  text-decoration: underline;
}

/* Builder Box */
.builder-box {
  background: linear-gradient(170deg, rgba(19, 32, 57, 0.9), rgba(10, 15, 28, 0.96));
  border: 1px solid rgba(212, 175, 100, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-gold);
}

.builder-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.3rem;
  color: var(--gold-light);
}

.builder-header p {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-light-muted);
}

.consult-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(7, 11, 19, 0.75);
  border: 1px solid rgba(212, 175, 100, 0.24);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--white);
  font-size: 0.93rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212, 175, 100, 0.16);
}

.message-preview {
  background: rgba(4, 7, 13, 0.72);
  border: 1px dashed rgba(212, 175, 100, 0.32);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.preview-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.message-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Banda de cierre animada */
.closing-band {
  background: linear-gradient(155deg, var(--navy) 0%, #0b1426 100%);
  border-top: 1px solid rgba(212, 175, 100, 0.26);
  padding: 4.5rem 0;
  color: var(--white);
}

.closing-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.closing-headline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--word-index, 0) * 65ms);
}

.closing-headline.is-visible span {
  opacity: 1;
  transform: translateY(0);
}

.closing-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.closing-rule {
  width: 68px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  margin-bottom: 1rem;
}

.closing-author {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
}

.closing-sub {
  margin: 0.1rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

/* FOOTER */
.site-footer {
  background: #04070d;
  color: var(--text-light-muted);
  border-top: 1px solid rgba(212, 175, 100, 0.18);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
}

.footer-brand p {
  margin: 0;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.86rem;
}

.footer-links a:hover,
.footer-modal-link:hover {
  color: var(--gold-light);
}

.footer-modal-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-disclaimer {
  color: #8b95a7;
  font-size: 0.78rem;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(170deg, #101b31, #080d18);
  border: 1px solid rgba(212, 175, 100, 0.38);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-light);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
  animation: fadeSlide 0.24s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 100, 0.28);
  color: var(--gold-light);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(212, 175, 100, 0.2);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 1rem;
  color: var(--white);
  padding-right: 2rem;
  line-height: 1.18;
}

.modal-body {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.8rem;
}

.modal-body p {
  margin: 0;
}

.modal-body ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.modal-body strong {
  color: var(--gold-light);
}

.modal-footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Banner de privacidad discreto */
.privacy-banner {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 470px;
  background: rgba(7, 11, 19, 0.96);
  border: 1px solid rgba(212, 175, 100, 0.34);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light-muted);
  font-size: 0.82rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48);
  z-index: 880;
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner p {
  margin: 0;
  line-height: 1.45;
}

.privacy-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-light);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

/* Barra inferior móvil */
.mobile-sticky-bar {
  display: none;
}

/* Botones flotantes escritorio */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  z-index: 850;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(12, 21, 39, 0.9);
  border: 1px solid rgba(212, 175, 100, 0.4);
  color: var(--gold-light);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.whatsapp-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1b8c5a, #126943);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.whatsapp-fab svg {
  width: 20px;
  height: 20px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 16px);
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 100, 0.45);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1300;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Animaciones Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-layout,
  .studio-top-grid,
  .contact-layout,
  .closing-inner,
  .modality-body-row {
    grid-template-columns: 1fr;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-actions .a11y-btn,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: 72px;
  }

  .brand-emblem {
    height: 36px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-sub {
    font-size: 0.64rem;
  }

  .practice-grid,
  .studio-values,
  .form-row,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .modality-tabs {
    width: 100%;
    min-width: 0;
  }

  .section {
    padding: 3.8rem 0;
  }

  .hero {
    padding-top: 104px;
  }

  .meta-divider {
    display: none;
  }

  .builder-actions .btn {
    flex: 1 1 100%;
  }

  .floating-actions {
    display: none;
  }

  .privacy-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5rem;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 870;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    background: rgba(7, 11, 19, 0.96);
    border-top: 1px solid rgba(212, 175, 100, 0.28);
    backdrop-filter: blur(10px);
  }

  .mobile-sticky-bar .btn {
    padding: 0.68rem 0.75rem;
    font-size: 0.88rem;
  }

  .toast {
    bottom: 5.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .closing-headline span {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
