/**
 * Landing Gaming - CMS
 * Cargado solo en páginas CMS. Usar clase .fw-landing en el contenido.
 */

/* Evitar scroll horizontal cuando el landing usa ancho completo */
body:has(.fw-landing) {
  overflow-x: hidden;
}

/* Evitar que el contenedor CMS restrinja el landing */
.page-cms:has(.fw-landing) {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Romper del contenedor del tema: ancho completo viewport */
.page-cms .fw-landing {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Reset: evitar que el tema distorsione el landing */
.page-cms .fw-landing,
.page-cms .fw-landing *,
.page-cms .fw-landing *::before,
.page-cms .fw-landing *::after {
  box-sizing: border-box;
}

.page-cms .fw-landing a {
  color: inherit;
}

.fw-landing {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

.fw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* HERO */
.fw-hero {
  background: #f7f7f7;
  padding: 60px 0;
  margin: 0;
}

.fw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fw-tag {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 6px 12px !important;
  font-size: 13px;
  margin-bottom: 15px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fw-hero h1 {
  font-size: 42px;
  margin: 10px 0 20px 0;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.fw-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 20px 0;
}

.fw-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 100%;
}

/* BOTÓN */
.fw-btn-primary {
  display: inline-block;
  background: #ff7a00;
  color: #fff !important;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  margin-top: 20px;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.fw-btn-primary:hover {
  background: #e56d00;
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none !important;
}

.fw-btn-large {
  font-size: 18px;
  padding: 16px 32px;
}

/* TRUST */
.fw-trust-mini {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.fw-trust-mini span {
  margin-right: 15px;
  display: inline-block;
}

/* BENEFICIOS */
.fw-benefits {
  padding: 60px 0;
  background: #fff;
}

.fw-benefits h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 700;
  color: #222;
}

.fw-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.fw-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.fw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fw-card h3 {
  font-size: 20px;
  margin: 0 0 10px 0;
  font-weight: 600;
  color: #222;
}

.fw-card p {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* CARACTERÍSTICAS TÉCNICAS INTEGRADAS */
.fw-specs-list {
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ff7a00;
}

.fw-spec-check {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  transition: transform 0.2s;
}

.fw-spec-check:last-child {
  margin-bottom: 0;
}

.fw-spec-check:hover {
  transform: translateX(5px);
}

.fw-spec-check .fw-spec-icon {
  font-size: 24px;
  margin-right: 12px;
  min-width: 28px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.fw-spec-check .fw-spec-text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  flex: 1;
}

.fw-spec-check .fw-spec-text strong {
  color: #222;
  font-weight: 600;
}

/* PRODUCTO */
.fw-product {
  padding: 60px 0;
  background: #fafafa;
}

.fw-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fw-product-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 100%;
}

.fw-badge {
  display: inline-block;
  background: #eee;
  padding: 6px 10px;
  margin-right: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  border-radius: 4px;
  color: #333;
}

.fw-product-info h2 {
  font-size: 32px;
  margin: 15px 0;
  font-weight: 700;
  color: #222;
}

.fw-note {
  margin: 15px 0;
  color: #555;
  font-size: 16px;
}

/* PRECIO */
.fw-price {
  margin: 20px 0 8px 0;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.fw-price strong {
  font-size: 32px;
  font-weight: 700;
  color: #ff7a00;
  display: inline-block;
  margin-left: 5px;
}

.fw-price-note {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #888;
  font-style: italic;
  line-height: 1.4;
}

/* CTA FINAL */
.fw-final {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  margin: 0;
}

.fw-final h2 {
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.fw-final .fw-btn-primary {
  background: #ff7a00;
}

.fw-final .fw-btn-primary:hover {
  background: #e56d00;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .fw-hero-grid,
  .fw-product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .fw-hero {
    padding: 40px 0;
  }

  .fw-hero h1 {
    font-size: 34px;
  }

  .fw-hero p {
    font-size: 16px;
  }

  .fw-hero-text {
    order: 1;
  }

  .fw-hero-image {
    order: 0;
  }

  .fw-benefits,
  .fw-product {
    padding: 40px 0;
  }

  .fw-benefits h2,
  .fw-product-info h2 {
    font-size: 28px;
  }

  .fw-price {
    font-size: 16px;
    margin: 18px 0 6px 0;
  }

  .fw-price strong {
    font-size: 28px;
  }

  .fw-price-note {
    font-size: 12px;
  }

  .fw-specs-list {
    padding: 16px;
    margin: 20px 0;
  }

  .fw-spec-check {
    margin-bottom: 10px;
  }

  .fw-spec-check .fw-spec-icon {
    font-size: 22px;
    margin-right: 10px;
    min-width: 26px;
  }

  .fw-spec-check .fw-spec-text {
    font-size: 14px;
  }

  .fw-container {
    padding: 24px 16px;
  }

  .fw-final {
    padding: 40px 16px;
  }

  .fw-final h2 {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .fw-hero h1 {
    font-size: 28px;
  }

  .fw-benefits-grid {
    grid-template-columns: 1fr;
  }

  .fw-specs-list {
    padding: 14px;
  }

  .fw-spec-check .fw-spec-icon {
    font-size: 20px;
    margin-right: 8px;
    min-width: 24px;
  }

  .fw-spec-check .fw-spec-text {
    font-size: 13px;
  }

  .fw-price {
    font-size: 15px;
    margin: 15px 0 5px 0;
  }

  .fw-price strong {
    font-size: 24px;
  }

  .fw-price-note {
    font-size: 11px;
  }

  .fw-btn-primary {
    width: 100%;
    text-align: center;
    display: block;
  }

  .fw-final h2 {
    font-size: 22px;
  }
}

/* ============================================
   ESTILOS COMPARATIVO GAMING
   ============================================ */

/* Hero Intro Comparativo */
.fw-hero-intro {
  text-align: center;
  margin-bottom: 40px;
}

.fw-hero-title-comp {
  font-size: 42px;
  margin: 20px 0;
  font-weight: 700;
  color: #222;
}

.fw-hero-subtitle-comp {
  font-size: 20px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* Alerta de Ahorro */
.fw-savings-alert {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: #fff3cd;
  border-radius: 8px;
  border-left: 4px solid #ff7a00;
}

.fw-savings-text {
  margin: 0;
  font-size: 16px;
  color: #856404;
  font-weight: 600;
}

/* Títulos de Sección Comparativo */
.fw-section-title-comp {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #222;
}

.fw-section-title-smaller {
  font-size: 32px;
  margin-bottom: 50px;
}

/* CTA Final Comparativo */
.fw-final-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.fw-final-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.fw-btn-final-ml {
  background: #ff7a00 !important;
  min-width: 200px;
}

.fw-btn-final-fb {
  background: rgba(255,255,255,0.2) !important;
  border: 2px solid #fff !important;
  min-width: 200px;
  color: #fff !important;
}

.fw-btn-final-fb:hover {
  background: rgba(255,255,255,0.3) !important;
  color: #fff !important;
}

/* HERO COMPARATIVO */
.fw-comparison-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin: 50px 0;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
}

.fw-comp-product {
  text-align: center;
  position: relative;
}

.fw-comp-badge {
  display: inline-block;
  background: #333;
  color: #fff;
  color: #fff !important;
  padding: 8px 16px !important;
  font-size: 12px;
  font-weight: 700;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.fw-comp-badge-best {
  background: #ff7a00 !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fw-comp-image {
  margin: 20px 0;
}

.fw-comp-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.fw-comp-product:hover .fw-comp-image img {
  transform: scale(1.05);
}

.fw-comp-price {
  margin-top: 20px;
}

.fw-comp-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fw-comp-price strong {
  font-size: 32px;
  font-weight: 700;
  color: #ff7a00;
  display: block;
}

.fw-comp-vs {
  font-size: 48px;
  font-weight: 700;
  color: #999;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* TABLA COMPARATIVA */
.fw-comparison-table-section {
  padding: 70px 0;
  background: #fff;
}

.fw-comparison-table {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.fw-comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid #e0e0e0;
}

.fw-comp-row:last-child {
  border-bottom: none;
}

.fw-comp-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
}

.fw-comp-cell {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fw-comp-feature {
  background: #f8f9fa;
  font-weight: 600;
  color: #222;
  text-align: left !important;
  align-items: flex-start !important;
}

.fw-comp-icon {
  margin-right: 8px;
  font-size: 20px;
}

.fw-comp-ml-cell {
  background: #fff;
  border-left: 3px solid #ff7a00;
}

.fw-comp-fb-cell {
  background: #fff;
  border-left: 3px solid #333;
}

.fw-comp-platform {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.fw-comp-price-small {
  font-size: 14px;
  opacity: 0.9;
}

.fw-comp-winner {
  background: #f0f9ff !important;
  position: relative;
}

.fw-comp-badge-win {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 5px;
  font-weight: 600;
  text-transform: uppercase;
}

/* VEREDICTO */
.fw-verdict {
  padding: 70px 0;
  background: linear-gradient(135deg, #ff7a00 0%, #ff9500 100%);
  color: #fff;
  text-align: center;
}

.fw-verdict-content {
  max-width: 800px;
  margin: 0 auto;
}

.fw-verdict-icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.fw-verdict h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.fw-verdict-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: rgba(255,255,255,0.95);
}

.fw-verdict-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 25px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.95);
  list-style: none;
  padding: 0;
}

.fw-verdict-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.fw-verdict-list li:last-child {
  border-bottom: none;
}

.fw-verdict-note {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  border-left: 4px solid #fff;
}

/* PRODUCTOS SHOWCASE */
.fw-products-showcase {
  padding: 70px 0;
  background: #fafafa;
}

.fw-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.fw-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.fw-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.fw-product-card.fw-product-featured {
  border: 3px solid #ff7a00;
  box-shadow: 0 10px 35px rgba(255, 122, 0, 0.3);
}

.fw-product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.fw-product-badge-best {
  background: #ff7a00;
  animation: pulse 2s infinite;
}

.fw-product-card-image {
  padding: 30px;
  background: #f8f9fa;
  text-align: center;
}

.fw-product-card-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.fw-product-card-content {
  padding: 30px;
}

.fw-product-card-content h3 {
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: #222;
}

.fw-product-card-price {
  margin: 15px 0;
}

.fw-price-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.fw-product-card-price strong {
  font-size: 28px;
  font-weight: 700;
  color: #ff7a00;
}

.fw-product-card-note {
  font-size: 12px;
  color: #888;
  margin: 10px 0 20px 0;
  font-style: italic;
}

.fw-product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.fw-spec-mini {
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.fw-btn-secondary {
  display: inline-block;
  background: #333;
  color: #fff !important;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  margin-top: 20px;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.fw-btn-secondary:hover {
  background: #222;
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none !important;
}

/* RESPONSIVE COMPARATIVO */
@media (max-width: 991px) {
  .fw-comparison-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fw-comp-vs {
    font-size: 36px;
    order: 2;
  }

  .fw-comp-product {
    order: 1;
  }

  .fw-comp-product:last-of-type {
    order: 3;
  }

  .fw-comp-row {
    grid-template-columns: 1fr;
  }

  .fw-comp-cell {
    padding: 15px;
  }

  .fw-comp-feature {
    background: #e9ecef;
    font-weight: 700;
    border-bottom: 2px solid #ccc;
  }

  .fw-comp-ml-cell,
  .fw-comp-fb-cell {
    border-left: none;
    border-top: 3px solid;
  }

  .fw-comp-ml-cell {
    border-top-color: #ff7a00;
  }

  .fw-comp-fb-cell {
    border-top-color: #333;
  }

  .fw-products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fw-verdict h2 {
    font-size: 28px;
  }

  .fw-verdict-text {
    font-size: 16px;
  }

  .fw-hero-title-comp {
    font-size: 32px;
  }

  .fw-hero-subtitle-comp {
    font-size: 18px;
  }

  .fw-section-title-comp {
    font-size: 28px;
  }

  .fw-section-title-smaller {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .fw-comparison-hero {
    padding: 20px 15px;
  }

  .fw-comp-price strong {
    font-size: 24px;
  }

  .fw-comp-vs {
    font-size: 24px;
  }

  .fw-verdict-icon {
    font-size: 48px;
  }

  .fw-verdict h2 {
    font-size: 24px;
  }

  .fw-product-card-content h3 {
    font-size: 20px;
  }

  .fw-product-card-price strong {
    font-size: 24px;
  }

  .fw-hero-title-comp {
    font-size: 26px;
  }

  .fw-hero-subtitle-comp {
    font-size: 16px;
  }

  .fw-section-title-comp {
    font-size: 24px;
  }

  .fw-section-title-smaller {
    font-size: 22px;
  }

  .fw-savings-alert {
    padding: 15px;
  }

  .fw-savings-text {
    font-size: 14px;
  }

  .fw-final-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .fw-btn-final-ml,
  .fw-btn-final-fb {
    width: 100%;
    min-width: auto;
  }
}
