/* Universal Web — tema Default: claro, limpio y moderno */
:root {
  --accent: #4f46e5;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --muted: #5b6678;
  --border: #e5e7eb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --on-accent: #fff;
  /* Acento para TEXTO sobre fondo claro: se oscurece para llegar a contraste AA con cualquier acento. Los temas oscuros lo aclaran. */
  --accent-text: color-mix(in srgb, var(--accent) 72%, #000);
  --focus: var(--accent-text);
}
/* Texto sobre el acento: blanco u oscuro según la luminosidad del acento (así un acento claro, p. ej. amarillo, sigue siendo legible). */
@supports (color: oklch(from red l c h)) {
  :root { --on-accent: oklch(from var(--accent) clamp(.15, (l - .62) * -1000, 1) 0 0); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: break-word; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p, li, dd, dt, figcaption, blockquote, summary { overflow-wrap: anywhere; }
.site-nav li, .site-nav a, .lang-switch a, .btn, .brand { overflow-wrap: normal; }
@media (min-width: 761px) { .site-nav a { white-space: nowrap; } }
@media (max-width: 760px) { p, li, dd, figcaption, blockquote { hyphens: auto; } }
.grid > *, .hero-inner > *, .split > *, .contact > *, .footer-grid > * { min-width: 0; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
/* Enlaces «Saltar al contenido» de plantillas HTML propias (skip-link, ig-skip…) sin CSS propio: ocultos hasta recibir el foco */
a[class*="skip"]:not(.skip):not(:focus):not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a[class*="skip"]:not(.skip):focus { position: absolute; left: 8px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 8px; font-weight: 600; }
.plain { list-style: none; margin: 8px 0 0; padding: 0; }
.plain li { margin-bottom: 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { min-height: 44px; min-width: 0; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; display: flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .975rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a.active { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; background: var(--accent); color: var(--on-accent); padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, box-shadow .15s, filter .15s; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; filter: none; }
.btn-light { background: #fff; color: #0f172a; }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(24px, 4vw, 48px) 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 8px; }
.eyebrow { color: var(--accent-text); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .5em; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  var(--bg-soft); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero.has-image .hero-inner { grid-template-columns: 1.05fr .95fr; }
.hero-text h1 { background: linear-gradient(135deg, var(--text) 40%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media img { width: 100%; border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.18); border: 1px solid var(--border); }
@media (max-width: 860px) { .hero.has-image .hero-inner { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feature { padding: 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,.1); }
.feature p { color: var(--muted); margin: 0; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 a { display: inline-block; padding-block: 6px; color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-text); }
.card-body p:last-child { margin-bottom: 0; color: var(--muted); }
.more { margin-top: 28px; font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.stat { text-align: center; display: flex; flex-direction: column-reverse; }
.stat dd { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent-text); line-height: 1.1; }
.stat dt { color: var(--muted); font-size: .95rem; }

/* Image, gallery */
.figure { margin-block: 0; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); transition: transform .2s; }
.gallery a:hover img { transform: scale(1.02); }

/* CTA */
.cta { text-align: center; padding: clamp(36px, 6vw, 64px) 20px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); }
.cta h2 { margin-bottom: .3em; }
.cta p { max-width: 560px; margin: 0 auto 24px; opacity: .92; font-size: 1.1rem; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; min-height: 44px; align-items: center; padding: 14px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq .prose { padding: 0 20px 16px; color: var(--muted); }

/* Code */
.codeblock { border-radius: 12px; overflow: hidden; background: #0f172a; color: #e2e8f0; border: 1px solid #1e293b; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #1e293b; font-size: .8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.copy-btn { background: #334155; color: #e2e8f0; border: 0; border-radius: 6px; padding: 4px 12px; min-height: 36px; cursor: pointer; font: inherit; font-size: .8rem; text-transform: none; }
.copy-btn:hover { background: #475569; }
.codeblock pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: .9rem; line-height: 1.55; }

/* Prose */
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 10px; margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.prose .md-table { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.prose code { font-family: var(--mono); background: var(--bg-soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Article */
.article { max-width: 800px; padding-top: 40px; padding-bottom: 72px; }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--accent-text); }
.article-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article-cover { width: 100%; border-radius: var(--radius); margin: 24px 0; border: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); font-size: .85rem; text-decoration: none; font-weight: 500; }
.notice { background: #fef3c7; color: #78350f; padding: 8px 14px; border-radius: 8px; font-size: .9rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; color: var(--muted); flex-wrap: wrap; }
.pagination a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; font-weight: 500; }
.pagination a:hover { background: var(--bg-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info li { margin-bottom: 10px; }
.contact-info strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.form { padding: 26px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.form .btn { justify-self: start; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 0; font-weight: 500; }
.alert.ok { background: #dcfce7; color: #14532d; }
.alert.err { background: #fee2e2; color: #7f1d1d; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-block: 48px 24px; }
.footer-grid strong { color: var(--text); display: block; }
.footer-grid a, .footer-bottom a { color: var(--muted); }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 16px 32px; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Crédito de autoría */
.uw-credit { font-size: .85rem; }
.uw-credit a { font-weight: 600; }

/* Vídeo y audio */
.media-block h2 { margin-bottom: .6em; }
.media-figure { margin: 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-video { display: block; width: 100%; max-height: 80vh; border-radius: var(--radius); background: #000; border: 1px solid var(--border); box-shadow: var(--shadow); }
.media-figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; text-align: center; }
.audio-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.audio-card h3 { margin-bottom: .6em; }
.media-audio { display: block; width: 100%; }
.audio-text { color: var(--muted); margin: 14px 0 0; }

/* ---- Bloques v0.3: antetítulo, iconos, imagen+texto, pasos, tarjetas con imagen, logos, testimonios ---- */
.eyebrow { display: inline-block; margin: 0 0 .7em; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.icon { width: 1.5em; height: 1.5em; display: inline-block; vertical-align: middle; flex: none; }
.icon-sm { width: 1.05em; height: 1.05em; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-size: 1.5rem; }
a.feature { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.feature .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--accent-text); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-noimg { grid-template-columns: 1fr; max-width: 760px; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
.checklist ul { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.step-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 14px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); margin: 0; }
.media-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
a.media-card:hover { transform: translateY(-3px); }
.media-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.media-card-img img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.block-logos { border-block: 1px solid var(--border); }
.logos-title { text-align: center; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 64px); }
.logos img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos a:hover img, .logos img:hover { filter: none; opacity: 1; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonials.single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.6; }
.testimonial blockquote p::before { content: "“"; color: var(--accent); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { border-radius: 50%; object-fit: cover; }
.testimonial figcaption small { display: block; color: var(--muted); }
.form .check { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; font-size: .92rem; min-height: 44px; }
.form .check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent-text); }
/* Rejillas equilibradas: 4 elementos → 4 columnas (2 en tablet); 2 elementos → 2 columnas */
@media (min-width: 1000px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* Selector de idioma */
.lang-switch { display: flex; gap: 0; align-items: center; margin-left: auto; flex: none; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 38px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); background: var(--bg-soft); }
.lang-switch a.active { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.site-header .lang-switch + .nav-toggle { margin-left: 8px; }

/* ---------- Horario ---------- */
.hours-card { padding: clamp(20px, 4vw, 32px); }
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.hours-head h2 { margin: 0; }
.hours-now { font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.hours-now.is-open { background: color-mix(in srgb, #16a34a 14%, var(--bg)); color: #166534; }
.hours-now.is-closed { background: color-mix(in srgb, #dc2626 12%, var(--bg)); color: #991b1b; }
.hours-list { margin: 0; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.hours-row:last-child { border-bottom: 0; }
.hours-row dt { font-weight: 600; }
.hours-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-note { margin: 12px 0 0; font-size: .95rem; }

/* ---------- Carta / precios ---------- */
.price-group + .price-group { margin-top: clamp(24px, 4vw, 40px); }
.price-section { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin: 0 0 12px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.price-item:last-child { border-bottom: 0; }
.price-line { display: flex; align-items: baseline; gap: 10px; }
.price-name { font-weight: 600; }
.price-dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--muted) 45%, transparent); transform: translateY(-4px); min-width: 24px; }
.price-value { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-desc { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.price-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); vertical-align: middle; }
.price-note { margin-top: 16px; font-size: .9rem; }

/* ---------- Escuchar (audio de la página) ---------- */
.listen { display: grid; gap: 10px; padding: 14px 18px; margin: 8px 0 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card, #fff); }
.listen-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.listen-icon { color: var(--accent); flex: none; }
.listen-duration { margin-left: auto; font-weight: 500; font-size: .9rem; color: var(--muted); }
.listen-audio { width: 100%; height: 40px; }
.listen-transcript summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 600; font-size: .95rem; }
.listen-transcript .prose { margin-top: 10px; font-size: .95rem; }
.block-listen + .section, .block-listen + .section-tight { padding-top: 0; }
/* Galería con vídeos */
.gallery-video { margin: 0; }
.gallery-video video { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: inherit; background: #000; display: block; }
.gallery-video .video-embed { aspect-ratio: 4 / 3; }

/* ---------- Accesibilidad y táctil ---------- */
.plain a { display: inline-block; padding-block: 2px; }
@media (max-width: 760px), (pointer: coarse) {
  .plain a, .footer-bottom a, .back, .pagination a { display: inline-flex; align-items: center; min-height: 44px; }
  .plain li { margin-bottom: 0; }
  .tag { padding-block: 10px; }
  .copy-btn { min-height: 44px; }
}
@media (forced-colors: active) {
  .btn, .nav-toggle, .tag, .chip { border: 1px solid ButtonText; }
  .hero-text h1 { background: none; color: CanvasText; }
}

/* ---------- Impresión ---------- */
@media print {
  :root { --bg: #fff; --bg-soft: #fff; --text: #000; --muted: #333; --accent-text: #000; }
  body { font-size: 11pt; line-height: 1.5; background: #fff; color: #000; }
  .site-header, .site-nav, .nav-toggle, .lang-switch, .skip, .hero-media, .actions, .cta, .copy-btn, .listen, .audio-card, .media-video, .video-embed, .form, .pagination, [class*="uwc"] { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .section-tight, .hero { padding: 14pt 0; background: none; border: 0; }
  .card, .feature, .step, .testimonial, .audio-card, .hours-card, .stats { box-shadow: none; border: 1px solid #999; break-inside: avoid; background: #fff; }
  .hero-text h1 { background: none; color: #000; -webkit-text-fill-color: #000; }
  h1, h2, h3 { break-after: avoid; color: #000; }
  img, figure, .card, .faq details { break-inside: avoid; max-width: 100% !important; }
  .faq details > * { display: block; }
  .faq details:not([open]) .prose { display: block; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after, .site-footer a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .site-footer { border-top: 1px solid #999; background: #fff; margin: 0; }
  .codeblock pre, .prose pre { white-space: pre-wrap; overflow: visible; background: #fff; color: #000; border: 1px solid #999; }
}

.more a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 480px) { .lang-switch a { min-width: 34px; padding-inline: 5px; } }

/* Galería equilibrada: 6 y 9 fotos en 3 columnas, 4 en 4 (2 en tablet), 2 en 2: sin filas huérfanas */
@media (min-width: 700px) {
  .gallery:has(> :nth-child(6):last-child), .gallery:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, 1fr); }
  .gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) and (max-width: 999px) { .gallery:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
