/* ==========================================================================
   GUÍA TURÍSTICA TOLEDO 2026 - ESTILOS MODERNOS Y RESPONSIVOS
   ========================================================================== */

:root {
  /* Paleta Imperial y Piedra Cálida */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  
  --color-primary: #852221;       /* Carmesí / Granate Imperial Toledano */
  --color-primary-dark: #631716;
  --color-primary-light: #fbeeed;
  
  --color-accent: #c28833;        /* Oro Viejo / Damasquinado */
  --color-accent-light: #fcf6eb;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-focus: #cbd5e1;
  
  /* Estados / Pills */
  --badge-free-bg: #ecfdf5;
  --badge-free-text: #065f46;
  --badge-free-border: #a7f3d0;
  
  --badge-tour-bg: #f5f3ff;
  --badge-tour-text: #5b21b6;
  --badge-tour-border: #ddd6fe;

  --badge-price-bg: #fffbeb;
  --badge-price-text: #92400e;
  --badge-price-border: #fde68a;

  --badge-warn-bg: #fef2f2;
  --badge-warn-text: #991b1b;
  --badge-warn-border: #fecaca;

  /* Sidebar Dimensiones */
  --sidebar-width: 290px;
  --topbar-height: 60px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor General */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   SIDEBAR (PANEL IZQUIERDO)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: #111827; /* Dark slate imperial */
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.sidebar-header {
  padding: 24px 20px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
}

.brand-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  background: rgba(194, 136, 51, 0.15);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  border: 1px solid rgba(194, 136, 51, 0.3);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* Navegación dentro del sidebar */
.sidebar-nav {
  padding: 16px 12px;
  flex-grow: 1;
}

.nav-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #64748b;
  padding: 14px 12px 6px 12px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: #1f2937;
  color: #ffffff;
}

.nav-item.active {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(133, 34, 33, 0.4);
}

.nav-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nav-text {
  flex-grow: 1;
}

.nav-tag, .nav-tag-free, .nav-tag-price, .nav-tag-tour {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
}

.nav-tag {
  background: #334155;
  color: #e2e8f0;
}

.nav-tag-free {
  background: #065f46;
  color: #a7f3d0;
}

.nav-tag-price {
  background: #92400e;
  color: #fde68a;
}

.nav-tag-tour {
  background: #5b21b6;
  color: #ddd6fe;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #1f2937;
}

.sidebar-info-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.info-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Overlay para móviles */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 95;
  backdrop-filter: blur(3px);
}

/* ==========================================================================
   PANEL DERECHO / CONTENIDO
   ========================================================================== */
.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  max-width: 100%;
}

/* Topbar en Móvil y Tablet */
.mobile-topbar {
  display: none;
  height: var(--topbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: var(--shadow-sm);
}

.menu-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-topbar-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.print-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.print-btn:hover {
  background: var(--border-color);
}

/* Contenedor Interior */
.content-wrapper {
  padding: 36px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Secciones */
.guide-section {
  margin-bottom: 64px;
  scroll-margin-top: 30px;
}

.section-header-block {
  margin-bottom: 24px;
}

.sub-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* Hero */
.hero-banner {
  background: linear-gradient(135deg, #111827 0%, #1e293b 60%, #312e81 100%);
  color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "TOLEDO";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 820px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Cronograma Sintético */
.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.timeline-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.summary-day-block {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.day-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.day-badge.day-1 {
  background: #e0e7ff;
  color: #3730a3;
}

.day-badge.day-2 {
  background: #fef3c7;
  color: #92400e;
}

.summary-list {
  list-style: none;
}

.summary-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   CARDS DE CONTENIDO Y MONUMENTOS
   ========================================================================== */
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-meta-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-pill.free {
  background: var(--badge-free-bg);
  color: var(--badge-free-text);
  border: 1px solid var(--badge-free-border);
}

.meta-pill.tour {
  background: var(--badge-tour-bg);
  color: var(--badge-tour-text);
  border: 1px solid var(--badge-tour-border);
}

.meta-pill.reserve {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.meta-pill.distance, .meta-pill.time, .meta-pill.diff, .meta-pill.walk, .meta-pill.duration, .meta-pill.price, .meta-pill.access {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid #e2e8f0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  padding: 28px;
}

.content-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.feature-bullets {
  list-style: none;
  margin: 16px 0;
}

.feature-bullets li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
  top: -2px;
}

.monument-item {
  background: var(--bg-surface-alt);
  border-left: 3px solid var(--color-primary);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
}

.monument-item h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.monument-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Columna lateral de tarjetas */
.content-side-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.side-box-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.parking-option-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.parking-option-item strong {
  font-size: 0.85rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.parking-option-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.link-arrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

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

.tip-banner {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.complementary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.badge-free-wed {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.complementary-card h5 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.complementary-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Cajas de Reserva y Enlaces */
.itinerary-links-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
}

.box-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.links-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.box-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.reserve-action-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.reserve-text strong {
  color: #166534;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.reserve-text p {
  font-size: 0.85rem;
  color: #15803d;
  margin-bottom: 6px;
}

.contact-data {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
  display: inline-block;
  font-size: 0.85rem;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-wikiloc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(133, 34, 33, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-focus);
}

.btn-wikiloc {
  background: #45a049;
  color: #ffffff;
}

.btn-wikiloc:hover {
  background: #388e3c;
}

/* ==========================================================================
   SECCIÓN ALOJAMIENTO & PARKING DETALLES
   ========================================================================== */
.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.info-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.highlight-card {
  border-top: 4px solid var(--color-primary);
}

.warning-accent {
  border-top: 4px solid #dc2626;
  background: #fffdfd;
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-big-icon {
  font-size: 2.2rem;
}

.box-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
}

.location-pill {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.warning-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.box-text {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.amenity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.amenity-item {
  font-size: 0.85rem;
  color: #166534;
  font-weight: 500;
}

.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.parking-solution {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 18px;
}

.solution-heading {
  font-size: 0.92rem;
  color: #991b1b;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-list {
  padding-left: 20px;
  margin-bottom: 16px;
}

.step-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* ==========================================================================
   RESTAURANTES & MENÚS < 20€
   ========================================================================== */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.restaurant-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.featured-resto {
  border-top: 4px solid var(--color-accent);
}

.resto-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.resto-badge-secondary {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.resto-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.resto-addr {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.resto-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 16px;
}

.resto-price-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 14px;
}

/* ==========================================================================
   LÍNEA TEMPORAL / ROUTE TIMELINE
   ========================================================================== */
.route-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.step-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
}

.price-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 12px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Tour Toledo Subterráneo */
.tour-night-card {
  background: #ffffff;
  border-top: 4px solid #4f46e5;
}

.subterranean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.sub-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.sub-icon {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 4px;
}

/* Tip Secreto Catedral */
.tip-secret-card {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.tip-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.tip-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
}

.tip-content p {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
}

.urban-walk-list {
  padding-left: 18px;
  margin-top: 10px;
}

.urban-walk-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Los Hitos Card */
.hitos-detail-card {
  background: var(--bg-surface-alt);
  border-left: 4px solid var(--color-accent);
  padding: 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
}

.hitos-detail-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.sunset-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #9a3412;
  font-size: 0.88rem;
  margin-top: 14px;
}

/* ==========================================================================
   TABLA DE PRESUPUESTO & COSTES
   ========================================================================== */
.budget-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.cost-table th {
  background: #1e293b;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cost-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.cost-table tbody tr:hover {
  background: #f8fafc;
}

.tag-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-badge.free {
  background: #dcfce7;
  color: #166534;
}

.tag-badge.food {
  background: #fef3c7;
  color: #92400e;
}

.tag-badge.ticket {
  background: #e0e7ff;
  color: #3730a3;
}

.tag-badge.tour {
  background: #f3e8ff;
  color: #6b21a8;
}

.tag-badge.hotel {
  background: #ede9fe;
  color: #5b21b6;
}

.free-cell {
  font-weight: 700;
  color: #166534;
}

.total-row td {
  background: #f1f5f9;
  padding: 18px;
  font-size: 1rem;
}

.total-cell {
  color: var(--color-primary);
  font-size: 1.25rem !important;
}

.savings-cell {
  color: #166534;
  font-size: 0.95rem;
}

/* ==========================================================================
   DIRECTORIO DE MAPAS & GPS
   ========================================================================== */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.map-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.map-icon {
  font-size: 1.4rem;
}

.map-card-header h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-main);
}

.map-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.map-links-list a:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

.link-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 28px 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==========================================================================
   MAPA VISUAL Y TRAYECTO ERMITA DEL VALLE -> PEÑA REY MORO -> CERRO DEL BÚ
   ========================================================================== */
.trail-topo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.trail-svg-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trail-topo-svg {
  width: 100%;
  height: auto;
  min-width: 550px;
  display: block;
}

.trail-legs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.trail-leg-item {
  background: var(--bg-surface-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
}

.trail-leg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.trail-leg-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.trail-leg-dist {
  font-size: 0.78rem;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 12px;
}

.trail-leg-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVIDAD (TABLETS Y PANTALLAS MEDIANAS: <= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVIDAD (MÓVILES Y PANTALLAS PEQUEÑAS: <= 860px)
   ========================================================================== */
@media (max-width: 860px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .app-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 290px;
    max-width: 85vw;
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: block;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .mobile-topbar {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .mobile-topbar-title {
    font-size: 0.95rem;
    max-width: calc(100% - 90px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .content-wrapper {
    padding: 20px 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .guide-section {
    margin-bottom: 44px;
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.45rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  /* Hero Banner Móvil */
  .hero-banner {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-banner::after {
    display: none !important;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .hero-lead {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .stat-card {
    padding: 14px;
  }

  /* Grids a columna única */
  .timeline-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 12px;
  }

  .maps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trail-legs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Cards e Info Boxes */
  .section-card, 
  .info-box-card, 
  .content-card, 
  .map-card, 
  .trail-topo-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .card-meta-bar {
    padding: 12px 14px;
    gap: 6px;
  }

  .meta-pill {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .step-time {
    color: var(--color-primary);
    font-size: 0.85rem;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
  }

  /* Contenedores con scroll horizontal autónomo */
  .budget-table-card {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .cost-table {
    min-width: 520px;
    font-size: 0.82rem;
  }

  .cost-table th, 
  .cost-table td {
    padding: 10px 12px;
  }

  .trail-svg-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }

  .trail-topo-svg {
    min-width: 500px;
    width: 100%;
  }

  /* Botones 100% de ancho en móvil */
  .action-btn-group, 
  .links-flex {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-primary, 
  .btn-secondary, 
  .btn-wikiloc {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .main-footer {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   MÓVILES MUY ESTRECHOS (<= 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .content-wrapper {
    padding: 16px 8px;
  }

  .hero-banner {
    padding: 18px 12px;
  }
}

/* Print Styles */
@media print {
  .sidebar, .mobile-topbar, .sidebar-overlay, .print-btn {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .content-wrapper {
    padding: 0 !important;
  }
  .guide-section {
    page-break-after: always;
  }
}
