/* ============================================================
   davidroblestech.com — Estilos principales
   Paleta: #080C14 bg · #0070F3 blue · #00D4FF cyan · #0F172A surface
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #080C14;
  --surface:   #0F172A;
  --card:      #111827;
  --border:    #1E293B;
  --blue:      #0070F3;
  --cyan:      #00D4FF;
  --blue-dim:  rgba(0,112,243,0.15);
  --cyan-dim:  rgba(0,212,255,0.10);
  --text:      #F1F5F9;
  --muted:     #94A3B8;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 540px;
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ─── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,112,243,0.3);
}
.btn-primary:hover {
  background: #0060df;
  box-shadow: 0 0 30px rgba(0,112,243,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 20px rgba(37,211,102,0.3);
}
.btn-wa:hover {
  background: #1ebe5d;
  box-shadow: 0 0 30px rgba(37,211,102,0.5);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,112,243,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,212,255,0.08) 0%, transparent 50%),
    radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-dim);
  border: 1px solid rgba(0,112,243,0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ─── Servicios ─────────────────────────────────────────────── */
.servicios { background: var(--surface); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-sub { margin: 0.75rem auto 0; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.servicio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s;
}
.servicio-card:hover { border-color: rgba(0,112,243,0.4); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.servicio-card:hover::before { opacity: 1; }
.servicio-card.destacado { border-color: rgba(0,112,243,0.25); }
.servicio-card.destacado::before { opacity: 0.6; }

.servicio-icon {
  width: 44px; height: 44px;
  background: var(--blue-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.servicio-icon svg { width: 22px; height: 22px; }

.servicio-nombre { font-size: 1.05rem; font-weight: 700; }
.servicio-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }

.servicio-cta {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.servicio-cta:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* ─── Demos ──────────────────────────────────────────────────── */
.demos-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filtro-btn {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
}
.filtro-btn:hover, .filtro-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}
.demo-card:hover { border-color: rgba(0,112,243,0.4); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

.demo-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.demo-card:hover .demo-thumb img { transform: scale(1.04); }

.demo-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.demo-card:hover .demo-thumb-overlay { opacity: 1; }
.demo-thumb-overlay svg { color: #fff; width: 40px; height: 40px; }

.demo-info { padding: 1.25rem; }
.demo-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.demo-titulo { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.demo-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ─── Sobre mí ───────────────────────────────────────────────── */
.sobre-mi { background: var(--surface); }

.sobre-mi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-mi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  transition: all 0.2s;
}
.tag:hover { border-color: var(--blue); color: var(--blue); }

.sobre-mi-visual {
  position: relative;
}
.sobre-mi-card-big {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.sobre-mi-card-big .num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.sobre-mi-card-big .num-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.sobre-mi-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.sobre-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* ─── Contacto ───────────────────────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contacto-wa-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.wa-icon {
  width: 64px; height: 64px;
  background: rgba(37,211,102,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.wa-icon svg { width: 32px; height: 32px; color: #25D366; }

.contacto-info-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contacto-info-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.contacto-info-item svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--card); }
.form-msg { display: none; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-top: 0.5rem; }
.form-msg.success { background: rgba(0,212,100,0.1); border: 1px solid rgba(0,212,100,0.3); color: #00d464; display: block; }
.form-msg.error   { background: rgba(255,60,60,0.1);  border: 1px solid rgba(255,60,60,0.3);  color: #ff5555; display: block; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.social-link svg { width: 16px; height: 16px; }

/* ─── WhatsApp flotante ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all 0.25s;
  color: #fff;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }

/* ─── Modal de demo ──────────────────────────────────────────── */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
}
.demo-modal.open { display: flex; }

.demo-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.demo-modal-title { font-size: 0.95rem; font-weight: 600; }
.demo-modal-cat   { font-size: 0.75rem; color: var(--cyan); }
.demo-modal-actions { display: flex; gap: 0.5rem; }
.demo-modal-actions a,
.demo-modal-actions button {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-close-modal { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-close-modal:hover { background: rgba(255,255,255,0.12); }
.btn-wa-modal { background: #25D366; color: #fff; }
.btn-wa-modal:hover { background: #1ebe5d; }
.btn-fullscreen { background: var(--blue-dim); color: var(--blue); }
.btn-fullscreen:hover { background: var(--blue); color: #fff; }

.demo-modal-iframe-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}
.demo-modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
  background: #fff;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .proceso-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(8,12,20,0.96);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.open a { padding: 0.75rem 1rem; border-radius: 8px; }

  .hero-stats { gap: 1.5rem; }

  .servicios-grid { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr; }

  .sobre-mi-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .proceso-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav-links { justify-content: center; }

  .demo-modal-iframe-wrap { padding: 0; }
  .demo-modal-iframe-wrap iframe { border-radius: 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .sobre-mi-cards-row { grid-template-columns: 1fr; }
}

/* ─── Nav: botón Hablemos ───────────────────────────────────── */
.nav-hablemos {
  background: var(--blue);
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.2s;
}
.nav-hablemos:hover { background: #0060df; transform: translateY(-1px); }

/* ─── Proceso ────────────────────────────────────────────────── */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.proceso-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.proceso-step:hover { border-color: var(--blue); transform: translateY(-3px); }
.proceso-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.proceso-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.proceso-step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 3rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
.faq-answer p {
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ─── Contacto: grid 2 columnas ─────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contacto-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.contacto-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--blue-dim);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--blue);
}
.contacto-info-icon svg { width: 18px; height: 18px; }
.contacto-info-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contacto-info-val {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ─── Demo: tarjeta CTA ─────────────────────────────────────── */
.demo-card-cta { cursor: pointer; }
.demo-thumb-cta {
  background: linear-gradient(135deg, var(--blue-dim), var(--cyan-dim));
  border: 2px dashed var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.demo-cta-emoji { font-size: 3rem; }

/* ─── Footer: nav links ─────────────────────────────────────── */
.footer-nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-nav-links a:hover { color: var(--text); }

/* ─── Footer: links legales ──────────────────────────────────── */
.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal-links a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-links a:hover { color: var(--cyan); }

/* ─── Formulario: checkbox de privacidad ─────────────────────── */
.form-check { margin-top: 0.25rem; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.check-label a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.check-label a:hover { color: var(--cyan); }

/* ─── Banner de cookies ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 40px rgba(0,112,243,0.08);
  z-index: 9999;
  padding: 1rem 1.25rem;
  animation: fadeInUp 0.4s ease forwards;
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.cookie-text svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--cyan);
}
.cookie-text p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}
.cookie-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: var(--cyan); }
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* ─── Páginas legales ────────────────────────────────────────── */
.legal-page { padding: 6rem 0 4rem; }

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--blue); }
.legal-back svg { width: 14px; height: 14px; }

.legal-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0.5rem 0;
}
.legal-section ul li { margin-bottom: 0.3rem; }
.legal-section a { color: var(--blue); }
.legal-section a:hover { color: var(--cyan); }

.legal-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--blue-dim);
  border: 1px solid rgba(0,112,243,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.legal-highlight svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--blue);
  margin-top: 2px;
}
.legal-highlight span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  .legal-footer-nav { flex-direction: column; }
  .legal-footer-nav .btn { justify-content: center; }
  .footer-legal-links { justify-content: center; }
}

/* ── HERRAMIENTAS ──────────────────────────────────────────── */
.herramientas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .herramientas-grid { grid-template-columns: 1fr; }
}
.herramienta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.herramienta-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.herramienta-thumb {
  width: 100%;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.herramienta-thumb-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.herramienta-card:hover .herramienta-thumb-icon { transform: scale(1.18); }
.herramienta-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
  backdrop-filter: blur(3px);
  z-index: 2;
}
.herramienta-card:hover .herramienta-thumb-overlay { opacity: 1; }
.herramienta-thumb-overlay span {
  color: #fff; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}
.herramienta-info { padding: 1.1rem 1.25rem; flex: 1; }
.herramienta-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--cyan);
  margin-bottom: 0.4rem;
}
.herramienta-nombre { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.herramienta-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
