/* ============================================================
   ISES · Estilos compartidos
   Paleta: fondo #f5f8fc · azul #2f6bff / #3b61ff · azul oscuro #12284a
   Tipografías: Anton (títulos) · Manrope (texto)
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  background: #f5f8fc;
}

html { scroll-behavior: smooth; }

/* Usuarios que prefieren menos movimiento: desactivar animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Manrope', sans-serif;
  color: #12284a;
}

a {
  color: #2f6bff;
  text-decoration: none;
}

a:hover { color: #5a8bff; }

input, select, textarea { font-family: 'Manrope', sans-serif; }

img { max-width: 100%; }

/* ---------- Animaciones ---------- */
@keyframes riseIn   { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseInBig{ from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseDot { 0% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; } 70% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; } 100% { opacity: 0; } }
@keyframes rtSlideUp{ from { opacity: 0; transform: translateY(0.5em); filter: blur(7px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* Caracteres del texto rotatorio del hero: cascada suave y azul plateado */
.rt-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  animation: rtSlideUp .85s cubic-bezier(.22,1,.36,1) both;
  background: linear-gradient(180deg, #e3eaff 0%, #a9bdff 48%, #6e88e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navegación flotante (cristal) ---------- */

/* Barra clara (subpáginas) */
.nav-glass {
  position: sticky;
  top: 20px;
  z-index: 50;
  width: min(1080px, calc(100% - 40px));
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px 12px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 20px 46px -28px rgba(18,40,74,0.45), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Barra oscura (hero de inicio, posicionada sobre el plasma) */
.nav-glass-dark {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(1080px, calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px 12px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: fadeIn 0.9s ease 0.1s both;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.nav-glass .nav-logo, .nav-glass .nav-logo:hover { color: #12284a; }
.nav-glass-dark .nav-logo, .nav-glass-dark .nav-logo:hover { color: #ffffff; }

.nav-logo-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, #3b61ff, #1a3ad0);
  box-shadow: 0 6px 18px -6px rgba(59,97,255,0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-link {
  padding: 9px 16px;
  border-radius: 11px;
  transition: background .2s ease, color .2s ease;
}
.nav-glass .nav-link { color: rgba(18,40,74,0.6); }
.nav-glass .nav-link:hover { background: rgba(47,107,255,0.10); color: #12284a; }
.nav-glass .nav-link.activo { color: #12284a; }
.nav-glass-dark .nav-link { color: rgba(255,255,255,0.7); }
.nav-glass-dark .nav-link:hover { background: rgba(255,255,255,0.10); color: #ffffff; }
.nav-glass-dark .nav-link.activo { color: #ffffff; }

/* Botón "Cotizar" */
.btn-cotizar {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 11px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-glass .btn-cotizar { color: #ffffff; background: #12284a; }
.nav-glass .btn-cotizar:hover { transform: translateY(-1px); background: #2f6bff; color: #ffffff; }
.nav-glass-dark .btn-cotizar { color: #05060a; background: #ffffff; }
.nav-glass-dark .btn-cotizar:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255,255,255,0.5); color: #05060a; }

@media (max-width: 700px) {
  .nav-glass, .nav-glass-dark { padding: 10px 10px 10px 16px; }
  .nav-links { gap: 2px; font-size: 11px; letter-spacing: 0.8px; }
  .nav-link { padding: 8px 9px; }
  .btn-cotizar { margin-left: 2px; padding: 9px 13px; }
  .nav-logo span:last-child { display: none; }
}

/* ---------- Botones del hero ---------- */
.btn-hero-blanco {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #05060a;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-hero-blanco:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(255,255,255,0.55); color: #05060a; }

.btn-hero-cristal {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 15px 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease;
}
.btn-hero-cristal:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); color: #ffffff; }

/* ---------- Botones y tarjetas (estados hover) ---------- */

/* Tarjetas de servicio */
.card-servicio {
  transition: transform .25s ease, border-color .25s ease;
}
.card-servicio:hover {
  transform: translateY(-6px);
  border-color: #2f6bff !important;
}

/* Flechas circulares del hero */
.flecha-hero {
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.flecha-hero:hover {
  transform: translateY(-50%) scale(1.15);
  background: #2f6bff !important;
  border-color: #2f6bff !important;
  color: #ffffff !important;
}

/* Botón EXPLORAR (esquina recortada) */
.btn-explorar { transition: transform .2s ease, background .2s ease; }
.btn-explorar:hover { transform: translate(-3px, -3px); background: #1a52e0 !important; color: #ffffff; }

/* Botón azul (formulario / CTA) */
.btn-azul { transition: transform .2s ease, background .2s ease; }
.btn-azul:hover { transform: translateY(-2px); background: #1a52e0 !important; color: #ffffff; }

/* Botón oscuro (Ver planes) */
.btn-oscuro { transition: transform .2s ease, background .2s ease; }
.btn-oscuro:hover { transform: translateY(-2px); background: #1a3a6b !important; color: #ffffff; }

/* Botón blanco tipo píldora (Solicitar diagnóstico) */
.btn-pill-blanco { transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn-pill-blanco:hover { transform: translateY(-2px); background: #2f6bff !important; color: #ffffff !important; }

/* ---------- Galería Chroma (spotlight que sigue al cursor) ----------
   Port a JS vanilla del componente ChromaGrid de React Bits.
   La retícula está en escala de grises y un foco circular que sigue
   al cursor revela el color real de las tarjetas. ---------- */
.chroma-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  --x: 50%;
  --y: 50%;
  --r: 260px;
}
@media (max-width: 900px) { .chroma-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chroma-grid { grid-template-columns: 1fr; } }

.chroma-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #33363d;
  transition: border-color .3s ease, transform .3s ease;
  background: var(--card-gradient, #15171c);
  color: #ffffff;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.28);
}
.chroma-card:hover { border-color: var(--card-border); color: #ffffff; transform: translateY(-3px); }

.chroma-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 2;
}
.chroma-card:hover::before { opacity: 1; }

.chroma-img-wrapper {
  position: relative;
  z-index: 1;
  padding: 10px 10px 0;
}
.chroma-img-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.chroma-info {
  position: relative;
  z-index: 1;
  padding: 0.8rem 1.1rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.2rem;
  column-gap: 0.75rem;
  align-items: center;
}
.chroma-info .chroma-nombre { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.4px; }
.chroma-info .chroma-handle { color: rgba(255,255,255,0.55); font-size: 12px; letter-spacing: 0.5px; }
.chroma-info .chroma-rol { grid-column: 1 / -1; margin: 0; color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.5; }

/* Capa gris: se "borra" alrededor del cursor (hueco en la máscara) */
.chroma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: rgba(0, 0, 0, 0.001);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
    transparent 0%, transparent 15%, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.22) 45%,
    rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.50) 75%, rgba(0,0,0,0.68) 88%, white 100%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
    transparent 0%, transparent 15%, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.22) 45%,
    rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.50) 75%, rgba(0,0,0,0.68) 88%, white 100%);
}

/* Capa de reposo: cubre todo cuando el cursor sale de la retícula */
.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: rgba(0, 0, 0, 0.001);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
    white 0%, white 15%, rgba(255,255,255,0.90) 30%, rgba(255,255,255,0.78) 45%,
    rgba(255,255,255,0.65) 60%, rgba(255,255,255,0.50) 75%, rgba(255,255,255,0.32) 88%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
    white 0%, white 15%, rgba(255,255,255,0.90) 30%, rgba(255,255,255,0.78) 45%,
    rgba(255,255,255,0.65) 60%, rgba(255,255,255,0.50) 75%, rgba(255,255,255,0.32) 88%, transparent 100%);
  opacity: 1;
  transition: opacity .6s ease;
}

/* ---------- Enlace discreto del pie de página ---------- */
.enlace-sistema { color: inherit; transition: color .2s ease; }
.enlace-sistema:hover { color: #2f6bff; }

/* ---------- Formulario ---------- */
.campo-form {
  padding: 15px 18px;
  background: #f7f9fc;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  color: #12284a;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease;
}
.campo-form:focus { border-color: #2f6bff; }
