/* ─── Componentes de página compartidos (subpáginas) ─── */

#hero-sub {
  padding: 170px 0 60px;
  background-color: var(--bg-white);
  text-align: center;
}
.hero-sub-text { max-width: 800px; margin: 0 auto; }
.hero-sub-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-sub-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark);
  line-height: 1.15;
}
.hero-sub-title span { color: var(--color-brand); }
.hero-sub-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

/* ─── Marcas de seguridad (Alarmas) ─── */
.security-brands-row { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.security-brand-logo { height: 126px; width: auto; }
.security-brand-logo.segurma-logo { height: 164px; }

/* ─── FAQ acordeón ─── */
#faqs { padding: 100px 0; background: var(--bg-white); }
.faq-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); }
.faq-header { padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.faq-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); transition: var(--transition); }
.faq-icon { font-size: 0.95rem; color: var(--color-brand); transition: var(--transition); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-content-inner { padding: 0 32px 24px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; border-top: 1px solid transparent; }
.faq-item.active { border-color: var(--color-brand); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); }
.faq-item.active .faq-header h3 { color: var(--color-brand); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-content-inner { border-top-color: var(--border-color); }

/* ─── Ventajas / tarjetas informativas ─── */
#ventajas { padding: 80px 0 100px; background: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.ventajas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.ventaja-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px 24px 32px; text-align: center; transition: var(--transition); }
.ventaja-card:hover { border-color: var(--color-brand); transform: translateY(-4px); }
.ventaja-icon { color: var(--color-brand); margin-bottom: 20px; display: inline-flex; background: var(--color-brand-light); width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; }
.ventaja-title { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 12px; font-weight: 800; }
.ventaja-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Comprobador de cobertura / holograma ─── */
#comprobador { padding: 40px 0 80px; background: var(--bg-white); }
.hologram-panel { max-width: 620px; margin: 0 auto; background: var(--bg-white); border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); border-radius: var(--radius); padding: 48px; position: relative; }
.hologram-title { font-size: 1.4rem; text-align: center; margin-bottom: 10px; color: var(--text-dark); }
.hologram-desc { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 32px; line-height: 1.5; }
.coverage-form { display: flex; flex-direction: column; gap: 18px; }
.radar-wrapper { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 30px 0; text-align: center; }
.radar-circle { width: 120px; height: 120px; border: 2px solid var(--border-color); border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; overflow: hidden; }
.radar-circle::before { content: ''; position: absolute; width: 100%; height: 100%; background: conic-gradient(from 0deg, var(--color-brand) 0%, transparent 60%); border-radius: 50%; animation: spinRadar 2s linear infinite; transform-origin: center; }
@keyframes spinRadar { to { transform: rotate(360deg); } }
.radar-dot { width: 12px; height: 12px; background: var(--color-brand); border-radius: 50%; position: relative; z-index: 5; box-shadow: 0 0 10px var(--color-brand); }
.radar-status { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text-dark); letter-spacing: 0.05em; }
.success-result { display: none; text-align: center; animation: fadeInResult 0.5s ease forwards; }
@keyframes fadeInResult { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--color-brand-light); color: var(--color-brand); font-size: 1.8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.success-title { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 12px; }
.success-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ─── Cobertura 5G (mapa) ─── */
#cobertura-5g { padding: 100px 0; background: var(--bg-white); }
.cov-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 60px; }
.cov-content h2 { font-size: 2.1rem; margin-bottom: 20px; }
.cov-content p { color: var(--text-muted); margin-bottom: 32px; font-size: 0.92rem; line-height: 1.6; }
.cov-feature { display: flex; gap: 16px; margin-bottom: 20px; background: var(--bg-light); padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.cov-feature-icon { width: 44px; height: 44px; background: var(--bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-brand); border: 1px solid var(--border-color); flex-shrink: 0; }
.cov-feature-text h4 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 4px; }
.cov-feature-text p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.4; }
.cov-grid-single { grid-template-columns: 1fr; }
.cov-grid-single .cov-content { max-width: 640px; margin: 0 auto; text-align: center; }
.cov-grid-single .cov-feature { text-align: left; }

/* ─── Configurador de TV modular ─── */
#configurador-tv { padding: 40px 0 80px; background: var(--bg-white); }
.tv-dashboard { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 48px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; }
.tv-config-panel h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 20px; margin-top: 32px; }
.tv-config-panel h3:first-child { margin-top: 0; }
.base-plans-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.base-plan-card { border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: 20px; cursor: pointer; transition: var(--transition); }
.base-plan-card:hover { border-color: var(--color-brand); }
.base-plan-card.active { border-color: var(--color-brand); background: var(--color-brand-light); }
.base-plan-title { font-family: var(--font-display); font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.base-plan-channels { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.base-plan-price { font-family: var(--font-display); font-weight: 800; color: var(--color-brand); }
.base-plan-price span { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.addons-group { display: flex; flex-direction: column; gap: 12px; }
.addon-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 18px; cursor: pointer; transition: var(--transition); }
.addon-item:hover { border-color: var(--color-brand); }
.addon-item.selected { border-color: var(--color-brand); background: var(--color-brand-light); }
.addon-left { display: flex; align-items: center; gap: 14px; }
.addon-checkbox { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: transparent; flex-shrink: 0; }
.addon-item.selected .addon-checkbox { background: var(--color-brand); border-color: var(--color-brand); color: white; }
.addon-info h4 { font-size: 0.85rem; color: var(--text-dark); margin-bottom: 2px; }
.addon-info p { font-size: 0.72rem; color: var(--text-muted); }
.addon-price { font-family: var(--font-display); font-weight: 800; color: var(--text-dark); white-space: nowrap; }
.tv-summary-panel { background: var(--bg-light); border-radius: var(--radius-sm); padding: 24px; display: flex; flex-direction: column; height: fit-content; }
.summary-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; margin-bottom: 16px; }
.summary-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.summary-item { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-main); }
.summary-total { border-top: 1px solid var(--border-color); padding-top: 16px; margin-bottom: 20px; }
.summary-total-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.summary-total-price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--color-brand); }
.summary-total-price span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.filter-btn { background: var(--bg-white); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 800; padding: 10px 20px; cursor: pointer; text-transform: uppercase; font-size: 0.75rem; transition: var(--transition); }
.filter-btn.active { background: var(--color-brand); border-color: var(--color-brand); color: white; }
.channels-text-columns { column-count: 4; column-gap: 40px; max-width: 1000px; margin: 0 auto; font-size: 0.85rem; line-height: 1.8; }
.channel-text-item { color: #cccccc; margin-bottom: 8px; }

/* ─── Cámaras de seguridad interactivas ─── */
.camera-interactive-container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.camera-info-box { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.camera-selector-lbl { display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; color: var(--text-dark); margin-bottom: 12px; letter-spacing: 0.05em; }
.camera-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cam-btn { padding: 12px; background: var(--bg-white); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: var(--transition); text-transform: uppercase; }
.cam-btn:hover { border-color: var(--color-brand); color: var(--text-dark); }
.cam-btn.active { background: var(--color-brand); border-color: var(--color-brand); color: white; box-shadow: 0 4px 10px rgba(16, 138, 84, 0.2); }
.camera-price-box { border-top: 1.5px dashed var(--border-color); padding-top: 20px; }
.cam-price-lbl { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.cam-price-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--color-brand); line-height: 1; }
.cam-price-val span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.camera-features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.camera-feature-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; }
.cam-icon { width: 36px; height: 36px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.camera-feature-card h5 { font-size: 0.85rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.camera-feature-card p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 0; }

.extra-items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extra-item-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 20px; text-align: center; transition: var(--transition); }
.extra-item-card:hover { border-color: var(--color-brand); }
.extra-item-icon { font-size: 1.6rem; margin-bottom: 10px; }
.extra-item-name { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.extra-item-price { font-size: 0.75rem; color: var(--color-brand); font-weight: 700; }

/* ─── Catálogo Renting ─── */
#device-renting { background: var(--bg-dark); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 60px 0 100px; color: white; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.catalog-sidebar { background: #11141c; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 24px; position: sticky; top: 110px; }
.catalog-sidebar h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: var(--color-brand); margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; letter-spacing: 0.05em; }
.catalog-sidebar .filter-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.catalog-sidebar .checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: #cccccc; cursor: pointer; }
.catalog-sidebar input[type="checkbox"] { accent-color: var(--color-brand); cursor: pointer; }
.devices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device-card { border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: 24px; background: #11141c; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition); }
.device-card:hover { border-color: var(--color-brand); transform: translateY(-3px); }
.device-badge { color: var(--color-brand); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 12px; }
.device-media { width: 100%; height: 140px; background: #181d28; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); margin-bottom: 16px; overflow: hidden; }
.device-media img { width: 100%; height: 100%; object-fit: contain; }
.device-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: white; margin-bottom: 8px; }
.device-price-row { margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.device-price-row .lbl { font-size: 0.85rem; color: #999999; display: block; margin-bottom: 2px; }
.device-price-row strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: white; }
.badge-new { display: inline-block; background: var(--color-brand); color: white; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 12px; }

/* ─── Páginas de texto (legal, gracias) ─── */
.page-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px;
}
.page-card h2, .page-card h3, .page-card h4 { color: var(--text-dark); margin: 24px 0 12px; }
.page-card h2:first-child, .page-card h3:first-child, .page-card h4:first-child { margin-top: 0; }
.page-card p, .page-card li { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.page-card ul { padding-left: 20px; margin-bottom: 12px; }
#page-hero { padding: 170px 0 40px; background: var(--bg-white); text-align: center; }

@media (max-width: 992px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ventajas-grid, .devices-grid, .extra-items-grid { grid-template-columns: repeat(2, 1fr); }
  .cov-grid { grid-template-columns: 1fr; gap: 40px; }
  .tv-dashboard { grid-template-columns: 1fr; padding: 32px; }
  .camera-interactive-container { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
}

@media (max-width: 600px) {
  .plans-grid, .ventajas-grid, .devices-grid, .extra-items-grid { grid-template-columns: 1fr !important; }
  .base-plans-group { grid-template-columns: 1fr; }
  .channels-text-columns { column-count: 2; }
  .hero-sub-title { font-size: 1.9rem; }
  .page-card { padding: 24px; }

  /* Espacios y paneles más compactos en móvil */
  .section-title { font-size: 1.6rem !important; }
  #hero-sub { padding: 110px 0 44px; }
  #faqs, #cobertura-5g, #ventajas { padding: 56px 0; }
  #comprobador { padding: 24px 0 56px; }
  #configurador-tv { padding: 24px 0 56px; }
  #device-renting { padding: 56px 0; }
  .hologram-panel { padding: 28px 20px; }
  .tv-dashboard { padding: 20px; gap: 28px; }
  .faq-header { padding: 18px 20px; }
  .faq-content-inner { padding: 0 20px 20px; }
  .form-section { padding: 28px 20px !important; }
  .catalog-sidebar { padding: 20px; }
  .base-plan-card { padding: 16px; }
  .addon-item { padding: 12px 14px; }

  /* Logos de marcas de seguridad (Alarmas) */
  .security-brands-row { gap: 24px; }
  .security-brand-logo { height: 60px; }
  .security-brand-logo.segurma-logo { height: 80px; }
}
