/* ============================================================
   components.css — Componentes adicionales y micro-detalles
   ============================================================ */

/* ── Tooltip ──────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,20,40,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  color: #E8EDF5;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  backdrop-filter: blur(8px);
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Notification Toast ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(15,20,40,0.95);
  border: 1px solid rgba(4,171,240,0.2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.875rem;
  color: #E8EDF5;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.35s cubic-bezier(0.22,1,0.36,1) both;
  max-width: 300px;
}
.toast.removing { animation: slideOutRight 0.3s ease forwards; }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(20px); }
}

/* ── Separator ────────────────────────────────────────────── */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 0;
}

/* ── Shine effect on buttons ──────────────────────────────── */
.btn-primary .shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover .shine { left: 150%; }

/* ── Platform brand colors ────────────────────────────────── */
.brand-windows {
  background: linear-gradient(135deg, rgba(0,120,212,0.2), rgba(0,164,239,0.15));
  border-color: rgba(0,120,212,0.3);
  color: #60A5FA;
}
.brand-android {
  background: linear-gradient(135deg, rgba(61,220,132,0.15), rgba(56,165,107,0.1));
  border-color: rgba(61,220,132,0.25);
  color: #6EE7B7;
}
.brand-web {
  background: linear-gradient(135deg, rgba(4,171,240,0.15), rgba(18,78,151,0.12));
  border-color: rgba(4,171,240,0.25);
  color: #7DD3FC;
}

/* ── Divider with text ────────────────────────────────────── */
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text3);
  font-size: 0.78rem;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Number counter animation ─────────────────────────────── */
.counter { transition: all 0.6s ease; }

/* ── Floating notification ────────────────────────────────── */
.floating-notif {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(10,15,30,0.9);
  border: 1px solid rgba(4,171,240,0.2);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  font-size: 0.78rem;
  font-weight: 600;
  animation: floatPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  z-index: 20;
  white-space: nowrap;
}
.notif-1 { bottom: -20px; right: -20px; animation-delay: 1s; }
.notif-2 { top: -15px; right: 30px; animation-delay: 1.5s; }
@keyframes floatPop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Glow line ────────────────────────────────────────────── */
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.5;
  margin: 0 auto;
  width: 80%;
  border-radius: 1px;
}

/* ── Compatible brands strip ──────────────────────────────── */
.brands-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}
.brands-strip:hover { opacity: 0.8; filter: none; }
.brand-logo {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text2);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
}

/* ── Mockup Status Indicator ──────────────────────────────── */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  color: #6EE7B7;
}
.live-dot {
  width: 6px; height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ── Table comparison ─────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.compare-table th { font-weight: 700; color: var(--text); }
.compare-table td:first-child { text-align: left; color: var(--text2); }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

/* ── Blur overlay for mobile nav ──────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}
.nav-overlay.open { display: block; }

/* ── Scroll to top button ─────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px; height: 42px;
  background: var(--surface2);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  z-index: 500;
  backdrop-filter: blur(8px);
}
#scroll-top.visible { opacity: 1; transform: none; }
#scroll-top:hover { background: var(--surface3); color: var(--cyan); border-color: rgba(4,171,240,0.3); }

/* ═══════════════════════════════════════════════════════════
   FOOTER — datos comerciales
   ═══════════════════════════════════════════════════════════ */
.footer-legal-info {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text3);
  margin: 12px 0 18px;
}
.footer-legal-info strong { color: var(--text2); font-weight: 700; }
.footer-legal-info a { color: var(--text2); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-info a:hover { color: var(--brand-cyan); }

.footer-bottom { gap: 12px 24px; flex-wrap: wrap; }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-cookie-btn {
  background: none; border: none; padding: 0;
  font: inherit; font-size: 0.78rem; color: var(--text2); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.footer-cookie-btn:hover { color: var(--brand-cyan); }

/* ═══════════════════════════════════════════════════════════
   BANNER DE COOKIES
   ═══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 16px;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 420px; min-width: 0; }
.cookie-banner-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 0.82rem; color: var(--text2); line-height: 1.5; }
.cookie-banner-text a { color: var(--brand-cyan); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   MODAL DE PREFERENCIAS DE COOKIES
   ═══════════════════════════════════════════════════════════ */
.cookie-modal { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,8,15,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cookie-modal-panel {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 85vh; overflow-y: auto;
  background: rgba(13,21,48,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cookie-modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.cookie-modal-close {
  background: none; border: none; color: var(--text2);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
}
.cookie-modal-close:hover { color: var(--text); background: var(--surface2); }
.cookie-modal-body { padding: 20px 24px; }
.cookie-modal-body > p { font-size: 0.85rem; color: var(--text2); margin-bottom: 20px; }
.cookie-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.cookie-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cookie-row:first-of-type { border-top: none; }
.cookie-row-info { min-width: 0; }
.cookie-row-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.cookie-row-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.5; }
.cookie-row-always {
  font-size: 0.72rem; font-weight: 700; color: var(--brand-cyan);
  background: var(--cyan-dim); border: 1px solid rgba(4,171,240,0.25);
  padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap;
}

/* Switch accesible (label + checkbox real) */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--surface3); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full); transition: 0.2s;
}
.cookie-switch-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.2s;
}
.cookie-switch input:checked + .cookie-switch-slider { background: var(--brand-cyan); border-color: var(--brand-cyan); }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch-slider { outline: 3px solid var(--brand-cyan); outline-offset: 2px; }
