/* ============================================================
   Apassa — Home (home.css)
   Estilos exclusivos de la página de inicio (cinematic/premium).
   ============================================================ */

/* ---------- Hero premium ---------- */
.hero h1 {
  color: #fff;
  background: linear-gradient(135deg, #FFFFFF 15%, #A9C3FF 50%, #3D7BFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em {
  background: linear-gradient(120deg, #5B96FF, #C0D6FF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-head h2 {
  color: #fff;
  background: linear-gradient(135deg, #F5F5F7 20%, #8FB2FF 60%, #4D8BFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 18% 22%, rgba(18,85,255,.20), transparent 55%);
  z-index: 1; pointer-events: none;
}

/* ---------- Navegación / cards con blur ---------- */
.nav { background: rgba(13,13,18,.40); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.scrolled { background: rgba(13,13,18,.74); }
.card {
  background: rgba(27,27,36,.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.card:hover { border-color: rgba(125,169,255,.35); box-shadow: 0 16px 48px rgba(18,85,255,.22); }

/* ---------- Botón primario con shine ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 20px; }
.bento .card { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bento .b-large { grid-column: span 2; grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-large, .bento .b-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento .b-large, .bento .b-wide { grid-column: span 1; grid-row: auto; }
}

/* ---------- Bandas fullwidth ---------- */
.band {
  position: relative; min-height: 68vh;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-attachment: fixed;
  overflow: hidden; padding: 0;
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,18,.74), rgba(13,13,18,.32) 50%, rgba(13,13,18,.85));
}
.band .band-inner { position: relative; z-index: 2; text-align: center; max-width: 840px; padding: 0 24px; }
.band h2 {
  font-size: clamp(2rem,5vw,3.6rem); font-weight: 700; letter-spacing: -1px; margin: 14px 0; color: #fff;
  background: linear-gradient(135deg, #F5F5F7 20%, #8FB2FF 60%, #4D8BFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.band p { color: var(--steel); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
@media (max-width: 860px) { .band { background-attachment: scroll; min-height: 52vh; } }

/* ---------- Nav móvil ---------- */
.nav-toggle {
  display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1.25rem; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(13,13,18,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08); flex-direction: column; padding: 8px 24px 18px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px 2px; color: var(--steel); font-weight: 500; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { padding: 12px 0; }
  .nav-cta { padding: 9px 16px; font-size: .82rem; }
  .brand img { height: 40px !important; }
  .hero h1 { font-size: clamp(2.1rem,9vw,3.4rem); }
  .hero p { font-size: 1rem; }
  .hero-content { padding: 120px 0 56px; }
  section { padding: 60px 0; }
  .sec-head h2 { font-size: 1.7rem; }
  .card img { height: 160px; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand img { height: 34px !important; }
  .nav-cta { padding: 8px 14px; font-size: .78rem; }
  .hero h1 { font-size: 1.9rem; letter-spacing: -.5px; }
  .hero p { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; text-align: center; gap: 8px; }
}
