:root {
  --color-bg: #14120f;
  --color-surface: #1e1b17;
  --color-surface-raised: #262220;
  --color-text: #ece6dd;
  --color-muted: #a89e91;
  --color-accent: #c9a227;
  --color-accent-soft: #e8cf7a;
  --color-border: #332e28;
  --color-dia: #7bc492;
  --color-noche: #7fa8dd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Georgia", "Segoe UI", system-ui, serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a { color: var(--color-accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: linear-gradient(160deg, #201c17, #14120f 70%);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  color: var(--color-accent-soft);
  font-weight: 500;
}

.site-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

main {
  max-width: 980px;
  margin: -1.5rem auto 3rem;
  padding: 0 1.5rem;
}

section.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
}

section.panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--color-accent-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Nav --- */

.nav-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.nav-btn {
  background: var(--color-surface-raised);
  color: var(--color-muted) !important;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-btn:hover { color: var(--color-text) !important; }

.nav-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #1a1610 !important;
  font-weight: 600;
}

.day-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

.hint {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: -0.6rem;
}

.info-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.info-card:last-child { margin-bottom: 0; }
.info-card .label { font-size: 0.76rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.info-card .main { font-weight: 600; color: var(--color-text); margin: 0.15rem 0; }

.info-card--hotel {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.info-main { flex: 1 1 220px; }

.fecha-bracket {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 130px;
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background: var(--color-surface-raised);
}

.fecha-item { display: flex; flex-direction: column; }

.fecha-tag {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.fecha-val {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-accent-soft);
}

.fecha-divider {
  height: 1px;
  background: var(--color-border);
}

@media (max-width: 500px) {
  .info-card--hotel { flex-direction: column; }
  .fecha-bracket { flex-direction: row; justify-content: space-between; }
  .fecha-divider { width: 1px; height: auto; }
}

.grupo-vuelos { margin-bottom: 1.6rem; }
.grupo-vuelos:last-child { margin-bottom: 0; }
.grupo-vuelos h3 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-accent-soft);
}

.empty-state {
  color: var(--color-muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* --- Itinerario (tabla) --- */

.tabla-itinerario {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tabla-itinerario th {
  text-align: left;
  color: var(--color-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 0 0.7rem 0.6rem;
}

.tabla-itinerario td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.tabla-itinerario tr:last-child td { border-bottom: none; }

.tabla-itinerario td:first-child {
  white-space: nowrap;
  color: var(--color-muted);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .tabla-itinerario { font-size: 0.82rem; }
  .tabla-itinerario td:first-child { white-space: normal; }
}

/* --- Calendar --- */

.cal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cal-month h3 {
  margin: 0 0 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  font-size: 1.05rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  padding-bottom: 0.4rem;
}

.cal-cell {
  background: var(--color-surface-raised);
  border-radius: 8px;
  height: 66px;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.78rem;
  overflow: hidden;
}

.cal-cell--link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.cal-cell--link:hover {
  background: #2e2925;
  transform: translateY(-1px);
}

.cal-cell--empty {
  background: transparent;
}

.cal-cell--fuera {
  opacity: 0.35;
}

.cal-day {
  font-weight: 600;
  color: var(--color-text);
}

.cal-place {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-place--dia { color: var(--color-dia); }
.cal-place--noche { color: var(--color-noche); }

@media (max-width: 640px) {
  .cal-cell { height: 52px; font-size: 0.68rem; padding: 0.25rem 0.35rem; }
  .cal-place { font-size: 0.6rem; }
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 1.5rem 1rem 2.5rem;
}
