/* =====================================================================
   Visita Vallarta .mx — "Guía de bolsillo" (2026-11-11)
   Se carga DESPUÉS de style.css y del CSS de página. Reglas en DESIGN.md.
   Un color por capítulo (--ch), tapa roja, página blanca, Archivo + Literata.
   ===================================================================== */

:root {
  --paper: #ffffff;
  --wash: #f2f4f5;
  --ink: #1a1e21;
  --ink-2: #4b5459;
  --rule: #d5dadd;
  --cover: #b3261a;
  --cover-dark: #8f1d13;
  --wa: #128c4b;
  --f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-read: 'Literata', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Colores de capítulo: fondo (--c), texto sobre el fondo (--c-on), tinta sobre blanco (--c-ink) */
.tab-tours   { --c: #b4500a; --c-on: #fff; --c-ink: #9a4307; }
.tab-beaches { --c: #0e6ba3; --c-on: #fff; --c-ink: #0b5c8d; }
.tab-food    { --c: #a3285f; --c-on: #fff; --c-ink: #92204f; }
.tab-weather { --c: #f0b90b; --c-on: #1a1e21; --c-ink: #7a5c00; }
.tab-blog    { --c: #4b3f8f; --c-on: #fff; --c-ink: #43387f; }
.tab-contact { --c: #1a1e21; --c-on: #fff; --c-ink: #1a1e21; }

body          { --ch: #b3261a; --ch-on: #fff; --ch-ink: #a02216; --ch-dark: #8f1d13; }
body.ch-tours   { --ch: #b4500a; --ch-ink: #9a4307; --ch-dark: #8f3f07; }
body.ch-beaches { --ch: #0e6ba3; --ch-ink: #0b5c8d; --ch-dark: #0a5480; }
body.ch-food    { --ch: #a3285f; --ch-ink: #92204f; --ch-dark: #821d4b; }
body.ch-weather { --ch: #f0b90b; --ch-on: #1a1e21; --ch-ink: #7a5c00; --ch-dark: #d9a600; }
body.ch-blog    { --ch: #4b3f8f; --ch-ink: #43387f; --ch-dark: #3b3172; }
body.ch-contact { --ch: #1a1e21; --ch-ink: #1a1e21; --ch-dark: #000; }

/* Los tokens viejos de style.css pasan a hablar el idioma nuevo */
body {
  --accent: var(--ch-ink);
  --accent-dark: var(--ink);
  --accent-light: var(--ch);
  --ocean-teal: var(--ch-ink);
  --gradient-warm: var(--ch);
  --gradient-ocean: var(--ch);
  --gradient-soft: var(--ch);
  --dark: var(--ink);
  --gray-900: var(--ink);
  --gray-700: var(--ink-2);
  --gray-500: #6b7479;
  --gray-300: var(--rule);
  --gray-100: var(--wash);
  --shadow-sm: none;
  --shadow-md: 0 6px 18px rgba(26, 30, 33, 0.10);
  --shadow-lg: 0 18px 44px rgba(26, 30, 33, 0.18);
  --radius: 4px;
  --radius-lg: 6px;
  --transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), transform .25s var(--ease), opacity .18s var(--ease);
  font-family: var(--f-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .tour-title, .blog-card h3, .blog-featured h2, .beach-guide-card h3,
.clima-prose h2, .clima-prose h3, .article-prose h2, .article-prose h3, .contact-form-title, .guide-cta h3 {
  font-family: var(--f-ui) !important;
  font-stretch: 85%;
  font-weight: 750;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }

::selection { background: var(--ch); color: var(--ch-on); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
a { text-underline-offset: 0.18em; }
html { scrollbar-color: var(--ink-2) var(--wash); }

.container { max-width: 1200px; }
.accent-gradient, .accent {
  background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important;
}

/* ---------- Botones: rectos, de un color, nombran su acción ---------- */
.btn {
  border-radius: 4px; font-family: var(--f-ui); font-weight: 650; font-size: 15px; letter-spacing: 0;
  padding: 13px 22px; border: 2px solid transparent; box-shadow: none !important;
}
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ch-ink); color: #fff; }
body.ch-contact .btn-primary:hover { background: var(--cover); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-outline-white { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline-white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline-accent { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline-accent:hover { background: var(--ink); color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #0e733d; color: #fff; }

/* =====================================================================
   ENCABEZADO: el lomo con pestañas de capítulo
   ===================================================================== */
.site-header {
  position: sticky; top: 0; background: var(--paper); box-shadow: none;
  border-bottom: 4px solid var(--ch); transition: none;
}
.site-header.scrolled { background: var(--paper); backdrop-filter: none; box-shadow: none; }
.header-inner { padding: 0 24px; align-items: stretch; min-height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; padding: 8px 0; }
.logo img, .site-header.scrolled .logo img { height: 48px; }

.main-nav { gap: 18px; align-items: stretch; }
.main-nav ul { gap: 2px; align-items: flex-end; }
.main-nav ul li { display: flex; }
.main-nav ul a {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px; margin-top: 14px;
  font-size: 15px; font-weight: 600; font-stretch: 92%; color: var(--ink);
  border-radius: 5px 5px 0 0; white-space: nowrap;
}
.main-nav ul a::before {
  content: ''; position: static; width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none;
  transition: transform .25s var(--ease);
}
.main-nav ul a::after { display: none; }
.main-nav ul a:hover { color: var(--c-ink); background: var(--wash); }
.main-nav ul a:hover::before { transform: scale(1.35); }
.main-nav ul a.active { background: var(--c); color: var(--c-on); }
.main-nav ul a.active::before { background: var(--c-on); }
.main-nav .nav-cta {
  align-self: center; padding: 10px 16px; font-size: 14px; background: var(--cover); color: #fff;
}
.main-nav .nav-cta:hover { background: var(--ink); }

.lang-switch { align-self: center; display: flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; padding: 0; gap: 0; }
.lang-switch .lang-sep { display: none; }
.lang-switch a { padding: 5px 9px; font-size: 13px; font-weight: 700; color: var(--ink); opacity: 1; }
.lang-switch a.active { background: var(--ink); color: #fff; }
.lang-switch a:not(.active):hover { background: var(--wash); }

.hamburger { align-self: center; }
.hamburger span { background: var(--ink); }

/* Tira de capítulos: sólo cuando el menú completo no cabe */
.ch-strip { display: none; }
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { min-height: 58px; }
  .logo img, .site-header.scrolled .logo img { height: 40px; }
  .ch-strip {
    display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; scrollbar-width: none;
    align-items: flex-end; border-top: 1px solid var(--rule);
  }
  .ch-strip::-webkit-scrollbar { display: none; }
  .ch-strip a {
    flex: none; display: flex; align-items: center; gap: 7px; padding: 10px 11px 9px; margin-top: 5px;
    font-size: 14px; font-weight: 650; font-stretch: 90%; color: var(--ink); border-radius: 4px 4px 0 0; white-space: nowrap;
  }
  .ch-strip a::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
  .ch-strip a.active { background: var(--c); color: var(--c-on); }
  .ch-strip a.active::before { background: var(--c-on); }
}

/* Menú móvil (cajón) */
.mobile-menu { background: var(--paper); color: var(--ink); }
.mobile-menu ul a { color: var(--ink); font-family: var(--f-ui); font-weight: 700; font-stretch: 85%; }
.mobile-menu ul a.btn { color: #fff; background: var(--cover); }
.mobile-close { color: var(--ink); }
.mobile-lang-switch a { color: var(--ink-2); font-weight: 700; }
.mobile-lang-switch a.active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.mobile-menu-info a { color: var(--ink-2); }

/* =====================================================================
   APERTURA DE CAPÍTULO (antes "page hero")
   ===================================================================== */
.page-hero, body .clima-hero {
  min-height: 0; padding: 0; display: block; color: var(--ch-on);
  background-color: var(--ch) !important;
  background-size: 44% 100% !important; background-position: right center !important; background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}
.page-hero-blog, .page-contact .page-hero-contact { background-image: none !important; }
.page-hero-beaches { background-image: url('/assets/img/playas/playa-los-muertos.jpg') !important; }
.page-hero-food { background-image: url('/assets/img/Restaurantes.jpg') !important; }
.page-hero-overlay, .page-contact .page-hero-overlay { display: none; }
.page-hero-content {
  text-align: left; max-width: 1200px; margin: 0 auto; padding: 56px 24px 60px; z-index: 2;
}
.page-hero-content > * { max-width: min(620px, 52%); }
.page-hero-blog .page-hero-content > *, .page-hero-contact .page-hero-content > * { max-width: 760px; }
.page-hero-content h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 0.98; font-stretch: 75%; font-weight: 800;
  margin: 0 0 18px; text-shadow: none; letter-spacing: -0.02em;
}
.page-hero-content p {
  font-family: var(--f-read); font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.55;
  margin: 0 0 4px; opacity: 1; max-width: min(560px, 50%);
}
.page-hero .hero-buttons { justify-content: flex-start; margin-top: 22px; gap: 10px; }
.page-hero .btn-primary { background: var(--ch-on); color: var(--ch); }
.page-hero .btn-primary:hover { background: var(--ink); color: #fff; }
body.ch-weather .page-hero .btn-primary { color: #fff; }
body.has-alert .page-hero { padding-top: 0; }

/* Clima: la foto es un <img> absoluto */
body .clima-hero { position: relative; overflow: hidden; background-image: none !important; }
body .clima-hero-img { inset: 0 0 0 auto; width: 44%; height: 100%; }
body .clima-crumbs { font-family: var(--f-ui); font-weight: 600; opacity: 1; margin-bottom: 14px; }
body .clima-crumbs a { color: inherit; text-decoration: underline; }

@media (max-width: 860px) {
  .page-hero, body .clima-hero { background-size: 100% 150px !important; background-position: center bottom !important; }
  .page-hero-content { padding: 32px 18px 182px; }
  .page-hero-blog .page-hero-content, .page-hero-contact .page-hero-content { padding-bottom: 34px; }
  .page-hero-content > *, .page-hero-content p { max-width: none; }
  body .clima-hero-img { inset: auto 0 0 0; width: 100%; height: 150px; }
  .page-hero .hero-buttons { flex-direction: column; align-items: stretch; }
}

/* =====================================================================
   SECCIONES
   ===================================================================== */
.section { padding: 72px 0; background: var(--paper); }
.section-head, .guide-intro {
  text-align: left; max-width: none; margin: 0 0 30px; padding-top: 16px; border-top: 4px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end;
}
.section-head h2, .guide-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.04; font-stretch: 78%; font-weight: 800; margin: 0; color: var(--ink);
}
.section-head .lead, .guide-intro .lead, .guide-intro p, .section-head p {
  grid-column: 1 / -1; font-family: var(--f-read); font-size: 1.05rem; line-height: 1.6; color: var(--ink-2);
  max-width: 68ch; margin: 0; font-weight: 400;
}
.section-head .lead strong { font-weight: 400; }
.guide-intro a, .section-head p a { color: var(--ch-ink); text-decoration: underline; }
.section-more {
  font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; padding: 6px 0;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--ch);
}
.section-more:hover { color: var(--ch-ink); }
.section-more i { font-size: .8em; margin-left: 4px; transition: transform .25s var(--ease); }
.section-more:hover i { transform: translateX(4px); }
.section-cta-row { margin-top: 30px; text-align: left; }
@media (max-width: 768px) { .section { padding: 48px 0; } .section-head, .guide-intro { grid-template-columns: 1fr; } }

/* =====================================================================
   INICIO: portada + contenido
   ===================================================================== */
.cover { background: var(--cover); color: #fff; }
.cover-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0 24px; }
.cover-face { padding: 44px 40px 0 0; display: flex; flex-direction: column; }
.cover-face h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 0.93; font-stretch: 70%; font-weight: 850;
  letter-spacing: -0.022em; margin: 0 0 18px;
}
.cover-face p { font-family: var(--f-read); font-size: 1.1rem; line-height: 1.55; max-width: 34ch; margin: 0 0 28px; }
.cover-photo { margin: auto 0 0; }
.cover-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px 4px 0 0; }

.toc { background: var(--paper); color: var(--ink); padding: 36px 0 28px 40px; position: relative; }
.toc::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 50vw; background: var(--paper); }
.toc h2 {
  font-size: 14px; font-stretch: 100%; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.toc li { border-top: 1px solid var(--rule); }
.toc li:last-child { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: 14px minmax(7.5rem, auto) minmax(0, 1fr) auto 18px; gap: 4px 16px;
  align-items: center; padding: 15px 14px 15px 0; color: var(--ink);
}
.toc a::before {
  content: ''; width: 14px; height: 30px; border-radius: 0 3px 3px 0; background: var(--c);
  transition: width .3s var(--ease);
}
.toc-name { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; font-stretch: 78%; line-height: 1.05; }
.toc-what { font-family: var(--f-read); font-size: .98rem; line-height: 1.4; color: var(--ink-2); }
.toc-count { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.toc a i { font-size: 13px; color: var(--ink-2); transition: transform .3s var(--ease), color .2s; grid-column: 5; }
.toc a:hover, .toc a:focus-visible { background: var(--wash); }
.toc a:hover .toc-name { color: var(--c-ink); }
.toc a:hover::before { width: 22px; }
.toc a:hover i { transform: translateX(5px); color: var(--c-ink); }

@media (max-width: 960px) {
  .cover-inner { grid-template-columns: 1fr; padding: 0; }
  .cover-face { padding: 30px 18px 0; }
  .cover-face p { max-width: none; margin-bottom: 22px; }
  .cover-photo img { aspect-ratio: 2 / 1; border-radius: 0; }
  .cover-photo { margin: 0 -18px; }
  .toc { padding: 24px 18px 8px; }
  .toc::after { display: none; }
  .toc a { grid-template-columns: 12px minmax(0, 1fr) 16px; padding: 13px 4px 13px 0; }
  .toc a::before { width: 12px; height: 100%; min-height: 34px; grid-row: 1 / span 3; }
  .toc-name, .toc-what, .toc-count { grid-column: 2; }
  .toc a i { grid-column: 3; grid-row: 1 / span 3; }
}

/* Lista de entradas (últimas guías) */
.entry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.entry-list li { border-bottom: 1px solid var(--rule); }
.entry-list a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 16px 0; align-items: start; color: var(--ink); }
.entry-list img { width: 116px; height: 87px; object-fit: cover; border-radius: 3px; background: var(--wash); }
.entry-body { display: flex; flex-direction: column; gap: 4px; }
.entry-cat { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #43387f; }
.entry-title { font-size: 1.14rem; font-weight: 700; font-stretch: 88%; line-height: 1.22; }
.entry-meta { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.entry-list a:hover .entry-title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #4b3f8f; }
@media (max-width: 860px) { .entry-list { grid-template-columns: 1fr; } .entry-list a { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; } .entry-list img { width: 92px; height: 69px; } }

/* =====================================================================
   TOURS: fichas
   ===================================================================== */
.section-tours, .section-tours-all, .section-why, .section-guide-list, .section-blog, .section-contact-form { background: var(--paper); }
.tours-grid { gap: 28px 24px; }
.tour-card {
  border-radius: 0; box-shadow: none; border: 0; background: var(--paper); overflow: visible;
  border-top: 4px solid #b4500a; padding-top: 0; display: flex; flex-direction: column;
}
.tour-card:hover { transform: none; box-shadow: none; }
.tour-image { border-radius: 0 0 3px 3px; overflow: hidden; height: auto; aspect-ratio: 4 / 3; }
.tour-image img { transition: transform .6s var(--ease); height: 100%; width: 100%; object-fit: cover; }
.tour-card:hover .tour-image img { transform: scale(1.04); }
.tour-category {
  left: 0; bottom: 0; top: auto; border-radius: 0 3px 0 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .06em; padding: 6px 10px; backdrop-filter: none;
}
.tour-discount { border-radius: 3px; background: var(--ink); color: #fff; box-shadow: none; font-weight: 700; }
.tour-body { padding: 14px 0 0; display: flex; flex-direction: column; flex: 1; }
.tour-meta { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.tour-meta i { color: #9a4307; }
.tour-title { font-size: 1.32rem; line-height: 1.12; font-stretch: 82%; margin-bottom: 8px; color: var(--ink); }
.tour-excerpt { font-family: var(--f-read); font-size: .97rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 14px; }
.tour-footer { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: auto; }
.price-now { font-family: var(--f-ui); font-weight: 800; font-stretch: 85%; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-old { color: var(--ink-2); }
.tour-quick-view { border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: none; font-weight: 700; }

.tours-discount-strip { background: var(--ink); color: #fff; }
.tours-discount-strip .badge { border-radius: 3px; background: #f0b90b; color: var(--ink); }
.tours-filter { border-radius: 4px; box-shadow: none; border: 1px solid var(--rule); background: var(--paper); }
.filter-btn { border-radius: 4px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); font-weight: 650; box-shadow: none; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.filter-btn.active .filter-count { background: #fff; color: var(--ink); }
.filter-count { border-radius: 3px; font-variant-numeric: tabular-nums; }
.tours-sort select { border-radius: 4px; border: 1.5px solid var(--rule); font-family: var(--f-ui); }

.why-grid { gap: 0; border-top: 1px solid var(--rule); }
.why-item {
  background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none; text-align: left;
  padding: 22px 28px 22px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 14px;
}
.why-item:hover { transform: none; box-shadow: none; }
.why-icon { width: auto; height: auto; background: none; border-radius: 0; color: var(--ch-ink); font-size: 20px; margin: 2px 0 0; box-shadow: none; grid-row: span 2; justify-content: flex-start; }
.why-item h3 { font-size: 1.12rem; margin: 0; }
.why-item p { font-family: var(--f-read); font-size: .96rem; color: var(--ink-2); margin: 0; }
.section-why { background: var(--wash); }

/* =====================================================================
   PLAYAS / COMIDA: leyenda numerada
   ===================================================================== */
.guide-grid { gap: 0 40px; }
.guide-card {
  background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none;
  padding: 18px 0 18px 38px; position: relative; overflow: visible;
}
.guide-card:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.guide-card-num {
  position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--ch); color: var(--ch-on);
  font-family: var(--f-ui); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
  box-shadow: none; border: 0; font-variant-numeric: tabular-nums;
}
.guide-card-thumb { border-radius: 3px; background: var(--wash); }
.guide-card-icon { background: var(--wash); border-radius: 3px; }
.guide-card-header h3 { font-size: 1.18rem; line-height: 1.15; color: var(--ink); }
.guide-card-body p { font-family: var(--f-read); font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.guide-tag {
  background: none; color: var(--ch-ink); border: 1.5px solid currentColor; border-radius: 3px; font-family: var(--f-ui);
  font-weight: 700; font-size: 11px; letter-spacing: .06em; padding: 2px 6px;
}
.guide-card-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ch); text-decoration-thickness: 2px; }
.guide-card-link:hover { color: var(--ch-ink); transform: none; }
.guide-section-divider { border-color: var(--ink); }

.beach-guides-grid { gap: 0 40px; }
.beach-guide-card {
  border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 18px 0; background: none;
}
.beach-guide-card:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.beach-guide-card h3 { font-size: 1.14rem; line-height: 1.2; font-stretch: 88%; color: var(--ink); margin-bottom: 6px; }
.beach-guide-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--ch); }
.beach-guide-card p { font-family: var(--f-read); font-size: .95rem; color: var(--ink-2); margin-bottom: 8px; }
.beach-guide-meta { color: var(--ink-2); font-size: 13px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

.guide-cta {
  background: var(--wash); color: var(--ink); border-radius: 0; box-shadow: none; text-align: left; padding: 30px 32px;
  border-top: 4px solid #b4500a; margin-top: 56px;
}
.guide-cta h3 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; }
.guide-cta p { font-family: var(--f-read); color: var(--ink-2); max-width: 62ch; margin: 0 0 18px; opacity: 1; }
.guide-cta .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide-cta .btn-primary:hover { background: #9a4307; border-color: #9a4307; }

/* =====================================================================
   BLOG (índice) y ARTÍCULO
   ===================================================================== */
.blog-featured, .blog-card, .sidebar-tours, .sidebar-contact, .ad-banner, .contact-form-box { box-shadow: none !important; }
.sidebar-contact, .ad-banner { border-radius: 4px !important; }
.blog-featured { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0 !important; padding-bottom: 28px; background: none; }
.blog-featured-img, .blog-card-img { border-radius: 3px; overflow: hidden; }
.blog-featured h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; font-stretch: 80%; }
.blog-featured p, .blog-card p { font-family: var(--f-read); color: var(--ink-2); }
.blog-card { border: 0; border-top: 4px solid var(--ch); border-radius: 0 !important; background: none; }
.blog-card:hover { transform: none; }
.blog-card-body { padding: 14px 0 0; }
.blog-card h3 { font-size: 1.2rem; line-height: 1.18; font-stretch: 86%; }
.blog-card h3 a:hover, .blog-featured h2 a:hover { color: var(--ch-ink); }
.blog-cat {
  border-radius: 0 3px 0 0; background: var(--paper); color: var(--ink); font-family: var(--f-ui); font-weight: 700;
  letter-spacing: .06em; left: 0; bottom: 0; top: auto; box-shadow: none; backdrop-filter: none;
}
.blog-meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sidebar-tours, .sidebar-contact { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.sidebar-tours { border-top: 4px solid #b4500a; border-radius: 0; }
.sidebar-contact { background: var(--wash); border-color: var(--wash); }
.sidebar-contact h4, .sidebar-contact p, .sidebar-contact i { color: var(--ink) !important; }
.sidebar-contact .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.sidebar-tour-list i { color: #9a4307; }
.ad-placeholder { border-radius: 4px; }

.article-hero { min-height: 0; background-color: var(--ch); background-size: 0 0; display: block; color: var(--ch-on); }
.article-hero::after { display: none; }
.article-hero .container { padding-top: 36px; padding-bottom: 40px; }
body.has-alert .article-hero .container { padding-top: 36px; }
.article-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.0; font-stretch: 76%; font-weight: 800; text-shadow: none; max-width: 21ch;
}
.article-hero .article-meta { font-family: var(--f-ui); font-weight: 600; opacity: 1; font-variant-numeric: tabular-nums; }
.article-back { font-weight: 700; opacity: 1; text-decoration: underline; }
.article-prose, body .clima-prose {
  font-family: var(--f-read); font-size: 1.12rem; line-height: 1.72; color: var(--ink); max-width: 68ch;
}
.article-prose h2, body .clima-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; font-stretch: 80%; color: var(--ink);
  margin: 2.1em 0 .55em; padding-top: 14px; border-top: 4px solid var(--ink);
}
.article-prose h3, body .clima-prose h3 { font-size: 1.24rem; line-height: 1.2; color: var(--ink); margin: 1.7em 0 .4em; }
.article-prose a, body .clima-prose a { color: var(--ch-ink); text-decoration: underline; text-decoration-thickness: 1.5px; font-weight: 600; }
.article-prose a:hover, body .clima-prose a:hover { color: var(--ink); }
.article-prose img, .article-prose figure img { border-radius: 3px; }
.article-prose figcaption { font-family: var(--f-ui); font-size: .88rem; color: var(--ink-2); margin-top: 8px; }
.article-prose li::marker { color: var(--ch-ink); font-weight: 700; }
.article-prose table, body .clima-prose table { font-family: var(--f-ui); font-size: .95rem; font-variant-numeric: tabular-nums; border-collapse: collapse; }
.article-prose th, body .clima-prose th { background: var(--ink); color: #fff; text-align: left; }
.article-prose th, .article-prose td, body .clima-prose th, body .clima-prose td { border: 1px solid var(--rule); padding: 9px 12px; }
.article-cta { background: var(--wash); color: var(--ink); border-radius: 0; border-top: 4px solid #b4500a; box-shadow: none; text-align: left; }
.article-cta h3, .article-cta p { color: var(--ink); }
.article-cta .btn { background: var(--ink); color: #fff; border-color: var(--ink); }

body .clima-answer { border-radius: 0; background: var(--wash); border: 0; border-top: 4px solid var(--ch); box-shadow: none; }
body .clima-toc { border-radius: 4px; background: var(--paper); border: 1px solid var(--rule); box-shadow: none; }
body .clima-toc a { color: var(--ch-ink); }
body .clima-tour { border-radius: 4px; box-shadow: none; border: 1px solid var(--rule); }
body .clima-cta { border-radius: 0; background: var(--wash); color: var(--ink); border-top: 4px solid #b4500a; }
body .clima-faq details { border-radius: 4px; box-shadow: none; }

/* =====================================================================
   CONTACTO
   ===================================================================== */
.contact-form-box { border: 1px solid var(--rule); background: var(--paper); }
.contact-wa-primary { border-radius: 4px; box-shadow: none; }
.form-field input, .form-field select, .form-field textarea {
  border-radius: 4px; border: 1.5px solid #8a9398; font-family: var(--f-ui); background: var(--paper); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px #f0b90b; outline: none; }
.form-field label { font-weight: 650; color: var(--ink); }
.trust-item { border-radius: 4px; box-shadow: none; background: var(--wash); color: var(--ink); }
.trust-item i { color: var(--ink); }

/* =====================================================================
   CIERRE Y PIE: contraportada
   ===================================================================== */
.footer-cta { background: var(--wash); color: var(--ink); padding: 44px 0; border-top: 4px solid #b4500a; }
.footer-cta-inner { align-items: center; }
.footer-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 78%; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.footer-cta p { font-family: var(--f-read); color: var(--ink-2); opacity: 1; }
.footer-cta .btn-white { background: var(--ink); color: #fff; }
.footer-cta .btn-white:hover { background: #9a4307; }

.site-footer { background: var(--cover); color: #fff; padding: 52px 0 0; }
.footer-grid { gap: 40px; }
.footer-logo { background: #fff; padding: 8px 12px; border-radius: 4px; height: auto; width: 190px; filter: none; }
.footer-col p { color: #fff; opacity: 1; font-family: var(--f-read); font-size: .98rem; line-height: 1.55; }
.footer-col h4 { color: #fff; font-size: 14px; font-stretch: 100%; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.footer-col h4::after { display: none; }
.footer-list li, .footer-contact li { margin: 0; border-top: 1px solid rgba(255,255,255,.28); }
.footer-list a, .footer-contact a { color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; opacity: 1; }
.footer-list a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; padding-left: 0; transform: none; }
.footer-contact { list-style: none; margin: 18px 0 0; padding: 0; }
.footer-chapters a::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1.5px #fff; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.28); color: #fff; margin-top: 40px; padding: 18px 0; }
.footer-bottom p { color: #fff; opacity: 1; font-size: 14px; }
@media (max-width: 768px) {
  .footer-grid { text-align: left; }
  .footer-list li { justify-content: flex-start; }
  .footer-cta-inner { text-align: left; align-items: flex-start; }
}

/* =====================================================================
   Carrito, modal y botones flotantes (funcionales: sólo hablan el idioma nuevo)
   ===================================================================== */
.cart-drawer, .tour-modal { border-radius: 0; box-shadow: var(--shadow-lg); }
.tour-modal { border-radius: 6px; }
.cart-header { background: var(--ink); color: #fff; }
.modal-close { border-radius: 4px; box-shadow: none; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.cart-fab { background: var(--ink); box-shadow: 0 4px 14px rgba(26,30,33,.28); border-radius: 6px; }
.cart-fab-count { background: #f0b90b; color: var(--ink); }
.wa-fab { background: var(--wa); box-shadow: 0 4px 14px rgba(18,140,75,.35); border-radius: 6px; }
.wa-fab:hover { transform: none; background: #0e733d; box-shadow: 0 4px 14px rgba(18,140,75,.35); }

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

/* ---------- Ajustes tras la primera revisión ---------- */
.cover { overflow-x: clip; }
.cover-photo { flex: 1; min-height: 230px; position: relative; margin: 0; }
.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 62%; }
@media (max-width: 960px) { .cover-photo { flex: none; min-height: 0; height: 190px; margin: 0 -18px; } }

.tour-price .price-now, .price-now { color: var(--ink); }
.guide-card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-icon { align-self: start; align-items: flex-start; }
.section-why .container > p, .section-why p:last-child { text-align: left; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* Artículo: la portada vuelve, a la derecha de la apertura */
.article-hero { background-size: 40% 100%; background-position: right center; background-repeat: no-repeat; }
.article-hero .container > * { max-width: min(660px, 56%); }
.article-hero .blog-cat {
  position: static; display: inline-block; margin: 16px 0 0; border-radius: 3px; background: var(--ch-on); color: var(--ch);
  padding: 4px 9px; font-size: 12px;
}
@media (max-width: 860px) {
  .article-hero { background-size: 100% 170px; background-position: center bottom; }
  .article-hero .container { padding-top: 26px; padding-bottom: 196px; }
  .article-hero .container > * { max-width: none; }
}

/* ---------- Segunda revisión ---------- */
.modal-gallery, .modal-gallery-thumbs { background: var(--wash); }
.modal-gallery { display: flex; flex-direction: column; }
.modal-gallery-main { flex: 1; min-height: 300px; height: auto; }
.modal-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

/* Comida: sin emoji; la lista se lee como leyenda numerada o de entradas */
.guide-card-icon { display: none; }
.guide-card-bite { padding-left: 0; }
.guide-section-divider { text-align: left; }
.guide-section-divider h2, .guide-section-divider h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.04; font-stretch: 78%; font-weight: 800; text-align: left;
}

/* Blog: sin huecos de publicidad vacíos */
.ad-slot:has(.ad-placeholder) { display: none; }
.blog-featured-body { padding-left: 0; padding-right: 0; }

/* Contacto */
.contact-form-box { border-top: 4px solid var(--ink); border-radius: 0; }
.contact-form-box::before { display: none; }
.contact-wa-primary { background: var(--wash); border: 0; }

@media (max-width: 768px) {
  .wa-fab { width: 50px; height: 50px; right: 14px; bottom: 76px; font-size: 26px; }
  .cart-fab { width: 50px; height: 50px; right: 14px; bottom: 16px; }
}

/* El filete de 4 px va sobre cajas de esquina recta */
.guide-cta, .article-cta, body .clima-answer, body .clima-cta, .sidebar-tours, .tour-card, .contact-form-box, .blog-card { border-radius: 0 !important; }

/* =====================================================================
   Tanda de la revisión final (2026-11-11)
   ===================================================================== */
/* Idioma siempre a la vista en la barra móvil */
.lang-switch-bar { display: none; }
@media (max-width: 1100px) {
  .lang-switch-bar { display: flex; margin-left: auto; }
  .header-inner { gap: 12px; }
}

/* Un solo botón flotante en móvil; la brújula aparece cuando hay tours en la lista */
@media (max-width: 768px) {
  .wa-fab { width: 46px; height: 46px; right: 12px; bottom: 14px; font-size: 24px; }
  .cart-fab { width: 46px; height: 46px; right: 12px; bottom: 70px; }
  .cart-fab.is-empty { display: none; }
}

/* Extractos de tour completos, recortados a tres líneas */
.tour-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* Artículo: sin rótulo sobre el título */
.article-hero .blog-cat { display: none; }
.article-back { margin-bottom: 14px; }

/* Contacto: caja recta, filas en vez de mosaicos */
.contact-form-centered .contact-form-box, .page-contact .contact-form-box {
  border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 0; box-shadow: none; background: var(--paper);
}
.contact-form-centered .contact-form-box::before, .page-contact .contact-form-box::before { display: none; content: none; }
.contact-trust { display: block; border-top: 1px solid var(--rule); }
.trust-item {
  display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; background: none; border-radius: 0;
  border-bottom: 1px solid var(--rule); padding: 12px 0;
}
.trust-item i { font-size: 16px; width: 20px; text-align: center; margin: 0; }
.trust-item span { font-weight: 600; }

/* Clima: el widget del pronóstico habla el idioma de la guía */
.pvw {
  --pvw-accent: var(--ink); --pvw-ink: var(--ink); --pvw-line: var(--rule); --pvw-bg: var(--paper);
  border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--rule) !important; border-top: 4px solid #f0b90b !important;
  font-family: var(--f-ui); font-variant-numeric: tabular-nums;
}
.pvw-temp { color: var(--ink) !important; }
.pvw-stats li, .pvw-days li { border-radius: 3px !important; background: var(--wash) !important; }

/* Modal del tour */
.modal-cat {
  background: none; color: #9a4307; border: 1.5px solid currentColor; border-radius: 3px; font-family: var(--f-ui); font-weight: 700;
  font-size: 11px; letter-spacing: .06em; padding: 2px 6px;
}
.modal-info > p { font-family: var(--f-read); font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.modal-info h2 { font-size: 1.7rem; line-height: 1.08; }
.modal-gallery-thumbs:not(:has(img + img)) { display: none; }
.modal-price-box { border-radius: 4px; background: var(--wash); box-shadow: none; }

/* Restos del diseño anterior */
.section-why .container > p { font-family: var(--f-read); color: var(--ink-2); max-width: 68ch; margin: 22px 0 0; text-align: left; }
.section-why .container > p a { color: var(--ch-ink); text-decoration: underline; font-weight: 600; }
.sidebar-contact { text-align: left; }
.sidebar-contact > i, .sidebar-contact .sidebar-contact-icon { display: none; }
.footer-grid, .footer-grid-3 { grid-template-columns: 1.3fr 1fr 1fr; }
.footer-bottom { text-align: left; }
@media (max-width: 860px) { .footer-grid, .footer-grid-3 { grid-template-columns: 1fr; } }
.modal-info .modal-cat { background: none; border-radius: 3px; border: 1.5px solid currentColor; color: #9a4307; padding: 2px 6px; }

/* Segunda tanda de la revisión final */
.tour-excerpt { flex-grow: 0; max-height: 4.5em; }
.tour-footer { margin-top: auto; }
.why-item { grid-template-columns: 1fr; padding-right: 28px; }
.why-icon { display: none; }
.section-why .container > .lead { margin: 22px 0 0; text-align: left; font-size: 1.02rem; }
/* Móvil: WhatsApp pasa a una barra inferior propia, fuera de la columna de lectura */
@media (max-width: 768px) {
  body { padding-bottom: 48px; }
  .wa-fab {
    left: 0; right: 0; bottom: 0; width: auto; height: 48px; border-radius: 0; gap: 10px; font-size: 22px; box-shadow: none;
  }
  .wa-fab::after { content: 'WhatsApp'; font-family: var(--f-ui); font-weight: 700; font-size: 16px; }
  .cart-fab { bottom: 60px; }
}
