:root {
  --blue: #2F6FED;
  --blue-soft: #5B8DFF;
  --cyan: #16C8E0;
  --navy-bg: #060B18;
  --navy-bg-2: #0A1226;
  --card-bg: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text-main: #F3F6FC;
  --text-muted: #A3AFC4; /* contraste ~8:1 sobre el fondo */
  --nav-h: 76px;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--navy-bg);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Textos secundarios legibles sobre fondo oscuro */
.text-secondary, .text-muted { color: var(--text-muted) !important; }
a.text-secondary:hover { color: var(--text-main) !important; }

.bg-gradient-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  max-width: 100vw;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.14) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.sec-premium { padding: 4.5rem 0; position: relative; }

.massive-title {
  font-weight: 900;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sec-title {
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
}
.eyebrow {
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  transition: var(--ease);
}
.glass-card:hover {
  border-color: rgba(47, 111, 237, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.navbar {
  background: rgba(6, 11, 24, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 0;
}
.nav-logo { height: 44px; width: auto; border-radius: 8px; object-fit: cover; }
.nav-link { color: var(--text-muted) !important; font-weight: 500; transition: var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--text-main) !important; }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--blue-soft); }

/* Botón de idioma ES / EN */
.lang-toggle {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  transition: var(--ease);
}
.lang-toggle:hover { border-color: var(--blue-soft); background: rgba(47, 111, 237, 0.12); }
.lang-toggle:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }

/* Opiniones */
.testimonial-card { padding: 2rem 1.75rem; position: relative; display: flex; flex-direction: column; }
.testimonial-card blockquote { flex: 1; }
.testimonial-card blockquote p { color: var(--text-main); font-size: 1rem; line-height: 1.65; margin: 0; }
.testimonial-quote { font-size: 2.2rem; color: var(--blue-soft); line-height: 1; margin-bottom: 0.75rem; display: block; }

.hours-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(22, 200, 224, 0.35);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(22, 200, 224, 0.08);
}

.btn-premium-lg {
  background: linear-gradient(135deg, var(--blue) 0%, #1A4FCE 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 1.05rem 2.2rem;
  border-radius: 50px;
  border: none;
  letter-spacing: 0.01em;
  transition: var(--ease);
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.3);
  white-space: nowrap;
}
.btn-premium-lg:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(47, 111, 237, 0.45); color: #fff; }
.btn-premium-lg.btn-nav { font-size: 0.85rem; padding: 0.5rem 1.5rem; }
.btn-premium-ghost {
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  padding: 1.05rem 2.2rem;
  border-radius: 50px;
  border: 2px solid var(--glass-border);
  transition: var(--ease);
  white-space: nowrap;
}
.btn-premium-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-sm-wa {
  display: inline-block;
  background: rgba(47, 111, 237, 0.12);
  border: 1px solid rgba(47, 111, 237, 0.35);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: var(--ease);
  text-align: center;
  text-decoration: none;
}
.btn-sm-wa:hover { background: var(--blue); border-color: var(--blue); }

/* El navbar es sticky (ocupa su propio espacio), así que el hero no necesita padding extra arriba */
.hero-split-section {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 3rem 0;
  position: relative;
}
.hero-media-container {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 848 / 480;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  background: #000;
}
.hero-media-container img,
.hero-media-container video { width: 100%; height: 100%; object-fit: cover; display: block; }

.trust-tile { padding: 2rem 1.5rem; text-align: center; }
.trust-tile .icon { font-size: 1.8rem; color: var(--blue-soft); margin-bottom: 0.75rem; }
.trust-tile h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.trust-tile p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }

.service-card { padding: 2rem 1.6rem; height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.service-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(47, 111, 237, 0.12);
  color: var(--blue-soft);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.service-card .btn-sm-wa { margin-top: auto; }

.cta-banner {
  background: linear-gradient(135deg, rgba(47,111,237,0.16) 0%, rgba(22,200,224,0.1) 100%);
  border: 1px solid rgba(47, 111, 237, 0.3);
  border-radius: var(--r-lg);
  padding: 3.5rem 2.5rem;
}

.contact-list p { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list i { color: var(--blue-soft); margin-top: 0.15rem; }

.map-frame { height: 380px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--glass-border); }

.product-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.product-card .product-img { aspect-ratio: 1/1; overflow: hidden; background: #fff; }
.product-card .product-img.is-empty { background: var(--navy-bg-2); }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--ease); }
.product-card .product-img.is-empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--blue-soft); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-card .product-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-name { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.35; }
.product-price { color: var(--cyan); font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }

footer { background: #04070F; border-top: 1px solid var(--glass-border); padding: 4.5rem 0 2rem; }
.footer-title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }

/* Animación de aparición: solo se oculta el contenido si JavaScript está activo
   (la clase "js" la agrega un script en el <head>). Sin JS, todo se ve normal. */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.active { opacity: 1; transform: translateY(0); }

.wa-premium-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 2500;
  background: #25D366; color: white !important;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: var(--ease);
}
.wa-premium-float:hover { transform: scale(1.1) translateY(-3px); }

.max-w-md { max-width: 28rem; }

@media (max-width: 575.98px) {
  .sec-premium { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .btn-premium-lg, .btn-premium-ghost { white-space: normal; }
  .wa-premium-float { bottom: 18px; right: 18px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .glass-card:hover, .product-card:hover .product-img img, .wa-premium-float:hover, .btn-premium-lg:hover { transform: none; }
}
