/* ==========================================================
   Bufete Juan Segura — estilos
   Serif editorial + tarjetas suaves: esquinas redondeadas con moderación,
   fondos con degradado ligero y sombras discretas. Casi sin iconos.
   Colores, radios, sombras y tipografías en :root.
   ========================================================== */
:root {
  --navy: #0C2238;
  --navy-deep: #071726;
  --navy-soft: #16324F;
  --gold: #A9884B;              /* latón */
  --gold-light: #D2B983;
  --gold-ink: #7A6030;          /* latón oscuro, legible sobre fondo claro */
  --ivory: #F6F2E9;
  --ivory-deep: #EFE9DC;
  --paper: #FFFFFF;
  --ink: #17212D;
  --muted: #56606C;
  --line: #E0D9CC;
  --line-dark: rgba(255, 255, 255, .15);
  --wa: #1B7F4D;
  --wa-dark: #156A3F;
  --star: #DBA62A;
  --danger: #A8261F;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 10px;                 /* botones, campos, chips */
  --r: 16px;                    /* tarjetas */
  --r-lg: 22px;                 /* foto y paneles grandes */
  --shadow-sm: 0 1px 2px rgba(12, 34, 56, .05), 0 6px 18px -8px rgba(12, 34, 56, .12);
  --shadow-md: 0 2px 4px rgba(12, 34, 56, .04), 0 18px 40px -20px rgba(12, 34, 56, .26);
  --shadow-lg: 0 4px 8px rgba(12, 34, 56, .04), 0 36px 70px -34px rgba(12, 34, 56, .45);

  --bg-navy: radial-gradient(1100px 620px at 82% 12%, rgba(210, 185, 131, .16), transparent 62%), linear-gradient(160deg, #123052 0%, #0C2238 46%, #071726 100%);
  --bg-ivory: linear-gradient(180deg, #F8F5EE 0%, #F2EDE2 100%);

  /* escala de texto */
  --t-label: .8rem;             /* etiquetas en mayúsculas */
  --t-small: .9rem;
  --t-body: 1rem;
  --t-lead: 1.1rem;

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px;                    /* hueco para la barra fija del móvil */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 880px; }
.center { text-align: center; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.012em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.9vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-family: var(--sans); font-size: var(--t-body); font-weight: 600; color: var(--navy); }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.section-navy .eyebrow { color: var(--gold-light); }
.section-sub { color: var(--muted); margin-top: 16px; max-width: 56ch; font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 10px 26px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--t-body); line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; background: none;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: var(--t-small); }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 1.03rem; }
.btn-block { width: 100%; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -10px rgba(27, 127, 77, .75); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-navy, .btn-gold { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(12, 34, 56, .7); }
.btn-navy:hover, .btn-gold:hover { background: var(--navy-soft); }
.section-navy .btn-gold { background: var(--gold-light); color: var(--navy-deep); box-shadow: none; }
.section-navy .btn-gold:hover { background: #DFCA9C; }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline, .btn-ghost { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--navy); }
.btn-ghost { font-size: var(--t-small); padding-left: 14px; padding-right: 14px; }
.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 600; font-size: var(--t-body); color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.link-arrow:hover { color: var(--gold-ink); }

.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.stars svg { width: 16px; height: 16px; }
.g { width: 24px; height: 24px; flex: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(12, 34, 56, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: none; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--gold-ink); }
.header-cta { display: none; }

.lang-switch { display: inline-flex; align-items: center; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); }
.lang-switch a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 20px 14px; box-shadow: 0 30px 40px -28px rgba(12, 34, 56, .45); }
.main-nav.open { display: flex; }
.main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; color: var(--navy); text-decoration: none; }
.main-nav a:last-child { border-bottom: 0; }

.site-header .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .lang-switch a { padding: 0 8px; }
  .site-header .btn-sm { padding: 8px 12px; font-size: .86rem; }
}
@media (min-width: 1000px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: none; }
  .main-nav { position: static; display: flex; flex-direction: row; gap: 20px; padding: 0; border: 0; box-shadow: none; background: none; }
  .main-nav a { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
  .header-cta { white-space: nowrap; }
  .main-nav a:hover, .main-nav a.current { color: var(--navy); border-bottom-color: var(--gold); }
  .header-cta { display: inline-flex; }
  .brand img { height: 44px; }
}
@media (min-width: 1200px) {
  .header-phone { display: block; }
  .main-nav { gap: 28px; }
  .main-nav a { font-size: .95rem; }
}

/* ---------- Portada ---------- */
.hero { background: var(--bg-navy); color: #fff; padding: 30px 0 84px; }
.hero-grid { display: grid; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-lead { margin-top: 18px; font-size: 1.06rem; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 46ch; }
.hero-alert { margin-top: 18px; padding: 10px 14px; border-left: 2px solid var(--gold-light); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(255, 255, 255, .06); font-size: .97rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.hero-alert strong { color: #fff; }
.hero-cta { display: flex; flex-direction: column; align-self: stretch; gap: 10px; margin-top: 22px; }
.hero-modes { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 18px; font-size: var(--t-small); color: rgba(255, 255, 255, .68); }
.hero-modes span { flex: 0 0 100%; }
.hero .pill, .hero-photo { display: none; }

/* Móvil: cara y valoración en la primera pantalla */
.hero-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #fff; text-decoration: none; }
.hero-mini img { width: 62px; height: 62px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 2px rgba(210, 185, 131, .9), 0 10px 22px -8px rgba(0, 0, 0, .6); }
.hero-mini-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .95rem; line-height: 1.3; }
.hero-mini-rating strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.hero-mini-sub { display: block; margin-top: 3px; font-size: .82rem; color: var(--gold-light); }

@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-self: auto; }
  .hero-modes span { flex: none; }
  .hero-modes span + span::before { content: "·"; margin: 0 10px; color: var(--gold-light); }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 124px; }
  /* texto y foto con la misma altura: quedan encuadrados uno junto al otro */
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: stretch; }
  .hero-copy { justify-content: center; padding: 28px 0; }
  .hero .pill {
    display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
    font-size: var(--t-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
  }
  .hero .pill::before { content: ""; width: 30px; height: 1px; background: currentColor; }
  .hero-lead { margin-top: 24px; font-size: 1.15rem; line-height: 1.65; }
  .hero-alert { margin-top: 24px; font-size: 1rem; }
  .hero-cta { gap: 12px; margin-top: 30px; }
  /* la valoración pasa a ser una línea bajo los botones */
  .hero-mini { order: 1; margin: 28px 0 0; }
  .hero-mini img, .hero-mini-sub { display: none; }
  .hero-mini-rating { font-size: 1rem; color: rgba(255, 255, 255, .85); }
  .hero-mini:hover .hero-mini-rating > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
  .hero-modes { order: 2; margin-top: 12px; font-size: .95rem; }

  .hero-photo { display: block; position: relative; min-height: 540px; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(210, 185, 131, .28); }
  .photo-frame { position: absolute; inset: 0; }
  .photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
  .photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 28px 24px; background: linear-gradient(transparent, rgba(7, 23, 38, .9)); }
  .photo-caption strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: #fff; }
  .photo-caption span { font-size: .92rem; color: var(--gold-light); }
}

/* ---------- Cifras: tarjeta que monta sobre la portada ---------- */
.facts { position: relative; z-index: 2; margin-top: -52px; padding: 0 20px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1120px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.fact { padding: 20px 18px; border-top: 1px solid var(--line); }
.fact:nth-child(-n+2) { border-top: 0; }
.fact:nth-child(even) { border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.fact span { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--muted); line-height: 1.35; }
@media (min-width: 760px) {
  .facts { margin-top: -62px; padding: 0 40px; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .fact, .fact:nth-child(even) { padding: 30px 32px; border-top: 0; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; }
  .fact strong { font-size: 2.6rem; }
  .fact span { font-size: .95rem; margin-top: 6px; }
}

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section-cream { background: var(--bg-ivory); }
.section-navy { background: var(--bg-navy); color: rgba(255, 255, 255, .82); }
.section-navy h2 { color: #fff; }
.section-navy .section-sub { color: rgba(255, 255, 255, .74); }
.section-head { margin-bottom: 30px; }
@media (min-width: 900px) { .section { padding: 104px 0; } .section-head { margin-bottom: 52px; } }

/* ---------- ¿Cuál es su situación? ---------- */
.situations-grid { display: grid; gap: 26px; }
.situation-list { display: grid; gap: 8px; }
.situation {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 18px 12px 20px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--navy); text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.situation .icon { width: 20px; height: 20px; color: var(--gold); transition: transform .25s, color .2s; }
.situation:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.situation:hover .icon { color: var(--gold-light); transform: translateX(4px); }
@media (min-width: 640px) { .situation-list { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 900px) {
  .situations-grid { grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: center; }
  .situation { min-height: 78px; padding: 18px 22px 18px 26px; font-size: 1.3rem; }
}

/* ---------- Áreas ---------- */
/* Móvil: todas las pestañas a la vista en dos filas. Escritorio: índice a la izquierda y ficha a la derecha. */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 10px 15px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-weight: 600; font-size: .95rem; color: var(--navy); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab-num { display: none; }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
html:not(.js) .tabs { display: none; }

.area-panel { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); }
.area-panel[hidden] { display: none; }
.area-panel + .area-panel { margin-top: 18px; }
.area-panel h3 { font-size: 1.6rem; }
.area-intro p { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.area-intro .btn { margin-top: 22px; }
.area-intro .area-alert { padding: 10px 14px; border-left: 2px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--ivory); color: var(--ink); font-size: .97rem; }

/* Móvil: lista compacta de títulos. Desde 620px: dos columnas con descripción. */
.service-list { display: grid; margin-top: 26px; }
.service-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.service-list h4 { font-weight: 500; }
.service-list p { display: none; margin-top: 4px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 620px) {
  .service-list { grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .service-list li { padding: 18px 0; }
  .service-list h4 { font-weight: 600; }
  .service-list p { display: block; }
}
@media (min-width: 900px) {
  .areas-layout { display: grid; grid-template-columns: 290px 1fr; column-gap: 32px; align-items: start; }
  .tabs { grid-column: 1; grid-row: 1 / span 5; display: grid; gap: 4px; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 28px); }
  .tab {
    display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 0; padding: 15px 18px;
    border: 0; border-radius: var(--r-sm); background: none; text-align: left;
    font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink);
  }
  .tab-num { display: inline; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--gold-ink); }
  .tab:hover { background: var(--ivory); }
  .tab[aria-selected="true"] { background: var(--navy); color: #fff; }
  .tab[aria-selected="true"] .tab-num { color: var(--gold-light); }
  .area-panel { grid-column: 2; padding: 44px 48px 30px; }
  .area-panel h3 { font-size: 2.1rem; }
  .service-list { margin-top: 34px; }
}

/* ---------- Cita ---------- */
/* Móvil: título, formulario y después los pasos. Escritorio: explicación a la izquierda (acompaña al bajar) y formulario a la derecha. */
.cita-grid { display: grid; gap: 26px; align-items: start; grid-template-areas: "head" "form" "details"; }
.cita-head { grid-area: head; }
.cita-details { grid-area: details; }
.booking { grid-area: form; scroll-margin-top: calc(var(--header-h) + 12px); }

.mode-cards { display: none; }               /* en móvil ya lo explica el propio formulario */
.mode-card { padding: 20px 22px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); }
.mode-card h3 { font-size: 1.35rem; }
.mode-card p { margin-top: 6px; font-size: .95rem; color: var(--muted); line-height: 1.55; }

.steps { counter-reset: paso; display: grid; }
.steps li { counter-increment: paso; position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-body); }
.steps li:first-child { border-top: 0; }
.steps li strong { color: var(--navy); font-weight: 600; }
.steps li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--gold-ink); line-height: 1.2; }

.booking { display: grid; gap: 20px; padding: 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.booking h3 { font-size: 1.7rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.booking-intro { margin-top: -6px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.booking fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.booking legend, .field label { display: block; padding: 0; margin-bottom: 9px; font-weight: 600; font-size: .97rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: block; height: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s; }
.choice-box:hover { border-color: var(--navy); }
.choice-box strong { display: block; font-size: var(--t-body); font-weight: 600; color: var(--navy); line-height: 1.25; }
.choice-box small { font-size: .88rem; color: var(--muted); }
.choice input:checked + .choice-box { background: var(--navy); border-color: var(--navy); box-shadow: 0 10px 20px -12px rgba(12, 34, 56, .8); }
.choice input:checked + .choice-box strong { color: #fff; }
.choice input:checked + .choice-box small { color: rgba(255, 255, 255, .72); }
.choice input:focus-visible + .choice-box, .chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.chip span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-size: .95rem; font-weight: 500; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hour-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chip-wide { grid-column: 1 / -1; }
.chip-day span { flex-direction: column; gap: 0; padding: 6px 2px; line-height: 1.25; }
.chip-day small { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .72; }
.chip-day b { font-size: .95rem; font-weight: 600; white-space: nowrap; }
.hour-label { grid-column: 1 / -1; margin-top: 4px; font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-hint { margin-top: 10px; font-size: var(--t-small); color: var(--muted); line-height: 1.45; }

.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; min-height: 50px; border: 1px solid #CFC7B8; border-radius: var(--r-sm); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12, 34, 56, .1); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: 6px; font-size: var(--t-small); color: var(--danger); }

.booking-alt { display: grid; gap: 8px; }
.booking-status { font-size: var(--t-body); font-weight: 600; color: var(--wa-dark); }
.booking-status:empty { display: none; }
.booking-note { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.booking-note a { color: var(--navy); }

@media (min-width: 480px) { .booking-alt { grid-template-columns: 1fr 1fr; } .booking { padding: 34px; } .day-grid, .hour-grid { gap: 8px; } }
@media (min-width: 960px) {
  .cita-grid { grid-template-columns: 1fr 470px; grid-template-rows: auto 1fr; gap: 36px 48px; grid-template-areas: "head form" "details form"; }
  .cita-details { position: sticky; top: calc(var(--header-h) + 28px); }
  /* dos tarjetas en fila si caben; en portátiles pequeños, una debajo de otra */
  .mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 26px; }
  /* horas en una sola fila para que el formulario no sea tan alto */
  .hour-grid { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .hour-label { display: none; }
  .hour-grid .chip span { font-size: .88rem; }
}
@media (min-width: 1200px) { .cita-grid { grid-template-columns: 1fr 520px; column-gap: 80px; } }

/* ---------- Reseñas ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.reviews-summary { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.reviews-summary .g { width: 30px; height: 30px; }
.reviews-score { display: flex; align-items: center; gap: 10px; line-height: 1; }
.reviews-score strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--navy); }
.reviews-score .stars svg { width: 18px; height: 18px; }
.reviews-count { margin-top: 5px; font-size: var(--t-small); color: var(--muted); line-height: 1.2; }

/* Móvil: solo 3 reseñas, recortadas, con «Ver más» debajo. Ordenador: las 9, en rejilla de tarjetas iguales. */
.reviews-grid { display: grid; gap: 12px; }
.review { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.review blockquote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.review figcaption { margin-top: auto; padding-top: 6px; }
.review figcaption strong { display: block; font-size: var(--t-body); font-weight: 600; color: var(--navy); line-height: 1.3; }
.review figcaption small { font-size: .88rem; color: var(--muted); }
.review-more { align-self: flex-start; margin-top: -6px; padding: 10px 0; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: var(--t-small); color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.reviews-toggle-wrap { margin-top: 14px; }
html:not(.js) .reviews-toggle-wrap { display: none; }
.reviews-more { margin-top: 10px; text-align: center; }
.reviews-more .btn { width: 100%; }
.reviews-more .g { width: 18px; height: 18px; }
@media (max-width: 719px) {
  .js .reviews-grid:not(.expanded) .review:nth-child(n+4) { display: none; }
  .js .review:not(.open) blockquote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
}
@media (min-width: 720px) {
  .reviews-toggle-wrap, .review-more { display: none; }
  .reviews-head { margin-bottom: 44px; }
  .reviews-score strong { font-size: 2.7rem; }
  .reviews-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .review { padding: 28px; gap: 14px; }
  .reviews-more { margin-top: 36px; }
  .reviews-more .btn { width: auto; }
}
@media (min-width: 1040px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ---------- Casos de éxito ---------- */
/* En móvil se deslizan de lado con flechas y puntos; en ordenador, rejilla. */
.cases-grid {
  position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 4px 20px 26px; scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cases-grid::-webkit-scrollbar { display: none; }
.case {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 26px 32px; color: rgba(255, 255, 255, .78);
  background: radial-gradient(420px 220px at 50% 0%, rgba(210, 185, 131, .13), transparent 70%), linear-gradient(170deg, #14365A 0%, #0C2238 55%, #081A2C 100%);
  border: 1px solid rgba(210, 185, 131, .6); border-radius: var(--r); box-shadow: var(--shadow-md);
}
.case-cat { font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.case h3 { margin-top: 14px; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.case-text { margin-top: 18px; text-align: left; font-size: .97rem; line-height: 1.65; }
.case-figure { margin-top: auto; padding-top: 24px; font-size: .95rem; font-weight: 500; color: var(--gold-light); line-height: 1.4; }
.case-figure strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; letter-spacing: -.01em; color: #fff; line-height: 1.05; }
.case .btn { margin-top: 22px; min-width: 190px; }
.cases-note { margin: 22px auto 24px; max-width: 70ch; text-align: center; font-size: var(--t-small); color: var(--muted); }

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: -6px; }
.carousel-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, opacity .2s; }
.carousel-btn:hover { border-color: var(--navy); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn .icon { width: 18px; height: 18px; }
.carousel-btn.prev .icon { transform: rotate(180deg); }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: #D6CFC1; transition: background-color .2s, width .2s; }
.carousel-dots span.on { width: 22px; border-radius: 4px; background: var(--navy); }
@media (min-width: 720px) {
  .carousel-nav { display: none; }
  .cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .case { padding: 42px 32px 38px; }
  .cases-note { margin-top: 32px; }
}
@media (min-width: 1040px) { .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; gap: 30px; align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-role { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-ink); }
.about-copy > p:not(.eyebrow):not(.about-role):not(.about-links):not(.about-toggle-wrap), .about-extra > p { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.about-quote { position: relative; margin-top: 26px; padding: 22px 24px 22px 26px; max-width: 34em; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow-sm); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--navy); }
.about-toggle-wrap { margin-top: 20px; }
.about-toggle { padding: 6px 0; border: 0; background: none; cursor: pointer; }
html:not(.js) .about-toggle-wrap { display: none; }
@media (max-width: 899px) { .js .about-extra:not(.open) { display: none; } }

.values { display: grid; margin-top: 26px; }
.values li { padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--t-body); color: var(--muted); }
.values strong { display: block; color: var(--navy); font-weight: 600; }
.creds { margin-top: 8px; border-top: 1px solid var(--line); }
.creds div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.creds dt { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-ink); line-height: 1.3; }
.creds dd { font-size: var(--t-body); }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
@media (min-width: 900px) {
  .about-toggle-wrap { display: none; }
  .about-grid { grid-template-columns: 420px 1fr; gap: 80px; }
  .about-photo { position: sticky; top: calc(var(--header-h) + 28px); }
  .about-photo img { aspect-ratio: 4 / 5; }
  .about-quote { font-size: 1.45rem; padding: 26px 30px; }
  .values { grid-template-columns: 1fr 1fr; column-gap: 44px; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); transition: background-color .2s, box-shadow .2s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow-md); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; color: var(--navy); border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--gold-ink); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 20px 22px; color: var(--muted); max-width: 70ch; }
@media (min-width: 900px) {
  .faq { gap: 12px; }
  .faq summary { font-size: 1.35rem; padding: 22px 68px 22px 28px; }
  .faq summary::before, .faq summary::after { right: 28px; }
  .faq details p { padding: 0 28px 26px; font-size: 1.05rem; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 36px; align-items: start; }
.contact-list { margin-top: 28px; border-bottom: 1px solid var(--line-dark); }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact-list li > div { display: grid; gap: 3px; }
.contact-label { display: block; font-size: var(--t-small); font-weight: 500; color: var(--gold-light); }
.contact-list a, .contact-list div > span:not(.contact-label) { font-size: 1.1rem; color: #fff; text-decoration: none; line-height: 1.5; }
.contact-list a { display: inline-block; padding: 6px 0; }
.contact-list a[href^="tel"], .contact-list a.js-wa { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.contact-list a:hover { color: var(--gold-light); }

.map-card { display: grid; gap: 12px; }
.map { position: relative; overflow: hidden; aspect-ratio: 16 / 10; min-height: 270px; width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: var(--r-lg); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(360px 220px at 50% 45%, rgba(210, 185, 131, .14), transparent 70%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 46px 100%;
}
.map-placeholder strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: #fff; }
.map-placeholder small { font-size: .86rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .contact-list li { padding: 18px 0; }
  .contact-list li > div { grid-template-columns: 210px 1fr; align-items: baseline; gap: 16px; }
  .contact-label { font-size: .95rem; }
  .map { aspect-ratio: 4 / 3.3; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .68); font-size: .97rem; padding: 50px 0 0; }
/* En móvil el pie es corto: marca, contacto y legal (las áreas ya están en el menú) */
.footer-grid { display: grid; gap: 28px; }
.footer-grid > :nth-child(2) { display: none; }
.footer-brand { font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; }
.footer-tag { margin: 8px 0 14px; font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.site-footer h3 { font-family: var(--sans); font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; line-height: 1.4; }
/* enlaces con altura suficiente para pulsarlos con el dedo */
.site-footer li a { display: inline-block; padding: 9px 0; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 40px; padding-bottom: 26px; font-size: var(--t-small); }
.footer-bottom p { padding-top: 22px; border-top: 1px solid var(--line-dark); }
@media (min-width: 760px) {
  .site-footer { padding-top: 76px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr .9fr; gap: 48px; }
  .footer-grid > :nth-child(2) { display: block; }
  .footer-bottom { margin-top: 60px; }
}

/* ---------- Barra fija en móvil y WhatsApp flotante ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: .85fr 1.1fr 1.05fr; gap: 7px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -14px 30px -18px rgba(12, 34, 56, .45);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.mobile-bar .icon { width: 17px; height: 17px; }
.mobile-bar .mobile-bar-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.mobile-bar .mobile-bar-cta { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Aviso de cookies: tarjeta pequeña que no tapa la barra de contacto */
.cookie-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 95;
  display: grid; gap: 10px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  font-size: .88rem; line-height: 1.4; color: var(--ink);
}
.cookie-bar .btn { min-height: 40px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: var(--navy); font-weight: 600; white-space: nowrap; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 900px) {
  .cookie-bar { left: 26px; right: auto; bottom: 26px; max-width: 400px; padding: 18px 20px; }
}

.wa-float { display: none; position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 16px 34px -12px rgba(12, 34, 56, .6); transition: background-color .2s, transform .2s; }
.wa-float:hover { background: var(--wa-dark); transform: scale(1.05); }
.wa-float .icon { width: 28px; height: 28px; }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .wa-float { display: grid; }
}

/* ---------- Página legal ---------- */
.legal { padding: 44px 0 80px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { margin-top: 48px; font-size: 1.9rem; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.legal h3 { margin-top: 24px; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--navy); }
.legal p, .legal ul { margin-top: 8px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--navy); }
.legal a.btn-navy { color: #fff; }
.legal .about-links { margin-top: 28px; }
.legal-back { display: inline-block; margin-bottom: 26px; font-size: var(--t-body); font-weight: 600; color: var(--navy); text-decoration: none; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .situation, .tab, .wa-float { transition: none; }
}
