/*
Theme Name: hispaniaiptv
Description: Hispania IPTV homepage, setup guides and editable support pages.
Version: 1.0.4
Author: Hispania IPTV
Text Domain: hispaniaiptv
*/
:root {
  color-scheme: dark;
  --navy: #0b1220;
  --slate: #162235;
  --blue: #1d4ed8;
  --link: #93c5fd;
  --text: #f8fafc;
  --muted: #becadd;
  --line: #30405b;
  --green: #22c55e;
  background: var(--navy);
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
p { margin: 0; color: var(--muted); line-height: 1.65; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.1vw, 4.5rem); line-height: 1.02; font-weight: 780; }
h1 span { display: block; color: var(--link); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.site-header, .site-footer { border-color: var(--line); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }
.site-footer { border-top-width: 1px; }
.header-inner, .footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -.035em;
}
.brand-iptv { color: var(--link); margin-left: .22em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  margin-right: 9px;
  background: var(--blue);
  border-radius: 7px;
  font-size: .72rem;
}
nav { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: .9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--link); text-decoration: underline; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 47vw, 680px);
  padding-block: 58px;
}
.hero-backdrop, .hero::before { position: absolute; inset: 0; }
.hero-backdrop { z-index: -2; }
.hero-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: '';
  z-index: -1;
  background: linear-gradient(90deg, #0b1220fa, #0b1220e8 30%, #0b122050 65%, #0b12201a), linear-gradient(0deg, #0b1220a8, transparent 34%);
}
.hero h1 { max-width: 19ch; }
.hero h1 span { font-size: .77em; }
.hero .button-secondary { background: #0b1220dd; }
.hero .button-secondary:hover { background: var(--slate); }
.intro { max-width: 47ch; margin-top: 23px; font-size: clamp(1.08rem, 2vw, 1.27rem); }
.hero-offer { display: inline-block; margin-top: 18px; padding: 9px 13px; border-left: 3px solid var(--link); border-radius: 6px; background: #e8f1ff; color: var(--navy); font-weight: 650; }
.hero-offer strong { color: var(--blue); font-size: 1.25em; }
.hero-offer small { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}
.button:hover { background: #2458e4; }
.button-secondary { border-color: var(--line); background: transparent; }
.button-secondary:hover { background: var(--slate); }
.section { padding-block: clamp(42px, 6vw, 80px); scroll-margin-top: 20px; }
.band { border-block: 1px solid var(--line); background: #101b2d; }
.section h2 + p { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.steps-intro { max-width: 65ch; }
.steps { list-style: none; padding: 0; margin-bottom: 0; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps h3 { font-size: 1.125rem; letter-spacing: -.02em; line-height: 1.3; }
.steps li p { margin-top: 7px; }
.steps span {
  display: grid;
  flex: 0 0 32px;
  height: 32px;
  place-items: center;
  color: var(--link);
  background: #223a61;
  border-radius: 50%;
}
.card { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 2.2vw, 27px); background: var(--slate); }
.plan-grid { margin-top: 36px; }
.plan { position: relative; grid-template-rows: auto auto 1fr auto; padding: clamp(16px, 2vw, 26px); }
.plan-featured { border-color: var(--link); background: linear-gradient(145deg, #1a2e51, var(--slate)); }
.plan-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.plan-popular, .payment-label, .plan-discount span { border-radius: 1rem; font-size: .8rem; font-weight: 700; padding: 3px 9px; }
.plan-popular { position: absolute; inset: 0 auto auto 50%; transform: translate(-50%, -50%); white-space: nowrap; background: var(--blue); }
.payment-label, .plan-discount span { background: #233b62; color: var(--link); }
.plan-discount { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #ff9199; font-size: .875rem; }
.plan-price { color: var(--text); font-size: clamp(2.6rem, 4vw, 3.7rem); line-height: 1.12; font-weight: 800; letter-spacing: -.05em; margin: 6px 0; }
.plan-featured .plan-price { color: var(--link); }
.plan-detail { font-size: .875rem; }
.guide-card {
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.guide-card-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  aspect-ratio: 746 / 336;
  object-fit: contain;
  background: #0b1220;
}
.guide-card-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(16px, 2.2vw, 27px);
}
.guide-card h3 a { color: var(--text); }
.guide-card:focus-within, .guide-card:hover { border-color: var(--link); }
#contenido { border-top: 1px solid var(--line); }
.guide-page { max-width: 780px; }
.guide-page nav { margin-bottom: 30px; }
.guide-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.guide-page h2 { margin-top: 32px; font-size: clamp(1.65rem, 4vw, 2.25rem); }
.guide-page article p { margin-top: 12px; }
.guide-intro { font-size: 1.15rem; }
.guide-steps { display: grid; gap: 20px; padding-left: 24px; }
.guide-steps li::marker { color: var(--link); font-weight: 750; }
.guide-cta { margin-top: 32px; gap: 12px; }
.guide-page .guide-cta h2, .guide-page .guide-cta p { margin: 0; }
.guide-cta .button { justify-self: start; }
.guide-page .guide-related { margin: 28px 0 0; }
.plan-features { list-style: none; margin: 0; padding: 0; font-size: .925rem; }
.plan-features li { display: flex; align-items: baseline; gap: 9px; padding-block: 8px; }
.plan-features li + li { border-top: 1px solid var(--line); }
.feature-mark { flex: 0 0 19px; height: 19px; border-radius: 50%; background: var(--blue); text-align: center; font-size: .75rem; line-height: 19px; }
.feature-mark.excluded { background: #572d41; color: #ffd0db; }
.plan-action { display: grid; gap: 8px; }
.plan-action .button-secondary:is(:hover, :focus-visible) { background: var(--blue); border-color: var(--blue); }
.plan-action .button-secondary:active { background: var(--link); border-color: var(--link); color: var(--navy); }
.device-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.device-fields label { display: grid; gap: 6px; min-width: 0; font-weight: 650; }
.device-fields input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 8px; border: 1px solid #59739a; background: var(--navy); color: var(--text); font: inherit; }
.device-form .button { justify-self: start; font: inherit; font-weight: 700; cursor: pointer; }
.support-grid h3 { display: flex; align-items: flex-start; gap: 10px; }
.support-icon { flex: 0 0 24px; color: var(--link); }
.renewal-card { border-color: #466693; background: linear-gradient(155deg, #1b3051, var(--slate) 70%); }
.refund-highlight { padding: 14px 16px; border: 1px solid #395983; border-radius: 10px; background: #0b122080; }
.refund-highlight strong { display: block; color: var(--link); font-size: clamp(1.85rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.045em; }
.refund-highlight p { margin-top: 6px; color: var(--text); }
.renewal-button { justify-self: start; font-size: .95rem; }
.plans-heading { text-align: center; }
.proxy-callout { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--slate); }
.proxy-icon { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 9px; background: #233b62; }
.proxy-callout h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.proxy-callout p { margin-top: 4px; }
.content-heading { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(20px, 5vw, 64px); align-items: end; }
.content-kicker { color: var(--link); font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.content-heading .content-kicker { margin-bottom: 10px; }
.content-grid { margin-top: clamp(22px, 4vw, 44px); }
.content-card { align-content: start; gap: 12px; padding: clamp(20px, 3vw, 34px); background: linear-gradient(145deg, #192740, var(--slate)); }
.content-icon { color: var(--link); font-size: 2rem; line-height: 1; margin-bottom: 12px; }
#soporte { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(24px, 5vw, 70px); }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding-inline: 2px; }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-block: 12px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 8px; height: 8px; flex: 0 0 8px; margin-right: 5px; border: solid var(--link); border-width: 0 2px 2px 0; transform: rotate(45deg); }
details[open] summary::after { transform: rotate(225deg); }
details p { padding-bottom: 16px; }
.final { padding-block: clamp(42px, 6vw, 80px); }
.final-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid #385687;
  border-radius: 18px;
  padding: clamp(22px, 5vw, 55px);
  background: linear-gradient(125deg, #172848, var(--slate));
}
.final-inner p { margin-top: 10px; }
.final-inner .button { flex-shrink: 0; }
.footer-inner { padding-bottom: max(96px, calc(78px + env(safe-area-inset-bottom))); }
.support-grid .card { align-content: start; }
.footer-inner { align-items: flex-start; }
.footer-about { max-width: 36ch; }
.footer-about p { margin-top: 10px; font-size: .95rem; }
.whatsapp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--navy);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 6px 20px #0006;
  z-index: 1;
}
.whatsapp:hover { color: var(--navy); filter: brightness(1.13); }
.whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--green);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp::after { animation: whatsapp-pulse 2.4s ease-out 1.2s 3; }
  .whatsapp:is(:hover, :focus-visible)::after { animation: none; }
}
@keyframes whatsapp-pulse {
  from { transform: scale(1); opacity: .75; }
  62%, to { transform: scale(1.38); opacity: 0; }
}
@media (max-width: 1340px) {
  .plan .button { justify-self: start; }
  .footer-inner nav { padding-right: 48px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 11px; }
  .grid, .split, .content-heading { grid-template-columns: minmax(0, 1fr); }
  .device-fields { grid-template-columns: minmax(0, 1fr); }
  .device-form .button { justify-self: stretch; }
  .hero { align-items: start; min-height: 530px; padding-block: 48px 145px; }
  .hero-backdrop img { object-position: right 62%; }
  .hero::before { background: linear-gradient(180deg, #0b1220f5, #0b1220e0 48%, #0b122062 78%, #0b122038); }
  .final-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 8px 14px; }
  h1 { font-size: 2.65rem; }
}
