/* Styles trasladados desde index.html */
:root {
  --vigo-red: #c00;
  --vigo-red-dark: #9f0000;
  --black: #111;
  --gray-950: #161616;
  --gray-900: #222;
  --gray-800: #333;
  --gray-700: #4a4a4a;
  --gray-600: #666;
  --gray-400: #b8b8b8;
  --gray-300: #d7d7d7;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --ink: #1f1f1f;
  --muted: #5f5f5f;
  --line: #d7d7d7;
  --bg: #f5f5f5;
  --white: #fff;
  --warning: #eeeeee;
  --danger-soft: #f2f2f2;
  --success-soft: #eeeeee;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(0, 0, 0, .10);
  --transport-green: #008a3d;
  --transport-green-dark: #006c2f;
  --transport-green-soft: #eef7f1;
  --light-panel: #f0f0f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: .01em;
  scroll-padding-top: 86px;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--vigo-red);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.topbar-inner,
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .2px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.lang {
  display: flex;
  gap: 10px;
  font-size: 14px;
  opacity: .92;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--white);
  color: var(--vigo-red);
  outline: none;
}

.icon-circle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
}

.icon-circle i {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  vertical-align: middle;
}

.icon-circle.red {
  background: #fff0f0;
  color: var(--vigo-red);
  border-color: #ffd0d0;
}

.icon-circle.green {
  background: var(--transport-green-soft);
  color: var(--transport-green-dark);
  border-color: #d7e6dc;
}

.section-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: 10px;
  border-radius: 14px;
  background: var(--gray-100);
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
  vertical-align: middle;
}

.card-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title h3 {
  margin: 0;
}

header.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  padding: 42px 0 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vigo-red);
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .4px;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  color: var(--gray-950);
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--gray-700);
  max-width: 780px;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-summary {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hero-summary li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  background: var(--light-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
  color: var(--gray-700);
  font-weight: 700;
}

.hero-summary li::before {
  content: "•";
  color: var(--vigo-red);
  font-size: 24px;
  line-height: 1;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn:focus-visible {
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}

.btn-primary { background: var(--vigo-red); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--gray-950); border-color: var(--gray-300); }
.btn-transport { background: var(--transport-green); color: var(--white); }
.btn-light { background: var(--light-panel); color: var(--gray-950); border-color: var(--gray-300); }

.alert-card {
  background: #fff5f5;
  border: 1px solid #f4d2d2;
  border-top: 8px solid var(--vigo-red-dark);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.alert-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--gray-950);
}

.alert-card li {
  background: #fff6f6;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #f4d2d2;
  font-weight: 600;
  color: var(--gray-800);
}

.alert-card li span {
  display: block;
}

.alert-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alert-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--danger-soft);
  border-radius: 12px;
  font-weight: 700;
}

.section {
  padding: 34px 0;
  scroll-margin-top: 86px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin-top: 14px;
}

.image-popup {
  display: block;
  cursor: zoom-in;
}

.image-popup:hover img,
.image-popup:focus-visible img {
  transform: scale(1.01);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px;
  overflow: auto;
  z-index: 2000;
}

.lightbox:target {
  display: grid;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 72px);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 26px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  outline: none;
  transform: scale(1.04);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--gray-950);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.date-badge {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 14px;
  text-align: center;
  line-height: 1.08;
}

.date-badge strong {
  display: block;
  font-size: 30px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  margin: 4px 6px 4px 0;
}

.tag-danger { background: var(--danger-soft); color: var(--vigo-red-dark); }
.tag-warning { background: var(--warning); color: var(--gray-900); }
.tag-info { background: var(--gray-100); color: var(--gray-900); }
.tag-ok { background: var(--success-soft); color: var(--gray-900); }

.card ul,
.transport-list,
.recommendations ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.highlight {
  background: var(--warning);
  border-left: 6px solid var(--gray-800);
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.time {
  color: var(--vigo-red);
  font-size: 24px;
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 6px;
  color: var(--gray-950);
}

.mobility-grid,
.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--gray-900);
  color: var(--white);
  font-weight: 800;
}

tr:last-child td { border-bottom: 0; }

.route {
  display: grid;
  gap: 12px;
}

.route-step {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.dot {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 900;
}

.recommendations {
  background: #fbfbfb;
  color: var(--gray-950);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.recommendations h2 { color: var(--gray-950); }

.recommendation-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 20px;
  min-height: 150px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mini-card:hover,
.mini-card:focus-within {
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 14px 24px rgba(0,0,0,.08);
}

.mini-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--gray-950);
}

.transport-section .section-title h2,
.transport-section .card h3,
.transport-extra .card h3 {
  color: var(--transport-green-dark);
}

.transport-section .transport-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  align-items: start;
}

.transport-section .card,
.transport-extra .card {
  min-width: 0;
}

.transport-section .table-wrap,
.transport-section .card,
.transport-extra .card,
.transport-extra .route-step {
  border-color: #d7e6dc;
  background: #f5fcf6;
}

.transport-section table {
  min-width: 0;
  table-layout: fixed;
  background: #f5fcf6;
}

.transport-section th,
.transport-section td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.transport-section th:nth-child(1),
.transport-section td:nth-child(1) { width: 34%; }

.transport-section th:nth-child(2),
.transport-section td:nth-child(2) { width: 20%; }

.transport-section th:nth-child(3),
.transport-section td:nth-child(3) { width: 46%; }

.transport-section th {
  background: var(--transport-green);
  color: var(--white);
}

.transport-extra .dot {
  background: var(--transport-green);
  color: var(--white);
}

.transport-extra .highlight {
  background: var(--transport-green-soft);
  border-left-color: var(--transport-green);
}

.footer {
  background: var(--black);
  color: var(--white);
  padding: 26px 0;
  margin-top: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.small { font-size: 14px; color: #e0e0e0; }

@media (max-width: 900px) {
  body {
    scroll-padding-top: 74px;
  }

  .section {
    scroll-margin-top: 74px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .nav-toggle-label {
    display: inline-flex;
    order: 0;
    margin-right: 8px;
  }

  .brand-title {
    order: 1;
    min-width: 0;
  }

  .brand-logo {
    max-width: 190px;
    height: 42px;
  }

  .lang {
    order: 2;
    margin-left: auto;
  }

  .topnav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .nav-toggle:checked + .nav-toggle-label + .topnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topnav a {
    width: 100%;
    justify-content: flex-start;
    font-size: 14px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  .transport-section .transport-grid {
    grid-template-columns: 1fr;
  }

  .transport-section .table-wrap,
  .transport-section thead,
  .transport-section tbody,
  .transport-section tr,
  .transport-section th,
  .transport-section td {
    display: block;
    width: 100%;
  }

  .transport-section thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .transport-section tr {
    border-bottom: 1px solid #d7e6dc;
    padding: 10px 0;
  }

  .transport-section tr:last-child {
    border-bottom: 0;
  }

  .transport-section td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border-bottom: 0;
    padding: 7px 12px;
  }

  .transport-section th:nth-child(1),
  .transport-section td:nth-child(1),
  .transport-section th:nth-child(2),
  .transport-section td:nth-child(2),
  .transport-section th:nth-child(3),
  .transport-section td:nth-child(3) {
    width: 100% !important;
  }

  .transport-section td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--transport-green-dark);
  }

  .hero-grid,
  .mobility-grid,
  .transport-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .cards2,
  .recommendation-cards {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .topbar, .hero-actions { display: none; }
  body { background: white; }
  .card, .timeline-item, .recommendations { box-shadow: none; }
}
