:root {
  --bg: #f4efe9;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #1e2430;
  --muted: #5b6677;
  --line: rgba(20, 24, 32, 0.08);
  --primary: #ef6e68;
  --primary-soft: rgba(239, 110, 104, 0.12);
  --flight: #3e7af6;
  --flight-soft: rgba(62, 122, 246, 0.12);
  --food: #2ab77d;
  --food-soft: rgba(42, 183, 125, 0.12);
  --activity: #e99758;
  --activity-soft: rgba(233, 151, 88, 0.12);
  --transfer: #cfa24d;
  --transfer-soft: rgba(207, 162, 77, 0.12);
  --hotel: #7d68f0;
  --hotel-soft: rgba(125, 104, 240, 0.12);
  --shadow: 0 18px 42px rgba(30, 24, 18, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 195, 126, 0.12),
      transparent 22%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(104, 152, 255, 0.12),
      transparent 28%
    ),
    var(--bg);
  color: var(--text);
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.container {
  width: min(560px, calc(100% - 20px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 40px 0 30px;
  background-image:
    linear-gradient(135deg, rgba(20, 18, 15, 0.5), rgba(34, 29, 22, 0.42)),
    url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(17, 13, 9, 0.1);
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: #fffdf8;
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1;
}

.subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.98rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trip-container {
  display: grid;
  gap: 22px;
  padding: 18px 0 54px;
}

.day-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.day-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-date {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.day-body {
  display: block;
  padding: 0;
}

.day-summary {
  padding: 16px 18px 0;
}

.day-city {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day-summary h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.15;
}

.day-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.hotel-card {
  margin-top: 18px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.hotel-image-wrap {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #000;
}

.hotel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotel-card .hotel-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 26px rgba(0, 0, 0, 0.08);
}

.hotel-card .hotel-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.24)
  );
  z-index: 0;
}

.hotel-card .hotel-content > * {
  position: relative;
  z-index: 1;
}

.hotel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.hotel-label {
  margin: 0;
  color: rgba(30, 36, 48, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 800;
}

.hotel-content h3 {
  margin: 4px 0 0;
  color: #171d27;
  font-size: clamp(1.18rem, 3vw, 1.7rem);
  line-height: 1.2;
}

.hotel-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff0a8;
  color: #a45a00;
  border: 1px solid rgba(164, 90, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.hotel-location {
  margin: 0 0 12px;
}

.hotel-location-link {
  color: #171d27;
  text-decoration: none;
  font-weight: 600;
}

.hotel-location-link:hover,
.hotel-location-link:focus-visible {
  text-decoration: underline;
  color: #171d27;
}

.hotel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(23, 29, 39, 0.06);
  color: #1f2936;
  font-size: 0.74rem;
  font-weight: 600;
}

.hotel-description {
  margin: 0;
  color: rgba(23, 29, 39, 0.8);
  line-height: 1.6;
  font-size: 0.94rem;
}

.activities {
  list-style: none;
  margin: 0;
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 70px 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(29, 35, 48, 0.06);
  background: rgba(255, 255, 255, 0.8);
}

.activity-time {
  display: grid;
  gap: 3px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
}

.activity-time small {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.activity-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.activity-item.flight {
  background: var(--flight-soft);
  border-color: rgba(62, 122, 246, 0.12);
}

.activity-item.flight .activity-icon {
  background: rgba(62, 122, 246, 0.12);
  color: var(--flight);
}

.activity-item.food {
  background: var(--food-soft);
  border-color: rgba(42, 183, 125, 0.12);
}

.activity-item.food .activity-icon {
  background: rgba(42, 183, 125, 0.12);
  color: var(--food);
}

.activity-item.activity {
  background: var(--activity-soft);
  border-color: rgba(233, 151, 88, 0.12);
}

.activity-item.activity .activity-icon {
  background: rgba(233, 151, 88, 0.12);
  color: var(--activity);
}

.activity-item.transfer {
  background: var(--transfer-soft);
  border-color: rgba(207, 162, 77, 0.12);
}

.activity-item.transfer .activity-icon {
  background: rgba(207, 162, 77, 0.12);
  color: var(--transfer);
}

.activity-item.hotel {
  background: var(--hotel-soft);
  border-color: rgba(125, 104, 240, 0.12);
}

.activity-item.hotel .activity-icon {
  background: rgba(125, 104, 240, 0.12);
  color: var(--hotel);
}

.activity-content {
  min-width: 0;
}

.activity-type {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.activity-content h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.activity-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.activity-notes {
  margin-top: 6px !important;
  color: var(--text) !important;
}

/* Diseño de escritorio: cada día se presenta como una sección amplia del itinerario. */
@media (min-width: 769px) {
  body {
    background:
      radial-gradient(circle at 8% 16%, rgba(239, 110, 104, 0.14), transparent 24%),
      radial-gradient(circle at 92% 52%, rgba(62, 122, 246, 0.12), transparent 26%),
      var(--bg);
  }

  .container {
    width: min(1180px, calc(100% - 64px));
  }

  .hero {
    min-height: 340px;
    display: grid;
    align-items: center;
    padding: 48px 0;
    background-position: center 46%;
  }

  .hero-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 36px;
    text-align: left;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .stats {
    justify-content: flex-start;
  }

  .trip-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 72px;
  }

  .day-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(30, 24, 18, 0.12);
  }

  .day-header {
    padding: 18px 22px 16px;
    background: linear-gradient(100deg, rgba(239, 110, 104, 0.12), rgba(255, 255, 255, 0.72));
  }

  .day-tag {
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(239, 110, 104, 0.22);
  }

  .day-date {
    padding: 7px 11px;
    border: 1px solid rgba(30, 36, 48, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
  }

  .day-summary {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 248, 244, 0.92), rgba(255, 255, 255, 0.7));
  }

  .day-city {
    color: #d85e58;
  }

  .day-summary h2 {
    font-size: 2rem;
  }

  .hotel-image-wrap {
    height: 360px;
    border-radius: 20px;
  }

  .day-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }

  .day-summary:only-child {
    grid-column: 1 / -1;
  }

  .hotel-card {
    margin: 18px 18px 18px 0;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(23, 29, 39, 0.16);
  }

  .hotel-card .hotel-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .activities {
    gap: 10px;
    padding: 24px 30px 30px;
    background: rgba(255, 255, 255, 0.5);
  }

  .activity-item {
    grid-template-columns: 86px 44px 1fr;
    gap: 16px;
    padding: 15px 18px;
    border-radius: 14px;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .activity-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 18px rgba(30, 36, 48, 0.08);
  }

  .activity-time {
    padding-right: 14px;
    border-right: 1px solid rgba(30, 36, 48, 0.1);
    text-align: right;
  }

  .activity-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 30px;
    padding-bottom: 22px;
  }

  .hero-content {
    max-width: 100%;
  }

  .trip-container {
    gap: 20px;
    padding-top: 20px;
  }

  .day-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(30, 24, 18, 0.1);
  }

  .day-header {
    padding: 16px 18px 14px;
    background: linear-gradient(100deg, rgba(239, 110, 104, 0.11), rgba(255, 255, 255, 0.68));
  }

  .day-tag {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 12px rgba(239, 110, 104, 0.2);
  }

  .day-date {
    padding: 6px 9px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
  }

  .day-summary {
    padding: 18px 18px 0;
  }

  .hotel-card {
    margin: 18px 14px 16px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(23, 29, 39, 0.13);
  }

  .hotel-image-wrap,
  .hotel-card img {
    height: 320px;
    border-radius: 18px;
  }

  .activities {
    gap: 10px;
    padding: 4px 14px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.42);
  }

  .activity-item {
    grid-template-columns: 62px 36px 1fr;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .activity-time {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .activity-time .time-spain {
    padding-left: 8px;
    border-left: 1px solid rgba(30, 36, 48, 0.14);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 18px, 560px);
  }

  .hero {
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .hero-content {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .day-header {
    padding: 14px 16px 12px;
  }

  .hotel-image-wrap,
  .hotel-card img {
    height: 500px;
  }

  .hotel-card .hotel-content {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px 14px 16px;
  }

  .hotel-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .activity-time {
    font-size: 0.74rem;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
  }
}
