/* ═══════════════════════════════════════════════════════════
   Web Personal — Estilos para la landing page
   ═══════════════════════════════════════════════════════════ */

/* ── Contenedor base ── */
.wp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wp-container--narrow {
  max-width: 900px;
}

/* ── Secciones ── */
.wp-section {
  padding: 5rem 0;
}
.wp-section--light {
  background-color: var(--bg-light, #f8fafc);
}
.wp-section--accent {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}
.wp-section__heading {
  text-align: center;
  margin-bottom: 3rem;
}
.wp-section__heading h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark, #1e293b);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.wp-section__heading p {
  font-size: 1.125rem;
  color: var(--text-light, #64748b);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Badge ── */
.wp-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: var(--primary, #2563eb);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

/* ── Botones ── */
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.wp-btn--primary {
  background: var(--primary, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.wp-btn--primary:hover {
  background: var(--primary-dark, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}
.wp-btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}
.wp-btn--full {
  width: 100%;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.wp-hero {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 30%, #f0fdf4 70%, #fefce8 100%);
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.wp-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.wp-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark, #1e293b);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.wp-hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-light, #64748b);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.wp-hero__price {
  font-size: 1.25rem;
  color: var(--text-dark, #1e293b);
  margin-bottom: 1.25rem;
}
.wp-hero__price strong {
  font-size: 1.5rem;
  color: var(--primary, #2563eb);
}
.wp-hero__checks {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.wp-hero__checks li {
  font-size: 0.95rem;
  color: var(--text-dark, #1e293b);
}
.wp-hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg);
}
.wp-hero__registered-note {
  font-size: 0.9rem;
  color: var(--text-light, #64748b);
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-sm, 8px);
  border-left: 3px solid var(--primary, #2563eb);
}
.wp-hero__registered-note a {
  color: var(--primary, #2563eb);
  font-weight: 600;
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════ */
.wp-grid {
  display: grid;
  gap: 1.5rem;
}
.wp-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.wp-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Cards genéricos ── */
.wp-card {
  background: #fff;
  border-radius: var(--radius-md, 12px);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.wp-card--icon {
  text-align: center;
}
.wp-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.wp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
}

/* ── Feature items ── */
.wp-feature {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-md, 12px);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.wp-feature__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.wp-feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  margin: 0;
}

/* ═══════════════════════════════════════
   SPLIT LAYOUT (texto + imagen)
   ═══════════════════════════════════════ */
.wp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.wp-split--reverse .wp-split__text {
  order: 2;
}
.wp-split--reverse .wp-split__image {
  order: 1;
}
.wp-split__text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-dark, #1e293b);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.wp-split__text p {
  font-size: 1.05rem;
  color: var(--text-light, #64748b);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.wp-split__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg);
}

/* ── Listas ── */
.wp-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.wp-list li {
  padding: 0.35rem 0;
  font-size: 1rem;
  color: var(--text-dark, #1e293b);
}
.wp-list--check li::before {
  content: "✔ ";
  color: #16a34a;
  font-weight: 700;
  margin-right: 0.25rem;
}
.wp-text-strong {
  font-weight: 600;
  color: var(--text-dark, #1e293b);
}
.wp-text-muted {
  color: var(--text-light, #64748b);
  font-size: 0.95rem;
}
.wp-text-center {
  text-align: center;
}
.wp-mt-4 {
  margin-top: 2rem;
}

/* ═══════════════════════════════════════
   GALERÍA
   ═══════════════════════════════════════ */
.wp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.wp-gallery__item {
  position: relative;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.wp-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}
.wp-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 2rem 1rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.wp-pricing {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-pricing:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.wp-pricing--featured {
  border: 2px solid var(--primary, #2563eb);
  box-shadow: var(--shadow-md);
  transform: scale(1.04);
}
.wp-pricing--featured:hover {
  transform: scale(1.06);
}
.wp-pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #2563eb);
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.wp-pricing__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark, #1e293b);
  margin-bottom: 1rem;
}
.wp-pricing__price {
  font-family: 'Poppins', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary, #2563eb);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.wp-pricing__period {
  font-size: 0.9rem;
  color: var(--text-light, #64748b);
  margin-bottom: 1.5rem;
}
.wp-pricing__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}
.wp-pricing__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: var(--text-dark, #1e293b);
}
.wp-pricing__list li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   IDEAL-BOX
   ═══════════════════════════════════════ */
.wp-ideal-box {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid #e2e8f0;
}
.wp-ideal-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark, #1e293b);
}

/* ═══════════════════════════════════════
   SIMULADOR DE AHORRO
   ═══════════════════════════════════════ */
.wp-simulator {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wp-simulator__inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.wp-simulator__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  margin-bottom: 0.5rem;
}
.wp-simulator__field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm, 8px);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  text-align: center;
  transition: border-color 0.2s;
}
.wp-simulator__field input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.wp-simulator__result {
  padding: 2rem;
}
.wp-simulator__example {
  margin-bottom: 1.5rem;
}
.wp-simulator__example h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark, #1e293b);
}
.wp-simulator__savings {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: var(--radius-md, 12px);
  border: 1px solid #bbf7d0;
}
.wp-simulator__amount {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #16a34a;
  line-height: 1;
  margin: 0.75rem 0 0.25rem;
}
.wp-simulator__note {
  font-size: 1rem;
  color: var(--text-light, #64748b);
  margin-bottom: 0.75rem;
}
.wp-simulator__tip {
  font-size: 0.95rem;
  color: var(--text-dark, #1e293b);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   TABLA COMPARATIVA
   ═══════════════════════════════════════ */
.wp-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.wp-table th,
.wp-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.wp-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-dark, #1e293b);
  position: sticky;
  top: 0;
}
.wp-table__ours {
  background: rgba(37, 99, 235, 0.05);
}
.wp-table thead .wp-table__ours {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary, #2563eb);
}
.wp-table__highlight--red {
  color: #dc2626;
  font-weight: 600;
}
.wp-table__highlight--green {
  color: #16a34a;
  font-weight: 600;
}
.wp-table--compare {
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.wp-compare-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-md, 12px);
  border-left: 4px solid var(--primary, #2563eb);
  box-shadow: var(--shadow-sm);
}
.wp-compare-note p {
  font-size: 1rem;
  color: var(--text-dark, #1e293b);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.wp-faq__item {
  background: #fff;
  border-radius: var(--radius-md, 12px);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.wp-faq__item[open] {
  box-shadow: var(--shadow-md);
}
.wp-faq__question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}
.wp-faq__question::-webkit-details-marker {
  display: none;
}
.wp-faq__question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary, #2563eb);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.wp-faq__item[open] .wp-faq__question::after {
  content: "−";
}
.wp-faq__question:hover {
  color: var(--primary, #2563eb);
}
.wp-faq__answer {
  padding: 0 1.5rem 1.25rem;
}
.wp-faq__answer p {
  font-size: 1rem;
  color: var(--text-light, #64748b);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════ */
.wp-cta-final {
  background: linear-gradient(160deg, #1e3a5f 0%, #1e40af 50%, #1d4ed8 100%);
  color: #fff;
  text-align: center;
}
.wp-cta-final__content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.wp-cta-final__content > p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.wp-cta-final__prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.wp-cta-final__price-main {
  font-size: 1.5rem;
  font-weight: 700;
}
.wp-cta-final__price-main small {
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.85;
}
.wp-cta-final__price-renewal {
  font-size: 1rem;
  opacity: 0.8;
}
.wp-cta-final__checks {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  text-align: left;
}
.wp-cta-final__checks li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.wp-cta-final .wp-btn--primary {
  background: #fff;
  color: var(--primary, #2563eb);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.wp-cta-final .wp-btn--primary:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.wp-cta-final__exclusive {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(255,255,255,0.2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .wp-hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wp-hero__checks {
    justify-items: center;
  }
  .wp-hero__image {
    max-width: 600px;
    margin: 0 auto;
  }
  .wp-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-split {
    grid-template-columns: 1fr;
  }
  .wp-split--reverse .wp-split__text,
  .wp-split--reverse .wp-split__image {
    order: unset;
  }
  .wp-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wp-section {
    padding: 3.5rem 0;
  }
  .wp-hero {
    padding: 6rem 1rem 3rem;
  }
  .wp-hero__title {
    font-size: 1.75rem;
  }
  .wp-hero__checks {
    grid-template-columns: 1fr;
  }
  .wp-section__heading h2,
  .wp-split__text h2 {
    font-size: 1.5rem;
  }
  .wp-grid--3 {
    grid-template-columns: 1fr;
  }
  .wp-grid--4 {
    grid-template-columns: 1fr;
  }
  .wp-simulator__inputs {
    grid-template-columns: 1fr;
  }
  .wp-pricing--featured {
    transform: none;
  }
  .wp-pricing--featured:hover {
    transform: translateY(-4px);
  }
  .wp-gallery {
    grid-template-columns: 1fr;
  }
  .wp-cta-final__content h2 {
    font-size: 1.75rem;
  }
  .wp-cta-final__checks {
    grid-template-columns: 1fr;
  }
  .wp-simulator__amount {
    font-size: 2.25rem;
  }

  /* Tabla comparativa responsive */
  .wp-table--compare {
    font-size: 0.8rem;
  }
  .wp-table--compare th,
  .wp-table--compare td {
    padding: 0.6rem 0.5rem;
  }
  .wp-table--compare thead th {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}
