/* ============================================================
   TICKET VISIT — Sistema de marca compartido
   Estático, sin dependencias. Copiar a /assets/css/ de cada site.
   ============================================================ */

:root {
  --tv-primary: #1B3A5B;       /* azul noble institucional */
  --tv-primary-dark: #122A43;
  --tv-accent: #B58E45;        /* dorado (CTA premium) */
  --tv-accent-dark: #9A7836;
  --tv-ink: #1E2A36;
  --tv-muted: #5E6A75;
  --tv-bg: #FFFFFF;
  --tv-bg-soft: #F6F3EC;       /* marfil / pergamino */
  --tv-border: #E5E0D4;
  --tv-star: #C9A24A;
  --tv-radius: 14px;
  --tv-shadow: 0 6px 24px rgba(16, 42, 67, .10);
  --tv-shadow-lg: 0 14px 40px rgba(16, 42, 67, .16);
  --tv-max: 1140px;
  --tv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--tv-font);
  color: var(--tv-ink);
  background: var(--tv-bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tv-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", "Playfair Display", serif; line-height: 1.2; color: var(--tv-ink); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--tv-max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--tv-bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--tv-muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Botones / CTA */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--cta { background: var(--tv-accent); color: #1B2A3A; box-shadow: var(--tv-shadow); }
.btn--cta:hover { background: var(--tv-accent-dark); color: #fff; box-shadow: var(--tv-shadow-lg); }
.btn--ghost { background: #fff; color: var(--tv-primary); border-color: var(--tv-border); }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--tv-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--tv-ink); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__by { font-weight: 600; color: var(--tv-muted); font-size: .82rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--tv-ink); font-weight: 600; font-size: .95rem; }
.nav__lang { color: var(--tv-muted); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { position: relative; color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,42,67,.55) 0%, rgba(10,42,67,.78) 100%); }
.hero__inner { padding: 96px 0 80px; max-width: 760px; }
.hero h1, .hero p { color: #fff; }
.hero .lead { color: rgba(255,255,255,.92); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rating .stars { color: var(--tv-star); letter-spacing: 1px; }

/* Tarjetas de actividad (CTA Civitatis) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--tv-border); border-radius: var(--tv-radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--tv-shadow); }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; background: var(--tv-bg-soft); }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .78rem; font-weight: 700; color: var(--tv-accent-dark); text-transform: uppercase; letter-spacing: .04em; }
.card h3 { margin: 6px 0 8px; }
.card p { font-size: .95rem; color: var(--tv-muted); }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 16px; }
.card__price { font-weight: 800; font-size: 1.15rem; }
.card__price small { font-weight: 600; color: var(--tv-muted); font-size: .8rem; }
.card .btn { margin-top: auto; }

/* Bloques de info */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--tv-primary); font-weight: 800; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--tv-border); }
.info-table th { width: 40%; color: var(--tv-muted); font-weight: 600; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--tv-border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--tv-accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }

/* Aviso "no oficial" */
.disclaimer { background: #FFF7ED; border: 1px solid #FCD9A8; color: #7A4E12;
  border-radius: 12px; padding: 16px 18px; font-size: .92rem; }
.disclaimer strong { color: #7A4E12; }

/* Footer */
.site-footer { background: #0C2233; color: #C7D2DD; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #C7D2DD; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; color: #8FA1B0; font-size: .85rem; }

/* Sticky CTA móvil */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--tv-border); padding: 10px 14px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--tv-border);
    box-shadow: var(--tv-shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--tv-border); }
  .nav-toggle { display: block; }
  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* ===== Logo institucional + marca (v2) ===== */
:root { --tv-gold: #B58E45; }
.brand { gap: 11px; align-items: center; }
.brand:hover { text-decoration: none; }
.brand__crest { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.05rem; color: var(--tv-primary); letter-spacing: .01em; }
.brand__sub { font-size: .64rem; color: var(--tv-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .brand__title { color: #fff; }
.site-footer .brand__sub { color: #8FA1B0; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

/* Selector de idioma */
.nav__langs { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .9rem; }
.nav__langs a { color: var(--tv-muted); }
.nav__langs a.is-active { color: var(--tv-primary); text-decoration: underline; }

/* Badge de confianza (colabora con Civitatis) */
.trust-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--tv-muted); }
.trust-badge svg { color: var(--tv-gold); }
.hero .trust-badge { color: rgba(255,255,255,.9); }

/* Línea legal discreta del footer */
.footer-note { font-size: .8rem; color: #8093A2; }

@media (max-width: 860px) { .brand__sub { display: none; } }

/* ===== Galería + ajustes v3 (paleta institucional) ===== */
.brand__title { font-size: 1.08rem; }
.footer-brand .brand__crest { width: 40px; height: 40px; }

/* Cabecera con filete dorado para aire institucional */
.site-header { border-bottom: 1px solid var(--tv-border); box-shadow: 0 2px 0 0 rgba(181,142,69,.25); }
.hero::after { background: linear-gradient(180deg, rgba(18,32,48,.55) 0%, rgba(18,32,48,.82) 100%); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--tv-radius); overflow: hidden; box-shadow: var(--tv-shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; display: block; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(180deg, rgba(18,32,48,0) 0%, rgba(18,32,48,.78) 100%); }

@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ===== Páginas de contenido (guías) ===== */
.breadcrumb { font-size: .85rem; color: var(--tv-muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--tv-muted); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--tv-radius); margin: 1.3em 0; box-shadow: var(--tv-shadow); }
.cta-box { background: var(--tv-bg-soft); border: 1px solid var(--tv-border); border-left: 4px solid var(--tv-accent);
  border-radius: var(--tv-radius); padding: 22px 24px; margin: 30px 0; }
.cta-box h3 { margin: 0 0 8px; }
.cta-box p { margin: 0 0 14px; color: var(--tv-muted); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.related a { display: block; padding: 16px 18px; border: 1px solid var(--tv-border); border-radius: 12px;
  background: #fff; font-weight: 700; color: var(--tv-primary); box-shadow: var(--tv-shadow); }
.related a:hover { text-decoration: none; transform: translateY(-2px); }
.related small { display: block; font-weight: 500; color: var(--tv-muted); margin-top: 4px; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

/* ===== Menú superior pro (v4) ===== */
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--tv-primary); border-bottom-color: var(--tv-accent); text-decoration: none; }
.nav a.is-current { color: var(--tv-primary); border-bottom-color: var(--tv-accent); }
.nav__langs { border-left: 1px solid var(--tv-border); padding-left: 16px; margin-left: 4px; }
.nav__langs a { border: 0; padding: 0 2px; }
.nav__langs a.is-active { color: var(--tv-primary); }
@media (max-width: 860px) {
  .nav a { border-bottom: 1px solid var(--tv-border); padding: 12px 0; }
  .nav a.is-current { color: var(--tv-primary); }
  .nav__langs { border-left: 0; padding-left: 0; margin-left: 0; display: flex; gap: 16px; }
}

/* ===== Trust band (banda de confianza) ===== */
.trust-band { background: var(--tv-primary); color: #fff; }
.trust-band .container { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .98rem; }
.trust-item svg { color: var(--tv-gold); flex: none; }
@media (max-width: 760px) { .trust-band .container { flex-direction: column; gap: 14px; align-items: flex-start; } }

/* ===== Formulario + Opiniones (v5) ===== */
.form { display: grid; gap: 16px; max-width: 660px; }
.form-row { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--tv-border);
  border-radius: 10px; background: #fff; width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--tv-primary); border-color: var(--tv-primary); }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form small { color: var(--tv-muted); }
@media (max-width: 600px) { .form .grid2 { grid-template-columns: 1fr; } }

.score-badge { display: inline-flex; align-items: center; gap: 14px; background: var(--tv-bg-soft);
  border: 1px solid var(--tv-border); border-radius: 14px; padding: 16px 22px; }
.score-badge b { font-size: 2rem; color: var(--tv-primary); line-height: 1; font-family: Georgia, serif; }
.score-badge .stars { color: var(--tv-star); font-size: 1.1rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.review { background: #fff; border: 1px solid var(--tv-border); border-radius: var(--tv-radius); padding: 20px; box-shadow: var(--tv-shadow); }
.review .stars { color: var(--tv-star); letter-spacing: 1px; }
.review p { font-style: italic; margin: 8px 0 0; }
.review cite { display: block; margin-top: 12px; font-weight: 700; font-style: normal; color: var(--tv-muted); font-size: .9rem; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* ===== Avatares de reseñas (v6) ===== */
.reviews-agg { text-align: center; margin-bottom: 20px; }
.reviews-agg b { font-family: Georgia, serif; font-size: 2.6rem; color: var(--tv-ink); line-height: 1; }
.reviews-agg .stars { color: var(--tv-star); font-size: 1.2rem; display: block; margin: 4px 0 2px; }
.reviews-agg small { color: var(--tv-muted); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--tv-bg-soft); border: 2px solid var(--tv-gold); }
.review__name { font-weight: 700; color: var(--tv-ink); }
.review__head .stars { color: var(--tv-star); letter-spacing: 1px; font-size: .95rem; }
.reviews--two { grid-template-columns: 1fr 1fr; max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .reviews--two { grid-template-columns: 1fr; } }

/* ===== Bloque "Reserva con confianza" (v7) ===== */
:root { --tv-red: #D81E34; --tv-green: #2E9E5B; }
.confianza .accent { color: var(--tv-red); }
.trust-card { background: #fff; border: 1px solid var(--tv-border); border-radius: 18px; box-shadow: var(--tv-shadow-lg);
  max-width: 980px; margin: 30px auto 0; display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 0; align-items: stretch; overflow: hidden; }
.trust-card__score { text-align: center; padding: 34px 30px; display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--tv-border); }
.trust-card__score .num { font-family: Georgia, serif; font-weight: 700; font-size: 3.4rem; color: var(--tv-red); line-height: 1; }
.trust-card__score .num small { font-size: 1.3rem; color: var(--tv-muted); font-weight: 400; }
.trust-card__score .stars { color: var(--tv-star); font-size: 1.25rem; display: block; margin: 8px 0 10px; letter-spacing: 2px; }
.trust-card__score p { font-size: .9rem; color: var(--tv-muted); margin: 0; }
.trust-list { list-style: none; margin: 0; padding: 34px 36px; display: grid; gap: 16px; align-content: center; text-align: left; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.trust-list svg { color: var(--tv-green); flex: none; }
.confianza .deja { font-weight: 500; }
.confianza .deja a { color: var(--tv-red); font-weight: 700; }
@media (max-width: 760px) {
  .trust-card { grid-template-columns: 1fr; }
  .trust-card__score { border-right: 0; border-bottom: 1px solid var(--tv-border); padding: 26px; }
  .trust-list { padding: 26px; }
}

/* ===== Logo line-art: en footer oscuro, mostrarlo en blanco (v8) ===== */
.site-footer .brand__crest { filter: brightness(0) invert(1); }

/* ===== Mapa embebido + ruta/itinerario (v9) ===== */
.map-embed { position: relative; border-radius: var(--tv-radius); overflow: hidden; box-shadow: var(--tv-shadow); border: 1px solid var(--tv-border); margin: 24px 0; }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }
.route { list-style: none; counter-reset: step; padding: 0; margin: 26px 0; }
.route li { position: relative; padding: 0 0 24px 30px; border-left: 2px solid var(--tv-border); margin-left: 15px; }
.route li:last-child { border-left-color: transparent; padding-bottom: 0; }
.route li::before { counter-increment: step; content: counter(step); position: absolute; left: -16px; top: -4px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--tv-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: Georgia, serif; font-size: .95rem; }
.route li strong { display: block; color: var(--tv-ink); margin-bottom: 2px; }
.route li span { color: var(--tv-muted); }

/* Banner de cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 1100px; margin: 0 auto; background: var(--tv-bg); border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius); box-shadow: var(--tv-shadow-lg); padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  animation: cookie-up .35s ease; }
@keyframes cookie-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-bar__txt { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--tv-ink); flex: 1 1 320px; }
.cookie-bar__txt a { color: var(--tv-primary); font-weight: 600; }
.cookie-bar__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-bar .btn { padding: 9px 20px; font-size: .9rem; }
@media (max-width: 540px) { .cookie-bar { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cookie-bar__btns { justify-content: flex-end; } }

/* Widget de Civitatis (precios en vivo) */
.civitatis-block { margin: 30px 0 8px; }
.civitatis-block h2 { margin-bottom: 4px; }
.civitatis-block .muted-note { color: var(--tv-muted); font-size: .9rem; margin: 0 0 14px; }
.civitatis-widget { min-height: 140px; display: flex; align-items: center; justify-content: center; }
.civitatis-iframe { width: 100%; border: 0; max-width: 100%; }

/* Auditoría: accesibilidad + contraste AA + utilidades */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--tv-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; text-decoration: none; }
.skip-link:focus { left: 0; }
.btn:focus-visible, .nav a:focus-visible, .card a:focus-visible, .related a:focus-visible,
.breadcrumb a:focus-visible, .footer-legal a:focus-visible, .cookie-bar a:focus-visible {
  outline: 2px solid var(--tv-accent); outline-offset: 3px; border-radius: 4px; }
.card__tag { color: #7A6620; }
.site-footer .footer-note { color: #AFC0CE; }
.site-footer .footer-note a { color: #DCE8F1; }
.btn--sm { padding: 7px 14px; font-size: .85rem; }
.cmp-cta { white-space: nowrap; }
