:root {
  --navy: #073f70;
  --deep: #082f55;
  --cyan: #1da6c0;
  --sea: #dcf6fa;
  --ink: #173b54;
  --muted: #607e91;
  --line: #dce7ec;
  --paper: #f6fafb;
  --gold: #eabf74;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  font: 15px/1.45 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible {
  outline: 3px solid #edba6b;
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

.top {
  background: #159db6;
  color: #fff;
}

.wrap {
  max-width: 1220px;
  padding: 0 27px;
  margin: auto;
}

.top .wrap {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .04em;
}

.top a {
  color: #fff;
  text-decoration: none;
}

header {
  background: #fff;
  box-shadow: 0 2px 13px #002c4810;
  position: relative;
  z-index: 3;
}

.nav {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  height: 76px;
  width: 240px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 0 transparent);
  cursor: pointer;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
}

.navlinks button, .navlinks a {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  text-decoration: none;
}

.navlinks button:hover, .navlinks button.sel, .navlinks a:hover {
  color: #129ab4;
}

.navcta {
  border: 1px solid var(--line) !important;
  padding: 9px 15px !important;
  border-radius: 999px !important;
}

.mobilemenu {
  display: none;
  border: 0;
  background: #edf8fa;
  color: var(--navy);
  font-size: 25px;
  border-radius: 9px;
  padding: 5px 11px;
}

.hero {
  position: relative;
  min-height: 320px;
  color: #fff;
  background: linear-gradient(90deg, rgba(2, 36, 65, .93) 0%, rgba(5, 45, 73, .72) 48%, rgba(4, 55, 84, .15) 100%), url('https://images.unsplash.com/photo-1548013146-72479768bada?w=1800&q=85') center 50%/cover;
}

.hero .wrap {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 680px;
  padding: 32px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 800;
  color: #8ce4ef;
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 63px);
  line-height: 1.06;
  letter-spacing: -.048em;
  margin: 13px 0;
}

.hero h1 em {
  font-style: normal;
  color: #8fe2ef;
}

.hero p {
  font-size: 16px;
  max-width: 540px;
  line-height: 1.65;
  color: #e5f3f7;
  margin: 0 0 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: var(--cyan);
  color: white;
  font-weight: 800;
  border-radius: 7px;
  padding: 12px 19px;
  transition: .2s;
  text-decoration: none;
}

.btn:hover {
  background: #087d99;
  transform: translateY(-1px);
}

.btn.light {
  background: white;
  color: var(--navy);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #b9dde7;
  color: white;
}

.btn.small {
  font-size: 12px;
  padding: 9px 12px;
}

section {
  padding: 38px 0;
}

.search-wrap {
  position: relative;
  z-index: 2;
  margin-top: -25px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d9e7ed;
  border-radius: 13px;
  padding: 9px 11px 9px 20px;
  background: white;
  box-shadow: 0 10px 40px #053c6020;
}

.searchbar svg {
  flex: none;
}

.searchbar input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink);
}

.searchbar .btn {
  white-space: nowrap;
}

.search-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 4px;
}

.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 17px;
}

.sectionhead h2 {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.04em;
  color: var(--navy);
  margin: 0 0 4px;
}

.sectionhead p {
  margin: 0;
  color: var(--muted);
}

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

.region {
  height: 215px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  text-align: left;
  background: #124b76;
  color: white;
  box-shadow: 0 5px 17px #042c4613;
}

.region:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-position: center;
  background-size: cover;
  transition: transform .5s ease;
}

.region:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 29, 54, .94), rgba(1, 29, 54, 0) 78%);
}

.region:hover:before {
  transform: scale(1.06);
}

.region .content {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.region strong {
  font-size: 23px;
  letter-spacing: -.03em;
}

.region small {
  display: block;
  margin-top: 3px;
  color: #d6edf1;
  font-size: 12px;
}

.region b {
  font-size: 24px;
  font-weight: 400;
}

/* Badge de Próximamente */
.badge-coming {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(234, 191, 116, 0.95);
  color: var(--deep);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.feature {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px #042b4510;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #042b4518;
}

.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.tile .txt {
  padding: 13px;
}

.tile strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.tile .card-actions { display: grid; gap: 8px; margin-top: 12px; }

.footer {
  background: var(--navy);
  color: #c2dce9;
  padding: 26px 0;
  margin-top: 20px;
  font-size: 12px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer a {
  color: #8fe2ef;
  text-decoration: none;
}

.detail {
  min-height: 420px;
}

.back {
  border: 0;
  background: transparent;
  color: #087f9c;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back:hover {
  color: var(--navy);
}

/* Selector de Temporadas por Colección */
.season-selector-wrap {
  margin: 18px 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.season-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.season-tabs {
  display: inline-flex;
  background: #e6f3f7;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.season-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.season-tab.active {
  background: var(--navy);
  color: white;
  box-shadow: 0 2px 6px rgba(7, 63, 112, 0.25);
}

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

.country {
  position: relative;
  height: 165px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  color: white;
  text-align: left;
  padding: 15px;
  background: #0a5c80;
}

.country:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover;
  transition: transform .3s;
}

.country:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #052843f5, transparent 85%);
}

.country span {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 16px;
  font-weight: 800;
  font-size: 19px;
}

.country:hover:before {
  transform: scale(1.07);
}

.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.count {
  color: var(--muted);
  font-size: 13px;
}

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

.tariff {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px #072f5010;
  display: flex;
  flex-direction: column;
}

.poster {
  height: 195px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #02223ce0, transparent 80%);
}

.poster .poster-title {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  z-index: 1;
  color: white;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 1px 4px #003;
}

.tariff-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tariff-body h3 {
  font-size: 16px;
  margin: 0;
  color: var(--navy);
}

.tariff-body p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 14px;
}

.tariff-body .actions {
  margin-top: auto;
}

.btn-download-docx {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eaf7fa;
  color: #086b87;
  border: 1px solid #c2e9f0;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  width: 100%;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.program-card { cursor: pointer; }
.program-card:focus-visible { outline: 3px solid #edba6b; outline-offset: 3px; }
.program-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px #073f7010;
}
.program-detail-cover {
  min-height: 360px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  position: relative;
}
.program-detail-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #082f55bb);
}
.program-detail-cover h2 { position: relative; color: #fff; margin: 0; font-size: clamp(24px, 3vw, 38px); }
.program-detail-body { padding: 28px 28px 30px 0; display: flex; flex-direction: column; align-items: flex-start; }
.program-meta { color: var(--muted); font-weight: 600; }
.detail-label { display: block; color: var(--navy); font-weight: 700; margin: 16px 0 6px; }
.program-detail-body select { width: min(100%, 420px); min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.program-detail-body .btn-download-docx { margin-top: 24px; text-decoration: none; text-align: center; }
.program-detail-body .actions { display: grid; gap: 10px; width: min(100%, 420px); margin-top: 16px; }
.program-detail-body .actions .btn-download-docx { margin-top: 0; }
@media (max-width: 700px) {
  .program-detail { grid-template-columns: 1fr; gap: 0; }
  .program-detail-cover { min-height: 230px; }
  .program-detail-body { padding: 20px; }
}

.btn-download-docx:hover {
  background: #159db6;
  color: white;
  border-color: #159db6;
  transform: translateY(-1px);
}

.empty {
  padding: 45px 20px;
  text-align: center;
  background: white;
  border: 1px dashed #b2d1dc;
  border-radius: 12px;
  color: var(--muted);
}

.note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}

.hidden {
  display: none !important;
}

.fade {
  animation: fade .25s ease;
}

@keyframes fade {
  from {
    opacity: .3;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles, .countrygrid, .tariffs {
    grid-template-columns: repeat(2, 1fr);
  }
  .navlinks {
    gap: 12px;
  }
  .logo {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
  .top .wrap {
    height: 32px;
    font-size: 9px;
  }
  .top a:nth-child(2) {
    display: none;
  }
  .nav {
    height: 72px;
  }
  .logo {
    height: 65px;
    width: 190px;
  }
  .mobilemenu {
    display: block;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 104px;
    right: 12px;
    background: white;
    box-shadow: 0 12px 35px #0002;
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    z-index: 5;
  }
  .navlinks.open {
    display: flex;
  }
  .hero, .hero .wrap {
    min-height: 295px;
  }
  .hero {
    background-position: 58% 50%;
  }
  .hero-inner {
    padding: 22px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 14px;
  }
  .searchbar {
    padding: 8px 11px;
  }
  .searchbar input {
    font-size: 13px;
  }
  .searchbar .btn {
    font-size: 12px;
    padding: 9px;
  }
  .cards {
    gap: 10px;
  }
  .region {
    height: 160px;
  }
  .region .content {
    bottom: 12px;
    left: 12px;
  }
  .region strong {
    font-size: 17px;
  }
  .region small {
    font-size: 10px;
  }
  .tiles, .countrygrid, .tariffs {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .poster {
    height: 165px;
  }
  .footer .wrap {
    flex-direction: column;
    text-align: center;
  }
  section {
    padding: 28px 0;
  }
}
