.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E6EAF0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.hero-slider {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero-text p {
  margin: 0 0 22px;
  max-width: 52ch;
  color: #5F6B7A;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin-left: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(11, 15, 20, 0.12);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-visual img {
    max-width: 520px;
    margin: 0;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-info small {
  display: inline-block;
  margin-top: 10px;
  color: #1B9AD7;
  font-weight: 600;
}

.contact-email a {
  color: #1B9AD7;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: #0B0F14;
  color: rgba(255,255,255,.84);
  padding: 56px 0 22px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #1B9AD7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 26px;
  padding-top: 16px;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= HERO PREMIUM ================= */
.hero-slider{
  min-height: calc(100vh - 72px);
  display:flex;
  align-items:center;
  padding: 56px 0;
  background:
    radial-gradient(900px 460px at 80% 30%, rgba(27,154,215,0.14), transparent 60%),
    radial-gradient(700px 380px at 10% 10%, rgba(27,154,215,0.08), transparent 55%),
    #ffffff;
}

.hero-content{
  display:grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items:center;
}

.hero-text h1{
  font-size: clamp(2.1rem, 3.2vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero-text h1 span{
  color:#1B9AD7;
}

.hero-text p{
  margin: 0 0 22px;
  max-width: 58ch;
  color:#5F6B7A;
  font-size: 1.06rem;
}

.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-features{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style:none;
}

.hero-features li{
  border: 1px solid #E6EAF0;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .93rem;
  color:#0B0F14;
}

.hero-visual{
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 900px){
  .hero-slider{ padding: 36px 0; }
  .hero-content{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-visual{
    justify-content:flex-start;
  }
}

.hero-visual{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.product-window{
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

.hero-slider{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 80% 30%, rgba(27,154,215,0.14), transparent 60%),
    radial-gradient(700px 380px at 10% 10%, rgba(27,154,215,0.08), transparent 55%),
    #ffffff;
}

/* capa tech (líneas/dots) ultra sutil */
.hero-slider::after{
  content:"";
  position:absolute;
  inset:-80px;
  background-image:
    radial-gradient(rgba(27,154,215,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .10; /* muy suave para premium */
  transform: rotate(-8deg);
  pointer-events:none;
}

/* ===== Header responsive (evita solapamiento en móvil) ===== */
@media (max-width: 768px){
  .header-inner{
    gap: 12px;
  }

  /* Reduce espacio del menú */
  .main-nav ul{
    gap: 14px;
  }

  /* CTA del header no debe romper */
  .site-header .btn{
    padding: 10px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Si aún se corta, oculta el texto y deja solo el icono/abreviado */
  .site-header .btn.btn-primary{
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}
@media (max-width: 480px){
  .container{
    padding-inline: 16px;
  }
}

/* =========================
   HEADER STICKY (PRO)
========================= */
:root {
  --header-height: 78px; /* perilla */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Ajuste de anclas para que no queden tapadas por el header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 14px);
}

/* =========================
   HEADER FIJO (DESKTOP + MOBILE)
========================= */
:root{
  --header-height: 78px; /* perilla: ajustable si lo necesitas */
}

.site-header{
  position: fixed;        /* ✅ fijo real */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;          /* por encima del contenido */
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Evita que el contenido quede debajo del header fijo */
body{
  padding-top: var(--header-height);
}

/* Evita que los anchors queden tapados al hacer click en el menú */
section[id], main[id]{
  scroll-margin-top: calc(var(--header-height) + 14px);
}

@media (max-width: 900px) {
  .main-nav{
    top: var(--header-height); /* ✅ siempre debajo del header fijo */
  }
}

/* =========================
   HEADER PREMIUM ON SCROLL
========================= */

/* Estado base (sin scroll) */
.site-header {
  transition: 
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease,
    transform 220ms ease;
  box-shadow: none;
}

/* Estado cuando el usuario baja (scroll) */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0,0,0,0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* (Opcional) Efecto “compact” sutil al hacer scroll */
.site-header.is-scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* =========================
   AJUSTE AIRE HEADER (LOGO + NAV)
========================= */
.site-header .header-inner{
  padding-block: 10px; /* prueba: 8px si lo quieres más fino */
}

/* =========================
   HEADER — AIRE Y JERARQUÍA LOGO
========================= */
.header-inner {
  min-height: 88px;      /* Sube el header, da aire real */
  padding-top: 12px;     /* Aire arriba */
  padding-bottom: 12px;  /* Aire abajo */
  align-items: center;   /* Centrado vertical */
}

/* =========================
   HERO — CONTROL DE ALTURA
========================= */

.hero-slider {
  min-height: 620px;
  max-height: 880px;
}
