/* Estilos de Tech Escala (faxtal.dev) — negro y blanco con el verde lima del logo */

:root {
  --negro: #0a0a0a;
  --negro-suave: #111111;
  --blanco: #f5f5f5;
  --gris: #a3a3a3;
  --gris-oscuro: #6b6b6b;
  --superficie: #1a1a1a;
  --superficie-2: #2a2a2a;
  --lima: #b4f13a;
  --lima-claro: #c9f96e;
  --acento: var(--lima);
  --borde: rgba(245, 245, 245, 0.12);
  --radio: 14px;
  --ancho: 1120px;
  --titulos: "Montserrat", system-ui, sans-serif;
  --texto: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--titulos); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

/* ---------- Navegación ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}

.nav .contenedor { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titulos); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; }
.marca img { width: 48px; height: 48px; }

.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--gris); transition: color 0.2s; }
.nav ul a:hover { color: var(--blanco); }

.menu-boton { display: none; background: none; border: 1px solid var(--borde); color: var(--blanco); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-boton span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

/* ---------- Botones ---------- */

.botones { display: flex; flex-wrap: wrap; gap: 12px; }

.boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.boton:hover { transform: translateY(-2px); }
.boton-principal { background: var(--acento); color: var(--negro); }
.boton-principal:hover { background: var(--lima-claro); }
.boton-secundario { border-color: var(--borde); color: var(--blanco); }
.boton-secundario:hover { border-color: var(--acento); }
.boton-whatsapp { background: var(--blanco); color: var(--negro); font-weight: 700; }
.boton-whatsapp:hover { background: #e9e9e9; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }

.hero .contenedor { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.saludo { color: var(--acento); font-weight: 600; font-size: 1rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.saludo::before { content: ""; width: 34px; height: 2px; background: currentColor; }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--lima); }

.etiqueta { display: inline-block; margin: 18px 0 20px; padding: 6px 12px; background: var(--superficie); border: 1px solid var(--superficie-2); border-radius: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.hero p.bajada { color: var(--gris); max-width: 52ch; margin: 0 0 30px; }

/* Robot de Tech Escala: el hexágono no se mueve; solo los ojos siguen el cursor y parpadean */
.robot { position: relative; justify-self: center; width: min(380px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.robot::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(180, 241, 58, 0.12), transparent 65%); }
.robot-cuerpo { position: relative; width: 82%; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); }
.robot-ojo { fill: var(--negro); transform-box: fill-box; transform-origin: center; }
.robot-ojo.parpadeo { animation: parpadear 0.32s ease-in-out; }

@keyframes parpadear { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(0.06); } }

.emblema { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1; }
.emblema::before { content: ""; position: absolute; inset: -18px; border: 1px solid var(--borde); border-radius: 50%; }
.emblema svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(255, 255, 255, 0.18)); }
.emblema .giro { transform-origin: center; animation: girar 60s linear infinite; }

/* Líneas de fondo del hero */
.lineas-fondo { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.lineas-fondo path { fill: none; stroke: var(--superficie); stroke-width: 2; }

/* Animación de trazo: las líneas se "dibujan" al aparecer */
.trazo path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: dibujar 1.8s ease-out forwards; }
.trazo path:nth-child(2) { animation-delay: 0.15s; }
.trazo path:nth-child(3) { animation-delay: 0.3s; }

@keyframes dibujar { to { stroke-dashoffset: 0; } }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */

.seccion { padding: 96px 0; position: relative; }
.seccion-alterna { background: var(--negro-suave); border-block: 1px solid var(--borde); }

.titulo-seccion { text-align: center; margin-bottom: 56px; }
.titulo-seccion h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.titulo-seccion p { color: var(--gris); margin: 14px auto 0; max-width: 60ch; }

/* Separador con las tres líneas del emblema */
.separador { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.separador span { width: 28px; height: 3px; background: var(--acento); border-radius: 3px; }
.separador span:nth-child(2) { opacity: 0.6; }
.separador span:nth-child(3) { opacity: 0.3; }

/* ---------- Servicios ---------- */

.grilla-servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }

.tarjeta {
  position: relative;
  padding: 30px 26px;
  background: var(--negro);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.tarjeta:hover { border-color: var(--superficie-2); transform: translateY(-4px); }

/* Esquina de líneas en cada tarjeta */
.tarjeta::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 9px, rgba(255, 255, 255, 0.18) 9px 11px);
  opacity: 0;
  transition: opacity 0.3s;
}
.tarjeta:hover::after { opacity: 1; }

.icono { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--superficie); border: 1px solid var(--superficie-2); margin-bottom: 20px; }
.icono svg { width: 26px; height: 26px; stroke: var(--blanco); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tarjeta h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.tarjeta p { color: var(--gris); margin: 0; font-size: 0.97rem; }

/* ---------- Quiénes somos ---------- */

.nosotros { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }

.marco-lineas { position: relative; aspect-ratio: 1; max-width: 420px; border-radius: var(--radio); background: var(--superficie); overflow: hidden; }
.marco-lineas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.marco-lineas path { fill: none; stroke: rgba(245, 245, 245, 0.85); stroke-width: 9; stroke-linecap: round; }
.marco-lineas .firma { position: absolute; left: 24px; bottom: 20px; font-family: var(--titulos); font-weight: 800; font-size: 1.5rem; }

.nosotros h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; }
.nosotros p { color: var(--gris); }

.lista-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.lista-checks li { display: flex; gap: 14px; align-items: flex-start; }
.lista-checks svg { flex: none; width: 24px; height: 24px; margin-top: 2px; stroke: var(--acento); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Proyecto ---------- */

.proyecto { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.proyecto h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.proyecto p { color: var(--gris); }
.proyecto ul { padding-left: 20px; color: var(--gris); margin: 18px 0 0; }
.proyecto li { margin-bottom: 8px; }
.proyecto li::marker { color: var(--acento); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--borde); color: var(--gris); }

/* Maqueta de chat hecha con CSS (sin capturas reales) */
.telefono { justify-self: center; width: min(330px, 100%); border-radius: 34px; padding: 12px; background: #1c1c1c; border: 1px solid var(--borde); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.pantalla { border-radius: 24px; overflow: hidden; background: #111111; }
.cabecera-chat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--superficie); font-size: 0.9rem; font-weight: 600; }
.cabecera-chat img { width: 40px; height: 40px; }
.cabecera-chat small { display: block; font-weight: 400; color: var(--gris); font-size: 0.72rem; }
.mensajes { padding: 16px 12px 18px; display: grid; gap: 10px; font-size: 0.84rem; line-height: 1.45; }
.burbuja { max-width: 82%; padding: 9px 12px; border-radius: 12px; }
.burbuja.cliente { justify-self: end; background: var(--superficie-2); border-bottom-right-radius: 4px; }
.burbuja.bot { background: #222222; border-bottom-left-radius: 4px; }
.burbuja .opcion { display: block; margin-top: 8px; padding: 7px; text-align: center; border-top: 1px solid var(--borde); color: var(--acento); font-weight: 600; }

/* ---------- Servicios (tarjetas premium) ---------- */

.servicio {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #161616 0%, var(--negro) 70%);
  border: 1px solid var(--borde);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.servicio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at 85% -10%, rgba(180, 241, 58, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.servicio:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.servicio:hover::before { opacity: 1; }

/* Brazo del emblema como marca de agua en la esquina */
.servicio-lineas { position: absolute; width: 170px; height: 170px; right: -48px; bottom: -58px; z-index: -1; fill: none; stroke: rgba(245, 245, 245, 0.06); stroke-width: 10; stroke-linecap: round; transform: rotate(-30deg); transition: stroke 0.35s ease, transform 0.6s ease; }
.servicio:hover .servicio-lineas { stroke: rgba(255, 255, 255, 0.22); transform: rotate(-20deg) scale(1.05); }

.servicio-cabecera { display: flex; align-items: center; margin-bottom: 26px; }
.servicio-cabecera .icono { margin: 0; }

.servicio h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.servicio > p { color: var(--gris); margin: 0 0 20px; font-size: 0.97rem; }

.incluye { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px solid var(--borde); display: grid; gap: 10px; font-size: 0.9rem; }
.incluye li { display: flex; align-items: center; gap: 10px; color: var(--blanco); }
.incluye li::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--acento); box-shadow: 0 4px 0 rgba(255, 255, 255, 0.45); flex: none; }

.enlace { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--acento); display: inline-flex; gap: 6px; }
.enlace span { transition: transform 0.25s ease; }
.enlace:hover span { transform: translateX(4px); }

/* Tarjeta destacada: blanca con texto negro */
.servicio.destacado { background: var(--blanco); color: var(--negro); border-color: var(--blanco); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); }
.servicio.destacado .icono { background: var(--negro); border-color: var(--negro); }
.servicio.destacado > p { color: #3d3d3d; }
.servicio.destacado .incluye { border-color: rgba(0, 0, 0, 0.15); }
.servicio.destacado .incluye li { color: var(--negro); }
.servicio.destacado .incluye li::before { background: var(--negro); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.servicio.destacado .enlace { color: var(--negro); }
.servicio.destacado .servicio-lineas { stroke: rgba(0, 0, 0, 0.08); }
.servicio.destacado:hover .servicio-lineas { stroke: rgba(0, 0, 0, 0.16); }
.insignia { align-self: flex-start; margin: -10px 0 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--lima); color: var(--negro); }

/* ---------- Carrusel de servicios con tarjetas animadas ---------- */

@property --angulo { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.carrusel { position: relative; }
.carrusel-pista {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px calc(50% - 190px) 32px;
  scrollbar-width: none;
}
.carrusel-pista::-webkit-scrollbar { display: none; }

.tarjeta-demo {
  flex: 0 0 380px;
  scroll-snap-align: center;
  padding: 14px 14px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #1b1b1b, #121212);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.88);
  opacity: 0.45;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease, background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.tarjeta-demo.activa {
  transform: scale(1);
  opacity: 1;
  background: linear-gradient(180deg, #111111, #080808);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.9), 0 40px 80px rgba(0, 0, 0, 0.85);
}
.tarjeta-demo.activa .demo { background: radial-gradient(120% 90% at 50% 0%, #181818, #060606 70%); border-color: rgba(255, 255, 255, 0.12); }

.demo {
  position: relative;
  height: 300px;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, #1a1a1a, #0b0b0b 70%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.tarjeta-demo-texto { padding: 18px 8px 0; }
.tarjeta-demo-texto h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.tarjeta-demo-texto p { margin: 0; color: var(--gris); font-size: 0.95rem; }

/* Páginas web: ventana con una luz que recorre el borde */
.ventana { position: relative; width: 82%; border-radius: 14px; background: #161616; }
.haz::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angulo), transparent 0deg, transparent 250deg, rgba(255, 255, 255, 0.95) 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: girar-angulo 3.2s linear infinite;
}
.haz::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.ventana-barra { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ventana-barra span { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }
.ventana-barra i { margin-left: 8px; font-style: normal; font-size: 0.7rem; color: var(--gris-oscuro); }
.ventana-cuerpo { padding: 18px 16px 20px; display: grid; gap: 10px; }
.esqueleto { display: block; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #262626 0%, #3a3a3a 50%, #262626 100%); background-size: 200% 100%; animation: brillo 2.2s ease-in-out infinite; }
.ancho-60 { width: 60%; height: 14px; }
.ancho-90 { width: 90%; }
.ancho-75 { width: 75%; }
.ventana-boton { justify-self: start; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: var(--blanco); color: var(--negro); font-size: 0.75rem; font-weight: 700; }

/* Bases de datos: píldoras que aparecen con un orbe de puntos */
.demo-datos { align-content: center; gap: 14px; justify-items: center; }
.pildora {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: #171717; border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem; color: var(--blanco);
  opacity: 0; transform: translateY(10px);
  animation: aparecer-pildora 6s ease infinite;
}
.pildora-2 { animation-delay: 0.6s; margin-left: 40px; }
.pildora-3 { animation-delay: 1.2s; margin-right: 30px; }
.orbe {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, #fff 1px, transparent 1.6px) 0 0 / 5px 5px;
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%);
  mask: radial-gradient(circle, #000 55%, transparent 72%);
  animation: girar-orbe 4s linear infinite;
}
.orbe-lento { animation-duration: 7s; animation-direction: reverse; }
.tilde { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); color: var(--negro); font-weight: 800; }

/* Bots: chat que se escribe solo */
.chat { position: relative; width: 86%; height: 190px; font-size: 0.85rem; line-height: 1.4; }
.globo-chat { position: absolute; max-width: 80%; padding: 9px 12px; border-radius: 14px; opacity: 0; animation: aparecer-chat 7s ease infinite; }
.globo-chat.cliente { top: 0; right: 0; background: var(--blanco); color: var(--negro); border-bottom-right-radius: 4px; }
.globo-chat.escribiendo { top: 58px; left: 0; display: flex; gap: 4px; background: #1f1f1f; border-bottom-left-radius: 4px; animation-name: escribiendo-chat; animation-delay: 0.9s; }
.globo-chat.escribiendo span { width: 6px; height: 6px; border-radius: 50%; background: var(--gris); animation: puntito 1s ease-in-out infinite; }
.globo-chat.escribiendo span:nth-child(2) { animation-delay: 0.15s; }
.globo-chat.escribiendo span:nth-child(3) { animation-delay: 0.3s; }
.globo-chat.bot { top: 58px; left: 0; background: #1f1f1f; border-bottom-left-radius: 4px; animation-delay: 2.4s; }
.globo-chat.bot b { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }

/* Hosting: barra con borde metálico */
.demo-hosting { align-content: center; gap: 26px; justify-items: center; }
.barra-metal { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 999px; background: #151515; border: 1px solid rgba(255, 255, 255, 0.07); }
.estado-online { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #1f1f1f; font-size: 0.85rem; }
.estado-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); animation: latido 1.6s ease-in-out infinite; }
.chip-metal, .boton-metal { position: relative; isolation: isolate; border-radius: 999px; }
.chip-metal { padding: 9px 16px; font-size: 0.85rem; background: #1f1f1f; }
.boton-metal { width: 44px; height: 44px; display: grid; place-items: center; background: #1b1b1b; }
.boton-metal svg { width: 18px; height: 18px; fill: none; stroke: var(--blanco); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip-metal::before, .boton-metal::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--angulo), #555, #fff, #777, #222, #ddd, #555);
  animation: girar-angulo 2.6s linear infinite;
}
.chip-metal::after, .boton-metal::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: inherit; }
.uptime { display: flex; gap: 5px; }
.uptime i { width: 8px; height: 26px; border-radius: 3px; background: #2e2e2e; animation: barra-uptime 3.2s ease-in-out infinite; }
.uptime i:nth-child(odd) { animation-delay: 0.2s; }
.uptime i:nth-child(3n) { animation-delay: 0.45s; }
.uptime i:nth-child(4n) { animation-delay: 0.7s; }

/* Controles del carrusel */
.carrusel-controles { display: flex; align-items: center; justify-content: center; gap: 18px; }
.carrusel-flecha { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--borde); background: transparent; color: var(--blanco); cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s, background 0.2s; }
.carrusel-flecha:hover { border-color: var(--acento); background: rgba(255, 255, 255, 0.05); }
.carrusel-flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carrusel-puntos { display: flex; gap: 8px; }
.carrusel-puntos span { width: 8px; height: 8px; border-radius: 999px; background: #3a3a3a; transition: width 0.3s, background 0.3s; }
.carrusel-puntos span.activo { width: 26px; background: var(--acento); }
.carrusel-cta { display: flex; justify-content: center; margin-top: 32px; }

@keyframes girar-angulo { to { --angulo: 360deg; } }
@keyframes brillo { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes girar-orbe { to { transform: rotate(360deg); } }
@keyframes aparecer-pildora { 0% { opacity: 0; transform: translateY(10px); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes aparecer-chat { 0% { opacity: 0; transform: translateY(8px); } 8%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes escribiendo-chat { 0% { opacity: 0; } 5%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes puntito { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes latido { 50% { opacity: 0.3; transform: scale(0.8); } }
@keyframes barra-uptime { 0%, 100% { background: #2e2e2e; } 50% { background: #e8e8e8; } }

/* ---------- Conversaciones flotando detrás del proyecto destacado ---------- */

.con-conversaciones { overflow: hidden; isolation: isolate; }
.con-conversaciones > .contenedor { position: relative; z-index: 1; }
.fondo-conversaciones { position: absolute; inset: 0; z-index: 0; pointer-events: none; perspective: 1200px; }
/* Velo para que el contenido siempre se lea bien encima */
.fondo-conversaciones::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 55%, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.25) 75%, transparent); }

.conversacion {
  position: absolute;
  width: 200px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(22, 22, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 24px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.6);
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.55;
  animation: deriva 26s ease-in-out infinite alternate;
  will-change: transform;
}
.conversacion-cabecera { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 0.75rem; }
.conversacion-cabecera span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); color: var(--negro); font-size: 0.68rem; font-weight: 800; }
.mini-globo { max-width: 85%; margin-top: 6px; padding: 6px 9px; border-radius: 10px; }
.mini-globo.cliente { margin-left: auto; background: var(--blanco); color: var(--negro); border-bottom-right-radius: 3px; }
.mini-globo.negocio { background: #262626; color: var(--blanco); border-bottom-left-radius: 3px; }

/* Posición, giro y ritmo distintos para cada tarjeta */
.conversacion-1 { top: 6%; left: 3%; --rx: 18deg; --ry: -22deg; --rz: -12deg; animation-duration: 24s; }
.conversacion-2 { top: 10%; right: 4%; --rx: -14deg; --ry: 24deg; --rz: 14deg; animation-duration: 29s; animation-delay: -6s; }
.conversacion-3 { top: 44%; left: -1%; --rx: 10deg; --ry: 28deg; --rz: 8deg; animation-duration: 31s; animation-delay: -12s; }
.conversacion-4 { top: 50%; right: 1%; --rx: -20deg; --ry: -18deg; --rz: -9deg; animation-duration: 27s; animation-delay: -3s; }
.conversacion-5 { bottom: -6%; left: -3%; --rx: 22deg; --ry: 12deg; --rz: 16deg; animation-duration: 33s; animation-delay: -18s; }
.conversacion-6 { bottom: -4%; right: -2%; --rx: -12deg; --ry: -26deg; --rz: -15deg; animation-duration: 28s; animation-delay: -9s; }

@keyframes deriva {
  0% { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) translate3d(0, 0, 0); }
  50% { transform: rotateX(calc(var(--rx) * -0.6)) rotateY(calc(var(--ry) * 0.5)) rotateZ(calc(var(--rz) * -0.4)) translate3d(30px, -36px, 40px); }
  100% { transform: rotateX(calc(var(--rx) * 0.4)) rotateY(calc(var(--ry) * -0.8)) rotateZ(var(--rz)) translate3d(-24px, 22px, -20px); }
}

@media (max-width: 900px) {
  .conversacion { width: 160px; opacity: 0.35; }
  .conversacion-3, .conversacion-4 { display: none; }
}

@media (max-width: 720px) {
  .conversacion { width: 140px; opacity: 0.22; }
  .conversacion-5, .conversacion-6 { display: none; }
}

/* ---------- Pandilla de personajes (Quiénes somos) ---------- */

.pandilla {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 40px 24px;
  border-radius: var(--radio);
  background: radial-gradient(70% 70% at 50% 45%, #1c1c1c, #101010 75%);
  border: 1px solid var(--borde);
}
.pandilla-fila { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 14px 10px; max-width: 420px; }

.personaje {
  position: relative;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.3,1.6,.5,1);
  -webkit-tap-highlight-color: transparent;
}
.personaje svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }
.personaje-hexagono { width: 112px; height: 112px; order: -1; margin-inline: calc(50% - 56px); }
.pandilla-fila { max-width: 340px; }
.personaje:hover, .personaje:focus-visible, .personaje.tocado { transform: translateY(-8px) scale(1.08); }

.ojos-personaje rect { fill: var(--negro); transform-box: fill-box; transform-origin: center; }
.ojos-personaje rect.parpadeo { animation: parpadear 0.3s ease-in-out; }

/* Etiqueta que aparece arriba del personaje */
.personaje::after {
  content: attr(data-etiqueta);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px) scale(0.9);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--texto);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(.3,1.6,.5,1);
  z-index: 2;
}
.personaje:hover::after, .personaje:focus-visible::after, .personaje.tocado::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 720px) {
  .pandilla { min-height: 300px; padding: 48px 12px 28px; }
  .personaje { width: 72px; height: 72px; }
  .personaje-hexagono { width: 88px; height: 88px; margin-inline: calc(50% - 44px); }
}

/* ---------- Cuadrícula con haces de luz detrás del carrusel ---------- */

.con-cuadricula { overflow: hidden; isolation: isolate; }
.con-cuadricula > .contenedor, .con-cuadricula > .carrusel { position: relative; z-index: 1; }
.fondo-cuadricula {
  --celda: 64px;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: var(--celda) var(--celda);
  background-position: -1px -1px;
  /* Se desvanece hacia los bordes */
  -webkit-mask: radial-gradient(75% 70% at 50% 50%, #000 35%, transparent 100%);
  mask: radial-gradient(75% 70% at 50% 50%, #000 35%, transparent 100%);
}

/* Haces: una línea de luz que recorre una línea de la cuadrícula y desaparece */
.haz-luz { position: absolute; display: block; opacity: 0; }
.haz-luz.horizontal { left: 0; height: 1px; width: 180px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9)); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); animation: haz-horizontal 9s linear infinite; }
.h1 { top: calc(var(--celda) * 2 - 1px); animation-delay: 0s; }
.h2 { top: calc(var(--celda) * 6 - 1px); animation-delay: 3.5s; animation-duration: 11s; }
.h3 { top: calc(var(--celda) * 10 - 1px); animation-delay: 6.5s; }

@keyframes haz-horizontal {
  0% { transform: translateX(-200px); opacity: 0; }
  3% { opacity: 1; }
  40% { transform: translateX(110vw); opacity: 1; }
  41%, 100% { transform: translateX(110vw); opacity: 0; }
}

@media (max-width: 720px) {
  .fondo-cuadricula { --celda: 44px; }
}

/* ---------- Cómo trabajo: pasos a la izquierda y tarjeta flotante a la derecha ---------- */

.proceso { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.proceso-pasos { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
/* Riel y línea de progreso que se llena al bajar */
.proceso-pasos::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.proceso-progreso { position: absolute; left: 8px; top: 8px; width: 2px; height: 0; background: var(--blanco); border-radius: 2px; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); transition: height 0.2s linear; }

.proceso-paso { position: relative; min-height: 42vh; padding-top: 2px; opacity: 0.32; transition: opacity 0.4s ease; }
.proceso-paso:last-child { min-height: 30vh; }
.proceso-paso::before { content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--negro); border: 2px solid rgba(255, 255, 255, 0.3); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.proceso-paso.activo { opacity: 1; }
.proceso-paso.activo::before { background: var(--blanco); border-color: var(--blanco); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
.proceso-paso h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: 6px 0 10px; }
.proceso-paso p { color: var(--gris); margin: 0; max-width: 36ch; }

.proceso-escena { position: sticky; top: calc(50vh - 210px); height: 420px; display: grid; place-items: center; perspective: 1200px; }
.proceso-tarjeta {
  position: relative;
  width: min(380px, 100%);
  height: 340px;
  border-radius: 24px;
  background: linear-gradient(180deg, #181818, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(-14deg) rotateX(6deg);
  animation: en-el-aire 7s ease-in-out infinite;
  overflow: hidden;
}
/* Reflejo de luz sobre la tarjeta */
.proceso-tarjeta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 40%); pointer-events: none; }

.vista { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.45s ease, transform 0.45s ease; }
.vista.activa { opacity: 1; transform: none; }
.vista-titulo { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; color: var(--gris); padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--blanco); animation: latido 1.6s ease-in-out infinite; }
.ventana-puntos { display: flex; gap: 5px; }
.ventana-puntos b { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }

.mini-chat { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 0.85rem; line-height: 1.4; }
.mini-chat.cliente { align-self: flex-end; background: var(--blanco); color: var(--negro); border-bottom-right-radius: 4px; }
.mini-chat.yo { align-self: flex-start; background: #262626; border-bottom-left-radius: 4px; }
.vista.activa .mini-chat { animation: entrar-chat 0.5s ease both; }
.vista.activa .mini-chat:nth-of-type(3) { animation-delay: 0.35s; }
.vista.activa .mini-chat:nth-of-type(4) { animation-delay: 0.7s; }

.lista-propuesta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.lista-propuesta li { display: flex; align-items: center; gap: 10px; }
.lista-propuesta i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.7rem; font-weight: 800; background: var(--blanco); color: var(--negro); }
.vista.activa .lista-propuesta li { animation: entrar-chat 0.4s ease both; }
.vista.activa .lista-propuesta li:nth-child(2) { animation-delay: 0.12s; }
.vista.activa .lista-propuesta li:nth-child(3) { animation-delay: 0.24s; }
.vista.activa .lista-propuesta li:nth-child(4) { animation-delay: 0.36s; }
.vista.activa .lista-propuesta li:nth-child(5) { animation-delay: 0.48s; }
.boton-aceptar { margin-top: auto; align-self: flex-start; padding: 9px 16px; border-radius: 999px; background: var(--blanco); color: var(--negro); font-size: 0.82rem; font-weight: 700; }

.codigo { margin: 0; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.78rem; line-height: 1.7; color: #d0d0d0; white-space: pre; }
.c1 { color: #ffffff; }
.c2 { color: #9a9a9a; }
.c3 { color: #c8c8c8; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); }
.cursor-codigo { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--blanco); animation: titilar 1s steps(1) infinite; }
.avance { margin-top: auto; display: grid; gap: 8px; font-size: 0.78rem; color: var(--gris); }
.barra-avance { height: 6px; border-radius: 6px; background: #262626; overflow: hidden; }
.barra-avance i { display: block; height: 100%; width: 66%; border-radius: 6px; background: var(--lima); }
.vista.activa .barra-avance i { animation: llenar-avance 1.2s ease both; }

.publicado-cuerpo { flex: 1; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.publicado-cuerpo strong { font-size: 1.15rem; }
.publicado-cuerpo span { color: var(--gris); font-size: 0.85rem; }
.check-grande { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; background: var(--blanco); color: var(--negro); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 0 22px rgba(255, 255, 255, 0.03); }
.vista.activa .check-grande { animation: aparecer-check 0.6s cubic-bezier(.3,1.6,.5,1) both; }

@keyframes en-el-aire { 0%, 100% { transform: rotateY(-14deg) rotateX(6deg) translateY(0); } 50% { transform: rotateY(-9deg) rotateX(3deg) translateY(-14px); } }
@keyframes entrar-chat { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes titilar { 50% { opacity: 0; } }
@keyframes llenar-avance { from { width: 0; } }
@keyframes aparecer-check { from { transform: scale(0.4); opacity: 0; } }

@media (max-width: 900px) {
  .proceso { grid-template-columns: 1fr; gap: 0; }
  .proceso-escena { order: -1; top: 68px; height: 300px; z-index: 2; background: linear-gradient(var(--negro) 93%, transparent); margin-inline: -16px; padding-inline: 16px; }
  .proceso-tarjeta { width: min(320px, 92%); height: 260px; }
  .proceso-paso { min-height: 52vh; }
  .proceso-paso:last-child { min-height: 18vh; }
  .codigo { font-size: 0.7rem; }
}

/* ---------- GitHub ---------- */

.contactos svg.relleno { fill: var(--acento); stroke: none; }

/* ---------- Llamado a la acción ---------- */

.cta { position: relative; overflow: hidden; background: var(--superficie); padding: 84px 0; text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 22ch; margin: 0 auto 14px; }
.cta p { color: rgba(245, 245, 245, 0.8); margin: 0 auto 30px; max-width: 54ch; }
.cta .botones { justify-content: center; }
.cta .boton-principal { background: var(--acento); }
.cta .boton-secundario { border-color: rgba(245, 245, 245, 0.4); }
/* Líneas del cierre: se dibujan una tras otra cuando la sección entra en pantalla */
.lineas-cierre { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lineas-cierre path { fill: none; stroke: var(--blanco); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.35; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }
.lineas-cierre path:nth-child(2) { opacity: 0.22; }
.lineas-cierre path:nth-child(3) { opacity: 0.12; }
.lineas-cierre.dibujar path { animation: dibujar-cierre 2.2s cubic-bezier(.6,0,.2,1) forwards; }
.lineas-cierre.dibujar path:nth-child(2) { animation-delay: 0.2s; }
.lineas-cierre.dibujar path:nth-child(3) { animation-delay: 0.4s; }
@keyframes dibujar-cierre { to { stroke-dashoffset: 0; } }
.cta .contenedor { position: relative; }

/* ---------- Pie ---------- */

.pie { padding: 56px 0 32px; border-top: 1px solid var(--borde); }
.pie .contenedor { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pie p { color: var(--gris); margin: 12px 0 0; max-width: 40ch; }
.contactos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; justify-self: end; }
.contactos a, .contactos span { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanco); }
.contactos a:hover { color: var(--acento); }
.contactos svg { width: 22px; height: 22px; stroke: var(--acento); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--borde); font-size: 0.85rem; color: var(--gris-oscuro); }
.legal a { color: var(--gris); }

/* ---------- Páginas legales ---------- */

.documento { padding: 64px 0 96px; }
.documento .contenedor { max-width: 780px; }
.documento h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.documento h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.documento p, .documento li { color: var(--gris); }
.documento .fecha { color: var(--gris-oscuro); font-size: 0.9rem; }

/* ---------- Aparición al hacer scroll ---------- */

.aparecer { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.aparecer.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .contenedor, .nosotros, .proyecto, .pie .contenedor { grid-template-columns: 1fr; }
  .emblema { width: min(300px, 80%); order: -1; }
  .robot { order: -1; width: min(260px, 70%); }
  .grilla-servicios { grid-template-columns: repeat(2, 1fr); }
  .marco-lineas { max-width: 100%; aspect-ratio: 16 / 10; }
  .contactos { justify-self: start; }
}

@media (max-width: 720px) {
  .menu-boton { display: block; }
  .nav ul {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--negro);
    border-bottom: 1px solid var(--borde);
    padding: 8px 16px 16px;
  }
  .nav ul.abierto { display: flex; }
  .nav ul a { display: block; padding: 12px 0; font-size: 1rem; }
  .hero { padding: 48px 0 72px; }
  .seccion { padding: 72px 0; }
  .grilla-servicios { grid-template-columns: 1fr; }
  .carrusel-pista { padding-inline: 8vw; gap: 16px; }
  .tarjeta-demo { flex-basis: 84vw; }
  .demo { height: 260px; }
  .contactos { margin-top: 18px; }
}

/* ---------- Ajustes finos para celular ---------- */

@media (max-width: 720px) {
  /* Inicio: robot más chico para que el título y los botones entren en la primera pantalla */
  .hero { padding: 28px 0 56px; }
  .hero .contenedor { gap: 18px; }
  .robot { width: min(190px, 52%); }
  .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.3rem); }
  .etiqueta { margin: 14px 0 14px; font-size: 0.75rem; }
  .hero p.bajada { margin-bottom: 22px; }
  .hero .botones { flex-direction: column; }
  .hero .boton, .cta .boton { justify-content: center; width: 100%; }

  /* Secciones más compactas */
  .seccion { padding: 64px 0; }
  .titulo-seccion { margin-bottom: 32px; }

  /* Proyecto destacado: las conversaciones van abajo, detrás del teléfono, y no tapan el texto */
  .conversacion-1 { top: auto; bottom: 26%; left: -14%; }
  .conversacion-2 { top: auto; bottom: 4%; right: -14%; }
  .fondo-conversaciones::after { background: linear-gradient(rgba(17, 17, 17, 0.96) 45%, rgba(17, 17, 17, 0.4)); }

  /* Cómo trabajo: menos espacio vacío entre pasos */
  .proceso-escena { height: 280px; }
  .proceso-tarjeta { height: 240px; }
  .proceso-paso { min-height: 34vh; }
  .proceso-paso:last-child { min-height: 14vh; }
  .vista { padding: 16px; gap: 9px; }
  .mini-chat { font-size: 0.8rem; }
  .lista-propuesta { gap: 7px; font-size: 0.82rem; }

  /* Cierre */
  .cta { padding: 64px 0; }
  .cta .botones { flex-direction: column; }

  /* Pie: enlaces con área cómoda para tocar con el dedo */
  .contactos { gap: 4px; }
  .contactos a, .contactos span { min-height: 44px; }
  .legal { flex-direction: column; align-items: flex-start; }
  .legal a { display: inline-block; padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trazo path { animation: none; stroke-dashoffset: 0; }
  .aparecer { opacity: 1; transform: none; transition: none; }
  .carrusel-pista { scroll-behavior: auto; }
}

/* ---------- Página de conexión de WhatsApp (conectar.html) ---------- */
.conectar .contenedor { max-width: 620px; }
.requisitos { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; }
.requisitos li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); color: var(--gris); }
.requisitos strong { color: var(--blanco); font-weight: 600; }
.requisitos svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--blanco); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.conectar #boton-conectar { width: 100%; justify-content: center; }
.conectar #boton-conectar:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.estado { min-height: 1.6em; margin-top: 16px; }
.estado-ok { color: var(--blanco); padding: 14px 16px; border: 1px solid var(--acento); border-radius: var(--radio); }
.estado-error { color: #f2b8b5; }
.conectar .nota { font-size: 0.88rem; margin-top: 32px; }

/* ---------- Aviso de cookies (cookies.js) ---------- */
.cookies { position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(340px, calc(100% - 32px)); padding: 20px; background: var(--negro-suave); border: 1px solid var(--borde); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); color: var(--blanco); animation: cookies-entrar 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cookies[hidden] { display: none; }
.cookies-cerrando { opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.25s, transform 0.25s; }
.cookies-cabeza { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookies-robot { width: 44px; height: 44px; flex: none; overflow: visible; }
.cookies-ojos { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cookies-ojo { fill: var(--negro); transform-box: fill-box; transform-origin: center; }
.cookies-ojo.parpadeo { animation: parpadear 0.32s ease-in-out; }
/* Gestos del robot (cookies.js): solo cambian los ojos, la forma queda quieta */
.cookies-ojo { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; }
.cookies-ojo-feliz { fill: none; stroke: var(--negro); stroke-width: 11; stroke-linecap: round; opacity: 0; transition: opacity 0.2s; }
.cookies-sospecha .cookies-ojo { transform: scaleY(0.4); }
.cookies-ilusion .cookies-ojo { transform: scale(1.3); }
.cookies-triste .cookies-ojo { transform: translateY(16px) scale(0.75); }
.cookies-dormido .cookies-ojo { transform: translateY(12px) scaleY(0.12); transition-duration: 1.2s; }
.cookies-feliz .cookies-ojo { opacity: 0; }
.cookies-feliz .cookies-ojo-feliz { opacity: 1; }
.cookies-titulo { margin: 0; font-family: var(--titulos); font-weight: 800; font-size: 1.05rem; }
.cookies-texto { margin: 0 0 16px; font-size: 0.92rem; line-height: 1.5; color: var(--gris); }
.cookies-configurar { margin-bottom: 16px; padding: 12px 14px; background: var(--superficie); border-radius: 12px; }
.cookies-configurar[hidden] { display: none; }
.cookies-interruptor { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.88rem; }
.cookies-interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookies-pista { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--superficie-2); transition: background 0.2s; }
.cookies-pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gris); transition: transform 0.2s, background 0.2s; }
.cookies-interruptor input:checked + .cookies-pista { background: var(--blanco); }
.cookies-interruptor input:checked + .cookies-pista::after { transform: translateX(16px); background: var(--negro); }
.cookies-interruptor input:focus-visible + .cookies-pista { outline: 2px solid var(--blanco); outline-offset: 2px; }
.cookies-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies-boton { min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--borde); background: transparent; color: var(--blanco); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.cookies-boton:hover { border-color: var(--acento); transform: translateY(-1px); }
.cookies-boton-principal { background: var(--acento); color: var(--negro); border-color: var(--acento); }
.cookies-boton-principal:hover { background: var(--lima-claro); }
.cookies-boton[hidden] { display: none; }
.cookies-enlaces { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; color: var(--gris-oscuro); font-size: 0.85rem; }
.cookies-enlace { padding: 6px 2px; background: none; border: 0; color: var(--gris); font: inherit; cursor: pointer; text-decoration: none; }
.cookies-enlace:hover { color: var(--blanco); text-decoration: underline; }
.cookies button:focus-visible, .cookies a:focus-visible { outline: 2px solid var(--blanco); outline-offset: 2px; }
@keyframes cookies-entrar { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .cookies { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookies, .cookies-cerrando, .cookies-ojos, .cookies-ojo, .cookies-ojo-feliz { animation: none; transition: none; }
}
