/*
Theme Name: IPTV Profesional España
Theme URI: https://iptv-profesional.es/
Author: Site Owner
Description: Tema ligero y responsive para IPTV Profesional España.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: iptv-profesional
*/

:root {
  --red: #c91427;
  --red-dark: #a70d20;
  --yellow: #ffc928;
  --yellow-light: #fff3c4;
  --dark: #171717;
  --gray: #666b75;
  --light: #fafafa;
  --white: #ffffff;
  --border: #eeeeee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: min(1160px, 91%);
  margin: auto;
}

.section {
  padding: 90px 0;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 850;
  letter-spacing: -1px;
}

.section-heading p {
  color: var(--gray);
  font-size: 16px;
}

.highlight {
  color: var(--red);
}

.eyebrow {
  display: inline-block;
  background: var(--yellow-light);
  color: #8a5b00;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* HERO */

.hero {
  position: relative;
  padding: 105px 0 95px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,201,40,.19), transparent 29%),
    radial-gradient(circle at 5% 90%, rgba(201,20,39,.08), transparent 30%),
    #fff;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201,20,39,.08);
  border-radius: 50%;
  right: -220px;
  top: -180px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 65px;
  position: relative;
}

.hero h1 {
  font-size: clamp(39px, 5.5vw, 65px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--red);
}

.hero-description {
  font-size: 17px;
  color: #646873;
  max-width: 570px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 25px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  transition: .25s ease;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 9px 22px rgba(201,20,39,.19);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid #dedede;
  background: white;
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
}

.hero-note span {
  color: #15965a;
  font-size: 17px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: white;
  padding: 15px;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0,0,0,.10);
  border: 1px solid #f1f1f1;
  transform: rotate(1deg);
}

.hero-screen {
  min-height: 365px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(15,15,20,.2), rgba(15,15,20,.88)),
    linear-gradient(135deg, #c91427 0%, #ed7b27 48%, #ffc928 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-screen::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 35px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: -65px;
  top: -55px;
}

.screen-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.screen-badge {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
}

.screen-content {
  position: relative;
  z-index: 1;
}

.screen-content h3 {
  font-size: 35px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.screen-content p {
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

.screen-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 25px;
}

.screen-bottom span {
  height: 5px;
  border-radius: 10px;
  background: rgba(255,255,255,.45);
  flex: 1;
}

.screen-bottom span:first-child {
  background: var(--yellow);
}

.floating-info {
  position: absolute;
  bottom: -23px;
  left: -28px;
  background: white;
  padding: 16px 22px;
  border-radius: 13px;
  box-shadow: 0 12px 35px rgba(0,0,0,.1);
  font-size: 13px;
  font-weight: 800;
}

/* BENEFITS */

.benefits {
  background: #171717;
  color: white;
  padding: 28px 0;
}

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

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
}

.benefit-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,201,40,.15);
  border-radius: 12px;
  color: var(--yellow);
  font-size: 20px;
}

.benefit strong {
  display: block;
  font-size: 13px;
}

.benefit small {
  display: block;
  color: #aaa;
  font-size: 11px;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(145deg, #fff0bd, #fff);
  border-radius: 24px;
  padding: 38px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #f5e6bd;
}

.about-symbol {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border-radius: 20px;
  font-size: 32px;
  margin-bottom: 25px;
}

.about-visual h3 {
  font-size: 29px;
  line-height: 1.25;
  margin-bottom: 13px;
}

.about-visual p {
  color: #666;
  font-size: 14px;
}

.about-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--gray);
  margin-bottom: 20px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.check-item span {
  color: var(--red);
  font-weight: 900;
}

/* FEATURES */

.features-section {
  background: #fafafa;
}

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

.feature-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 30px;
  transition: .25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #f3c5c9;
  box-shadow: 0 15px 35px rgba(0,0,0,.05);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #fff0d0;
  border-radius: 14px;
  color: var(--red);
  font-size: 23px;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 14px;
}

/* DEVICES */

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

.device {
  text-align: center;
  padding: 28px 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: .25s;
}

.device:hover {
  border-color: var(--red);
  background: #fffafa;
}

.device-icon {
  font-size: 35px;
  margin-bottom: 12px;
}

.device h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.device p {
  color: var(--gray);
  font-size: 12px;
}

/* PRICING */

.pricing-section {
  background: #171717;
  color: white;
  position: relative;
  overflow: hidden;
}

.pricing-section .section-heading p {
  color: #aaa;
}

.pricing-section .section-heading h2 {
  color: white;
}

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

.price-card {
  background: #242424;
  border: 1px solid #393939;
  border-radius: 17px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: .25s;
}

.price-card:hover {
  transform: translateY(-7px);
}

.price-card.popular {
  background: white;
  color: var(--dark);
  border: 2px solid var(--yellow);
  position: relative;
  transform: translateY(-10px);
}

.popular-label {
  background: var(--yellow);
  color: #171717;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 7px 12px;
  border-radius: 30px;
  margin: -43px auto 23px;
  width: fit-content;
}

.plan-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.price {
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.price small {
  font-size: 17px;
  letter-spacing: 0;
}

.price-period {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 24px;
}

.popular .price-period {
  color: #777;
}

.plan-features {
  border-top: 1px solid #414141;
  padding-top: 22px;
  margin-top: 5px;
  margin-bottom: 25px;
  display: grid;
  gap: 12px;
  flex: 1;
  text-align: left;
  font-size: 12px;
}

.popular .plan-features {
  border-color: #eee;
}

.plan-features span::before {
  content: "✓";
  color: var(--yellow);
  margin-right: 8px;
  font-weight: 900;
}

.popular .plan-features span::before {
  color: var(--red);
}

.price-card .btn {
  width: 100%;
  font-size: 12px;
  padding: 13px 10px;
}

.price-card:not(.popular) .btn {
  border: 1px solid #555;
  color: white;
}

.price-card:not(.popular) .btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.pricing-note {
  color: #999;
  text-align: center;
  font-size: 12px;
  margin-top: 30px;
}

/* PROCESS */

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

.step {
  padding: 28px;
  border: 1px solid #eee;
  border-radius: 15px;
}

.step-number {
  font-size: 35px;
  font-weight: 900;
  color: #f2c44c;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.step p {
  color: var(--gray);
  font-size: 14px;
}

/* FAQ */

.faq-section {
  background: #fafafa;
}

.faq-list {
  max-width: 850px;
  margin: auto;
  display: grid;
  gap: 12px;
}

details {
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px 23px;
}

summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 22px;
  color: var(--red);
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--gray);
  font-size: 14px;
  padding-top: 15px;
}

/* FINAL CTA */

.final-cta {
  padding: 80px 0;
  background: linear-gradient(115deg, #a70d20, #d51b2e 55%, #ef9f22);
  color: white;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 17px;
}

.final-cta p {
  color: rgba(255,255,255,.88);
  max-width: 620px;
  margin: 0 auto 27px;
  font-size: 15px;
}

.final-cta .btn {
  background: white;
  color: var(--red);
}

.final-cta .btn:hover {
  background: var(--yellow);
  color: #171717;
}

@media(max-width: 950px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .hero-visual {
    max-width: 530px;
    width: 100%;
    margin: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .price-card.popular {
    transform: none;
  }
}

@media(max-width: 650px) {
  .section {
    padding: 65px 0;
  }

  .hero {
    padding: 70px 0;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-screen {
    min-height: 290px;
    padding: 23px;
  }

  .screen-content h3 {
    font-size: 27px;
  }

  .floating-info {
    left: -8px;
    bottom: -25px;
  }

  .benefits-grid,
  .features-grid,
  .devices-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    padding: 7px 0;
  }

  .about-visual {
    min-height: 280px;
    padding: 25px;
  }

  .price-card {
    padding: 30px 24px;
  }

  .section-heading {
    margin-bottom: 33px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Shared WordPress pages (the landing page remains header/footer-free). */
.site-header { background:#fff; border-bottom:1px solid #eee; }
.site-header-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-brand { display:flex; align-items:center; gap:10px; font-weight:900; font-size:18px; }
.site-brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:#c91427; color:#fff; }
.primary-menu, .footer-menu { display:flex; align-items:center; gap:22px; list-style:none; margin:0; padding:0; }
.primary-menu a { font-size:14px; font-weight:700; }
.primary-menu a:hover, .footer-menu a:hover { color:#c91427; }
.menu-toggle { display:none; border:1px solid #ddd; background:#fff; border-radius:8px; padding:8px 12px; font-size:20px; }
.site-content { min-height:55vh; padding-top:55px; padding-bottom:70px; }
.regular-page { max-width:900px; }
.entry-title { line-height:1.2; margin-bottom:22px; }
.entry-content { color:#444; }
.entry-content a { color:#c91427; text-decoration:underline; }
.entry-content h2, .entry-content h3 { margin:28px 0 12px; line-height:1.25; }
.entry-content p { margin:0 0 18px; }
.site-footer { background:#171717; color:#fff; padding:28px 0; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.footer-inner p { margin:0; color:#bbb; font-size:13px; }
.footer-menu a { color:#ddd; font-size:13px; }
.skip-link { position:absolute; left:-9999px; top:auto; }
.skip-link:focus { left:10px; top:10px; z-index:99999; background:#fff; padding:10px; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.post-list { display:grid; gap:24px; }
.post-card { padding:24px; border:1px solid #eee; border-radius:14px; }
@media(max-width:700px) {
  .menu-toggle { display:block; }
  .site-navigation { display:none; position:absolute; top:76px; left:0; right:0; z-index:100; background:#fff; padding:18px 5%; border-bottom:1px solid #eee; }
  .site-navigation.is-open { display:block; }
  .primary-menu { flex-direction:column; align-items:flex-start; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
}
