/* cyber.css — portada nueva de AI-Check Pro (versión cyber) + botón de WhatsApp.
   Se carga DESPUÉS de style.css y solo afecta a la portada (#landing) y al botón flotante. */
#landing.cyber-theme {
  --cy-bg: #121212;
  --cy-primary: #007BFF;
  --cy-accent: #00F2FF;
  --cy-border: #333333;
  --cy-text: #E0E0E0;
  
  background-color: var(--cy-bg);
  color: var(--cy-text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
#landing #cyber-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#landing .glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--cy-border);
}
#landing .text-primary { color: var(--cy-primary); }
#landing .text-accent { color: var(--cy-accent); }
#landing.cyber-theme * {
  position: relative;
  z-index: 1;
}



/* NAV */
#landing .ln-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#landing .ln-logo {display:flex;align-items:center;gap:10px;font-size:1.25rem;font-weight:800;color:#fff;letter-spacing:-0.5px}
#landing .ln-nav-links { display: flex; gap: 24px; }
#landing .ln-nav-links a { color: var(--cy-text); text-decoration: none; font-size: 0.9rem; transition: 0.2s; font-weight: 500; }
#landing .ln-nav-links a:hover { color: var(--cy-accent); }
#landing .btn-cyber-outline { background: transparent; border: 1px solid var(--cy-primary); color: var(--cy-text); padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: 0.2s; text-transform: uppercase; letter-spacing: 1px; }
#landing .btn-cyber-outline:hover { background: rgba(0,123,255,0.1); box-shadow: 0 0 10px rgba(0,123,255,0.3); }
#landing .btn-cyber-primary { background: var(--cy-primary); border: none; color: #fff; padding: 12px 28px; border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: 700; transition: 0.2s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 0 15px rgba(0,123,255,0.5); }
#landing .btn-cyber-primary:hover { background: #0056b3; box-shadow: 0 0 25px rgba(0,123,255,0.8); transform: translateY(-2px); }



/* HERO */
#landing .hero-cyber { display: flex; align-items: center; justify-content: center; padding: 80px 40px; max-width: 1200px; margin: 0 auto; width: 100%; min-height: 70vh; text-align: center; }
#landing .hero-content { flex: 1; max-width: 800px; margin: 0 auto; }
#landing .cyber-h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
#landing .cyber-p { font-size: 1.1rem; line-height: 1.6; color: #b0b0b0; margin-bottom: 32px; }
#landing .hero-actions { display: flex; justify-content: center; gap: 16px; }



/* PRICING */
#landing .pricing-cyber { padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
#landing .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
#landing .cyber-card { padding: 40px 30px; border-radius: 16px; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
#landing .cyber-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
#landing .cyber-card.popular { border-color: var(--cy-primary); box-shadow: 0 0 20px rgba(0,123,255,0.2); position: relative; }
#landing .cyber-card.popular:hover { box-shadow: 0 0 40px rgba(0,123,255,0.4); }
#landing .popular-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--cy-primary); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; box-shadow: 0 0 10px rgba(0,123,255,0.5); }
#landing .card-header { margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; text-align: center; }
#landing .card-header h3 { font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
#landing .context { font-size: 0.9rem; color: var(--cy-accent); font-style: italic; margin-bottom: 12px; }
#landing .price { font-size: 2.5rem; font-weight: 900; color: #fff; }
#landing .features-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
#landing .features-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; display: flex; align-items: flex-start; }
#landing .features-list li::before { content: '✓'; color: var(--cy-primary); font-weight: bold; margin-right: 10px; }
#landing .features-list li.highlight { color: var(--cy-accent); font-weight: 700; }
#landing .features-list li.highlight::before { color: var(--cy-accent); }



/* FEATURES GRID */
#landing .features-cyber { padding: 40px; max-width: 1200px; margin: 0 auto; }
#landing .cyber-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
#landing .cyber-icon-card { padding: 30px; border-radius: 12px; text-align: center; transition: 0.2s; }
#landing .cyber-icon-card:hover { border-color: var(--cy-accent); }
#landing .icon-wrapper { font-size: 2.5rem; margin-bottom: 16px; }
#landing .cyber-icon-card h4 { font-size: 1.2rem; margin-bottom: 12px; color: #fff; }
#landing .cyber-icon-card p { font-size: 0.9rem; color: #a0a0a0; line-height: 1.5; }



/* MOCKUP INTERACTIVE */
#landing .mockup-cyber { max-width: 600px; margin: 60px auto; border-radius: 20px; padding: 30px; text-align: center; overflow: hidden; position: relative; }
#landing .mockup-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 25px; }
#landing .mockup-header h3 { font-size: 1.2rem; margin: 0; }
#landing .status-live { color: #ff3b3b; font-size: 0.8rem; font-weight: bold; animation: pulse 1.5s infinite; }
#landing .mockup-score-ring { width: 150px; height: 150px; margin: 0 auto 30px; position: relative; }
#landing .score-circle { transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 2s ease-out; }
#landing .score-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: #fff; }
#landing .score-text span { font-size: 3rem; }
#landing .mockup-details { display: flex; flex-direction: column; gap: 12px; align-items: center; }
#landing .mockup-line { width: 80%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; }
#landing .mockup-line.short { width: 60%; }



/* FOOTER */
#landing .footer-cyber-bottom { text-align: center; padding: 40px 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; color: #666; font-size: 0.85rem; }
#landing .footer-links { margin-top: 16px; display: flex; justify-content: center; gap: 20px; }
#landing .footer-links a { color: #888; text-decoration: none; transition: 0.2s; }
#landing .footer-links a:hover { color: var(--cy-accent); }




@media(max-width: 1024px) {
#landing .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
#landing .hero-cyber { flex-direction: column; text-align: center; padding: 40px 20px; min-height: 50vh; }
#landing .cyber-h1 { font-size: 2.5rem; }
#landing .ln-nav { padding: 16px 20px; }
#landing .ln-nav-links { display: none; }
#landing .pricing-grid { grid-template-columns: 1fr; }
}

/* Refuerzos para convivir con el style.css actual */
#landing.cyber-theme { position: relative; overflow: hidden; min-height: 100vh; flex-direction: column; height: auto; inset: auto; padding: 0; background-color: #121212; color: #E0E0E0; }
#landing .status-live { animation: ln-pulse 1.5s infinite; }
@keyframes ln-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
#landing .card-header .price { margin-top: 4px; }
#landing .cyber-card .wa-plan { margin-top: 24px; text-align: center; text-decoration: none; display: block; }

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.floating-wa { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,.45); z-index: 9999; transition: transform .2s; text-decoration: none; animation: wa-ring 2s infinite; }
.floating-wa:hover { transform: scale(1.1); }
@keyframes wa-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
  70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.floating-wa .wa-tip { position: absolute; right: 72px; background: #111; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: .8rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.floating-wa:hover .wa-tip { opacity: 1; }
@media (max-width: 768px) { .floating-wa { bottom: 18px; right: 16px; width: 54px; height: 54px; } .floating-wa .wa-tip { display: none; } }

/* El botón de WhatsApp dentro de #landing / #servicesPage debe ganarle a la regla "position: relative" de la portada */
#landing .floating-wa, #servicesPage .floating-wa { position: fixed; z-index: 9999; }
#landing .floating-wa .wa-tip, #servicesPage .floating-wa .wa-tip { position: absolute; }

/* ===== CALCULADORA DE RIESGO Y AHORRO ===== */
#landing .calc-cyber { padding: 20px 40px 60px; max-width: 1200px; margin: 0 auto; }
#landing .calc-wrap { border-radius: 20px; padding: 36px; }
#landing .calc-head { text-align: center; margin-bottom: 28px; }
#landing .calc-title { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: -.5px; }
#landing .calc-sub { color: #b0b0b0; font-size: 1rem; }
#landing .calc-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
#landing .calc-label { display: block; font-size: .85rem; color: #b0b0b0; margin: 14px 0 6px; }
#landing .calc-opt { color: #777; }
#landing .calc-input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--cy-border); background: rgba(0,0,0,.35); color: #fff; font-size: 1rem; outline: none; transition: .2s; }
#landing .calc-input:focus { border-color: var(--cy-primary); box-shadow: 0 0 0 3px rgba(0,123,255,.25); }
#landing .calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#landing .calc-submit { width: 100%; margin-top: 22px; }
#landing .calc-error { min-height: 20px; margin-top: 10px; color: #ff6b6b; font-size: .85rem; }

#landing .calc-result { border: 1px dashed rgba(255,255,255,.15); border-radius: 14px; padding: 24px; min-height: 340px; display: flex; align-items: center; justify-content: center; }
#landing .calc-placeholder { text-align: center; color: #888; max-width: 320px; }
#landing .calc-ph-icon { font-size: 3rem; margin-bottom: 10px; opacity: .6; }
#landing .calc-output { display: none; width: 100%; }
#landing .calc-result.ready { border-style: solid; border-color: rgba(0,242,255,.25); background: rgba(0,0,0,.2); align-items: flex-start; }
#landing .calc-result.ready .calc-placeholder { display: none; }
#landing .calc-result.ready .calc-output { display: block; }

#landing .calc-gauge { position: relative; width: 240px; max-width: 100%; margin: 0 auto 8px; }
#landing .calc-gauge svg { width: 100%; display: block; }
#landing #calc-arc { transition: stroke-dashoffset 1.2s ease-out, stroke .4s; }
#landing .calc-gauge-text { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
#landing .calc-gauge-text #calc-risk-num { font-size: 2.6rem; font-weight: 900; color: #fff; }
#landing .calc-gauge-text small { color: #999; font-size: 1rem; }
#landing .calc-risk-label { font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; }

#landing .calc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 14px; }
#landing .calc-metric { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }
#landing .calc-m-title { font-size: .78rem; color: var(--cy-accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
#landing .calc-m-value { font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.3; }
#landing .calc-m-note { font-size: .74rem; color: #888; margin-top: 6px; line-height: 1.35; }
#landing .calc-ratio { font-size: .92rem; color: #d5d5d5; background: rgba(0,123,255,.12); border-left: 3px solid var(--cy-primary); padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
#landing .calc-alerts { list-style: none; padding: 0; margin: 0 0 18px; }
#landing .calc-alerts li { font-size: .85rem; color: #c8c8c8; padding: 6px 0 6px 22px; position: relative; line-height: 1.4; }
#landing .calc-alerts li::before { content: '⚠'; position: absolute; left: 0; color: #facc15; }
#landing .calc-cta { display: block; text-align: center; text-decoration: none; background: #25D366; box-shadow: 0 0 15px rgba(37,211,102,.45); }
#landing .calc-cta:hover { background: #1ebe5b; box-shadow: 0 0 25px rgba(37,211,102,.7); }
#landing .calc-disclaimer { margin-top: 22px; font-size: .75rem; color: #777; text-align: center; line-height: 1.5; }
#landing .hero-actions { flex-wrap: wrap; }

@media (max-width: 900px) {
  #landing .calc-cyber { padding: 10px 16px 40px; }
  #landing .calc-wrap { padding: 22px 18px; }
  #landing .calc-title { font-size: 1.5rem; }
  #landing .calc-body { grid-template-columns: 1fr; }
  #landing .calc-metrics { grid-template-columns: 1fr; }
}
