:root {
  --white: #FFFFFF;
  --alabaster: #F8F7F6;
  --wine-50: #FFF1F2;
  --wine-700: #9F1239;
  --wine-800: #881337;
  --ocean-700: #0369A1;
  --ocean-50: #F0F9FF;
  --gold-500: #D97706;
  --ink-950: #111827;
  --ink-700: #374151;
  --ink-500: #6B7280;
  --line: #E5E7EB;
  --radius-2xl: 26px;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 28px rgba(17, 24, 39, 0.05);
  --shadow-wine: 0 22px 54px rgba(159, 18, 57, 0.13);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--ink-950);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Barlow', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.13;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

/* Top Spain Live Test Ribbon */
.spain-bar {
  background: var(--wine-800);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 0;
}

.spain-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.spain-bar a {
  color: #FDE047;
  font-weight: 700;
}

.spain-bar a:hover {
  text-decoration: underline;
}

/* Sticky Pure White Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--wine-700);
  border: 2px solid #FDE047;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink-950);
}

.brand-name span {
  color: var(--wine-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
}

.nav-links a:hover {
  color: var(--wine-700);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ES / EN Switcher */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--alabaster);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: var(--wine-700);
  color: #FFFFFF;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-wine {
  background: var(--wine-700);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(159, 18, 57, 0.25);
}

.btn-wine:hover {
  background: var(--wine-800);
}

.btn-ocean {
  background: var(--ocean-700);
  color: #FFFFFF;
}

.btn-ocean:hover {
  background: #075985;
}

.btn-white {
  background: var(--white);
  color: var(--ink-950);
  border: 1.5px solid var(--line);
}

.btn-white:hover {
  border-color: var(--wine-700);
  color: var(--wine-700);
}

/* Hero with Interactive Test/Code Launcher + 3-Photo Overlapping Showcase */
.hero {
  background: var(--white);
  padding: 52px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wine-50);
  color: var(--wine-700);
  border: 1px solid #FECDD3;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.6rem);
  font-weight: 800;
  color: var(--ink-950);
  margin-bottom: 16px;
}

.hero h1 .wine {
  color: var(--wine-700);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-700);
  margin-bottom: 22px;
  max-width: 575px;
}

/* Interactive Quick-Test & Device Widget inside Hero */
.test-launcher {
  background: var(--alabaster);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.launcher-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wine-700);
  margin-bottom: 10px;
}

.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dev-chip {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.16s ease;
}

.dev-chip.active,
.dev-chip:hover {
  background: var(--ink-950);
  color: #FFFFFF;
  border-color: var(--ink-950);
}

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

.hero-ctas .btn {
  padding: 15px 24px;
  font-size: 0.96rem;
}

/* Right Showcase: Wide Stadium Top + Dual Bottom (Movies & TV Programmes) */
.showcase-card {
  background: var(--alabaster);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 16px;
  box-shadow: var(--shadow-wine);
}

.top-match {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9.8;
  background: var(--ink-950);
  margin-bottom: 14px;
}

.top-match img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}

.m-spec {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.88);
  color: #FDE047;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}

.m-cap {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.m-cap strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.m-cap span {
  font-size: 0.78rem;
  color: #D1D5DB;
}

.sub-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sub-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.5;
  background: var(--ink-950);
  border: 1px solid var(--line);
}

.sub-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sub-tile:hover img {
  transform: scale(1.05);
}

.s-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--wine-700);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
}

.s-badge.blue {
  background: var(--ocean-700);
}

.s-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.94), transparent);
  color: #FFFFFF;
}

.s-cap strong {
  display: block;
  font-size: 0.87rem;
}

.s-cap span {
  font-size: 0.73rem;
  color: #E5E7EB;
}

/* Sections */
.section {
  padding: 76px 0;
  background: var(--white);
}

.section-soft {
  background: var(--alabaster);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.sec-head h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--ink-700);
  font-size: 1.02rem;
}

/* "Me ha caducado la prueba Smart IPTV" Renewal & Solution 3-Card Row */
.renewal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.renew-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--wine-700);
}

.renew-step {
  display: inline-block;
  background: var(--wine-50);
  color: var(--wine-700);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.renew-card h3 {
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.renew-card p {
  font-size: 0.92rem;
  color: var(--ink-700);
}

/* Filterable 8-Card Showcase Gallery */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.flt-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-700);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.flt-btn.active,
.flt-btn:hover {
  background: var(--wine-700);
  color: #FFFFFF;
  border-color: var(--wine-700);
}

.poster-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.p-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.p-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-wine);
}

.p-item.hidden {
  display: none;
}

.p-art {
  position: relative;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: var(--ink-950);
}

.p-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.p-item:hover .p-art img {
  transform: scale(1.04);
}

.p-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.88);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 7px;
}

.p-tag.sport {
  background: #DC2626;
}

.p-tag.tv {
  background: var(--ocean-700);
}

.p-res {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FFFFFF;
  color: var(--ink-950);
  font-size: 0.69rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.p-body {
  padding: 15px 16px 17px;
  background: var(--white);
}

.p-cat {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wine-700);
  margin-bottom: 4px;
}

.p-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.p-body p {
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* EUR Pricing Matrix (14 € / 29 € / 39 € / 59 €) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-box {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-box:hover {
  transform: translateY(-4px);
  border-color: var(--wine-700);
}

.plan-box.vip {
  border: 2.5px solid var(--wine-700);
  box-shadow: var(--shadow-wine);
}

.vip-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wine-700);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 0.83rem;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}

.plan-price .num {
  font-family: 'Barlow', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-950);
}

.plan-price .dur {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
}

.plan-save {
  display: inline-block;
  background: var(--wine-50);
  color: var(--wine-700);
  font-size: 0.77rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.87rem;
  color: var(--ink-700);
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-list .ok {
  color: var(--wine-700);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-box .btn {
  width: 100%;
  padding: 14px 16px;
}

/* Trial Banner */
.trial-cta {
  margin-top: 34px;
  background: var(--ocean-50);
  border: 1.5px solid #BAE6FD;
  border-radius: var(--radius-xl);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.trial-cta h3 {
  font-size: 1.28rem;
  margin-bottom: 5px;
}

.trial-cta p {
  font-size: 0.94rem;
  color: var(--ink-700);
  max-width: 660px;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-row summary::-webkit-details-marker {
  display: none;
}

.faq-sign {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--alabaster);
  color: var(--wine-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-row[open] .faq-sign {
  background: var(--wine-700);
  color: #FFFFFF;
}

.faq-ans {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--alabaster);
  color: var(--ink-700);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  background: var(--alabaster);
  border-top: 1px solid var(--line);
  padding: 46px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  background: #16A34A;
  color: #FFFFFF;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.34);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wa-float:hover {
  background: #15803D;
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .renewal-grid {
    grid-template-columns: 1fr;
  }
  .poster-wall,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links,
  .nav-cta-btn {
    display: none;
  }
  .sub-duo,
  .poster-wall,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
