/* ============================================================
   WILLOR SOLUCIONES — Curso Concurso Docente
   styles.css
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:       #0D1B3E;
  --navy-light: #162952;
  --navy-card:  #1a2f5a;
  --gold:       #F5A623;
  --gold-dark:  #D4891A;
  --white:      #FFFFFF;
  --gray:       #F4F6FA;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --green:      #25D366;
  --red:        #ef4444;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul, ol { list-style: none; }

/* --- Tipografía base --- */
h1, h2, h3 { line-height: 1.1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
}
.nav__logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: contain;
}
.nav__brand {
  color: var(--white); font-weight: 800; font-size: 16px;
}
.nav__brand span { color: var(--gold); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 9px 22px; border-radius: 50px;
  font-weight: 800; font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(245,166,35,0.45);
}
.nav__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   SECCIONES — base
   ============================================================ */
.section { padding: 80px 24px; }
.section__inner { max-width: 900px; margin: 0 auto; }

.section__tag {
  font-size: 12px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  color: var(--navy); line-height: 1.1;
  margin-bottom: 16px;
}
.section__title span { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 24px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -50px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__inner {
  max-width: 700px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--gold);
  padding: 7px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 28px;
  animation: fadeDown 0.6s ease both;
}
.hero__badge svg { width: 16px; height: 16px; }

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 8vw, 64px);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.hero__title span { color: var(--gold); }

.hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(15px, 3vw, 18px);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeDown 0.6s 0.2s ease both;
}
.hero__sub strong { color: var(--white); }

.hero__btns {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  animation: fadeDown 0.6s 0.3s ease both;
}

.hero__stats {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 52px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeDown 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; color: var(--gold);
}
.stat__label {
  font-size: 12px; color: rgba(255,255,255,0.6);
  font-weight: 600; letter-spacing: 0.5px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 16px 32px; border-radius: 50px;
  font-weight: 900; font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 25px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245,166,35,0.45);
  color: var(--navy);
}
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(245,166,35,0.1);
  color: var(--white);
}

/* ============================================================
   PROBLEMA
   ============================================================ */
.problem { background: var(--gray); }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 40px;
}
.problem__card {
  background: var(--white);
  border-radius: 16px; padding: 24px;
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex; gap: 14px; align-items: flex-start;
}
.problem__icon {
  width: 40px; height: 40px; min-width: 40px;
  background: #fef2f2; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.problem__icon svg { width: 20px; height: 20px; }
.problem__text {
  font-size: 15px; font-weight: 600;
  color: var(--text); line-height: 1.5;
}
.problem__close {
  text-align: center; margin-top: 36px;
  font-size: 18px; font-weight: 800; color: var(--navy);
  padding: 20px 24px; background: var(--white);
  border-radius: 16px; border: 2px dashed var(--gold);
}
.problem__close strong { color: var(--gold); }

/* ============================================================
   SOLUCIÓN
   ============================================================ */
.solution__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.solution__card {
  background: var(--white);
  border-radius: 20px; padding: 28px 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.solution__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.solution__icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}
.solution__icon svg { width: 26px; height: 26px; }
.solution__card h3 {
  font-size: 17px; font-weight: 800;
  color: var(--navy); margin-bottom: 8px;
}
.solution__card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   MARCO LEGAL
   ============================================================ */
.legal { background: var(--navy); }
.legal .section__title { color: var(--white); }

.legal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 40px;
}
.legal__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 22px;
  transition: background 0.2s, border-color 0.2s;
}
.legal__card:hover {
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.3);
}
.legal__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px; letter-spacing: 1px;
  color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.legal__star {
  display: inline-block;
  width: 16px; height: 16px; color: var(--gold);
}
.legal__star svg { width: 14px; height: 14px; }
.legal__card h3 {
  font-size: 15px; font-weight: 800;
  color: var(--white); margin-bottom: 6px;
}
.legal__card p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.legal__priority {
  margin-top: 32px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 16px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.legal__priority p {
  color: var(--gold); font-weight: 800; font-size: 14px;
  flex: 1; min-width: 200px;
}
.priority-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.priority-tag {
  padding: 6px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 800; color: var(--navy);
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios { background: var(--gray); }

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.testi-card {
  background: var(--white);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
}
.testi-card::before {
  content: '"';
  position: absolute; top: 16px; right: 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px; color: var(--gold); opacity: 0.15;
  line-height: 1; pointer-events: none;
}
.testi-card__stars { color: var(--gold); font-size: 16px; margin-bottom: 14px; }
.testi-card__text {
  font-size: 15px; line-height: 1.7;
  color: var(--text); margin-bottom: 20px; font-style: italic;
}
.testi-card__author { font-weight: 800; font-size: 14px; color: var(--navy); }
.testi-card__role { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   PRECIO
   ============================================================ */
.precio { text-align: center; }

.price-box {
  max-width: 480px; margin: 40px auto 0;
  background: var(--navy);
  border-radius: 28px; padding: 44px 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,27,62,0.3);
}
.price-box::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,166,35,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.price-box__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy);
  padding: 6px 20px; border-radius: 50px;
  font-weight: 900; font-size: 13px;
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.price-box__badge svg { width: 14px; height: 14px; }
.price-box__old {
  text-decoration: line-through;
  color: rgba(255,255,255,0.4);
  font-size: 18px; font-weight: 600;
}
.price-box__current {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px; color: var(--gold);
  line-height: 1; margin: 8px 0 4px;
}
.price-box__current span { font-size: 36px; }
.price-box__desc {
  color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 28px;
}
.price-box__features { text-align: left; margin-bottom: 32px; }
.price-feature {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85); font-size: 15px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.price-feature:last-child { border-bottom: none; }
.price-feature__check { color: var(--gold); flex-shrink: 0; }
.price-feature__check svg { width: 18px; height: 18px; }

.btn-price {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--gold); color: var(--navy);
  padding: 18px; border-radius: 50px;
  font-weight: 900; font-size: 17px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 25px rgba(245,166,35,0.4);
}
.btn-price:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 35px rgba(245,166,35,0.5);
  color: var(--navy);
}
.btn-price svg { width: 22px; height: 22px; flex-shrink: 0; }

.price-box__urgency {
  text-align: center; margin-top: 14px;
  color: rgba(255,255,255,0.5); font-size: 13px;
}
.price-box__urgency strong { color: var(--gold); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--gray); }

.faq__list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.faq__question {
  padding: 20px 24px;
  font-weight: 800; font-size: 15px; color: var(--navy);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq__arrow {
  color: var(--gold); font-size: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 15px; color: var(--muted); line-height: 1.7;
  padding: 0 24px;
}
.faq__item.open .faq__answer { max-height: 200px; padding: 0 24px 20px; }
.faq__item.open .faq__arrow { transform: rotate(45deg); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 6vw, 52px);
  color: var(--white); line-height: 1.1;
  margin-bottom: 16px; position: relative;
}
.cta-final__title span { color: var(--gold); }
.cta-final__sub {
  color: rgba(255,255,255,0.7); font-size: 16px;
  max-width: 500px; margin: 0 auto 36px; line-height: 1.7;
  position: relative;
}
.cta-final__sub strong { color: var(--white); }
.cta-final .btn-primary { font-size: 17px; padding: 18px 40px; position: relative; }
.cta-final__contact {
  margin-top: 28px; color: rgba(255,255,255,0.5);
  font-size: 13px; position: relative;
}
.cta-final__contact a { color: var(--gold); font-weight: 700; }
.cta-final__slogan {
  margin-top: 10px; color: rgba(255,255,255,0.3);
  font-size: 12px; font-style: italic; position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080f1f;
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.footer span { color: var(--gold); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 35px rgba(37,211,102,0.7); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .hero__stats { gap: 24px; }
  .price-box { padding: 32px 20px; }
  .price-box__current { font-size: 56px; }
  .nav__brand { font-size: 14px; }
  .section { padding: 60px 20px; }
}
