/* ====== RESET & BASE ====== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: #e6f5ff;
  background: #000;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

:root { --nav-h: 64px; }

/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: #6cf;
  color: #061018;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(102,204,255,.25);
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(9,13,22,.6);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: #e6f5ff;
}
.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6cf;
  box-shadow: 0 0 18px #6cf;
}

/* Logo imagen + fallback texto */
.logo-img {
  height: 70px;       /* FIX: estaba 70pxpx */
  width: auto;
  max-width: 240px;
  border-radius: 6px;
  object-fit: contain;
}
.logo-text { color: #e6f5ff; font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { padding: .5rem .8rem; border-radius: 12px; color: #cfe6ff; }

.nav-toggle {
  display: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  padding: .5rem .7rem;
  border-radius: 12px;
  color: #cfe6ff;
  background: rgba(255,255,255,.06);
}
.nav-toggle:hover { filter: brightness(1.1); }

/* Botón Header (WhatsApp) - con especificidad para ganar a .nav-links a */
.nav-links a.btn-header {
  background: #66CCFF;
  color: #000;
  border-radius: 14px;
  padding: .75rem 1rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.15);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.nav-links a.btn-header svg,
.nav-links a.btn-header i { color: #000; }
.nav-links a.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(102,204,255,.45);
  filter: brightness(1.05);
}
.nav-links a.btn-header:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(102,204,255,.35);
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 58px 0 auto 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(8px);
    padding: 1rem .9rem;
    display: none;
    flex-direction: column;
    gap: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .logo-img {
    height: 60px;
    max-width: 180px;
  }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Fondo: imagen + overlay */
.hero.hero--bg {
  background:
    radial-gradient(circle at 0% 0%, rgba(0,0,0,.8), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(0,0,0,.7), transparent 55%),
    #000;
  background-image: url("/assets/img/hero-bg-aitik.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Glow suave animado */
.hero.hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(0,0,0,0.35), rgba(0,0,0,0) 60%),
    linear-gradient(
      to top,
      rgba(0,0,0,0.7) 0%,
      rgba(0,0,0,0.25) 30%,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,0.45) 85%,
      rgba(0,0,0,0.9) 100%
    );
  mix-blend-mode: multiply;
  opacity: 0.95;
  animation: heroGlow 28s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(-1%,1%,0) scale(1.02); opacity: 1; }
  100% { transform: translate3d(1%,-1%,0) scale(1.03); opacity: 0.9; }
}

/* Fullscreen y centrado */
.hero.hero--full {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__inner .copy { max-width: 760px; margin: 0 auto; }

/* Tipografía hero */
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  margin: 0 0 .5rem;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 2px 36px rgba(0,0,0,.55);
}
.hero p {
  color: #cfe6ff;
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero .actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  .hero.hero--full { padding: 56px 0 36px; }
  .hero h1 { font-size: clamp(28px, 5.2vw, 44px); }
  .hero p { font-size: 1rem; max-width: 52ch; }
}

/* ====== SECCIONES ====== */
.section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  color: #e6f5ff;
  margin: 0 0 10px;
}
.section p.lead { color: #b9d7ff; margin: 0 0 22px; }

/* ====== CARDS ====== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: #e8f5ff;
  min-height: 170px;
}
.card small { opacity: .75; }

/* ====== CARRUSEL ====== */
.carrusel { position: relative; }
.carrusel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.carrusel-track::-webkit-scrollbar { height: 8px; }
.carrusel-item { min-width: 280px; scroll-snap-align: start; }

.nav-btn {
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  gap: 8px;
}
.nav-btn button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #e8f5ff;
  border-radius: 12px;
  padding: .5rem .7rem;
}

/* ====== FOOTER ====== */
.footer { padding: 28px 0; color: #a9c7e6; }
.footer .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #cfe6ff;
  font-size: .85rem;
}

/* ====== FAQs (azules) ====== */
.faqs .faq-list { display: grid; gap: 10px; margin-top: 18px; }

.faqs details {
  border: 1px solid rgba(102,204,255,.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,30,50,.4), rgba(10,20,35,.25));
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease, transform .25s ease;
}
.faqs details:hover {
  border-color: rgba(102,204,255,.35);
  background: linear-gradient(180deg, rgba(20,40,65,.5), rgba(12,24,42,.35));
  transform: translateY(-2px);
}

.faqs summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  position: relative;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
  opacity: .95;
  color: #6cf;
}
.faqs details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

/* Respuesta (soporta .content antiguo y .answer actual) */
.faqs .content,
.faqs .answer {
  padding: 14px 16px 16px;
  color: #dfefff;
  line-height: 1.55;
  border-top: 1px solid rgba(102,204,255,.2);
}

.faq-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

/* ====== CONTACT BUTTONS (WhatsApp / Email) ====== */
.btn-whatsapp-contact,
.btn-mail-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
  min-width: 200px;
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn-whatsapp-contact { background: #66CCFF; color: #000; }
.btn-mail-contact { background: rgba(255,255,255,.06); color: #e6f5ff; }

.btn-whatsapp-contact:hover,
.btn-mail-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(102,204,255,.25);
}

/* Contenedores típicos para alinear los botones en fila */
.contact-actions,
.actions,
.cta,
.buttons,
.btns {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .btn-whatsapp-contact,
  .btn-mail-contact {
    width: 100%;
    max-width: 360px;
    white-space: normal;
  }
  .contact-actions,
  .actions,
  .cta,
  .buttons,
  .btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ====== SERVICIOS PAGE ====== */
.hero-servicios {
  padding: 90px 0 40px;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, rgba(102,204,255,.15), transparent 70%);
}
.hero-servicios h1 {
  font-size: clamp(32px, 5vw, 54px);
  color: #e8f5ff;
  margin-bottom: 10px;
}
.hero-servicios p {
  color: #b9d7ff;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Carrusel categorías */
.carrusel-cat {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 20px 10px 5px;
  scroll-snap-type: x mandatory;
}
.carrusel-cat::-webkit-scrollbar { display: none; }

.cat-item {
  flex: 0 0 auto;
  width: 240px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 16px;
  border-radius: 16px;
  scroll-snap-align: start;
  text-align: center;
  color: #e8f5ff;
  font-weight: 500;
  transition: .25s;
}
.cat-item:hover {
  transform: translateY(-4px);
  border-color: #6cf;
  box-shadow: 0 6px 26px rgba(102,204,255,.26);
}

/* Grid servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.serv-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: .25s;
}
.serv-card:hover {
  transform: translateY(-4px);
  border-color: #6cf;
  box-shadow: 0 6px 26px rgba(102,204,255,.26);
}

.serv-title { font-size: 1.3rem; color: #e8f5ff; font-weight: 600; }
.serv-desc { color: #cfe6ff; line-height: 1.5; }

/* Botón demo */
.btn-demo {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: #6cf;
  color: #061018;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s, box-shadow .2s;
}
.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102,204,255,.25);
}