/* ==========================================================================
   brillo.css · LUCES, BRILLOS Y ANIMACIONES
   Va DESPUÉS de piezas.css. Si algún día quieres la página "sobria" otra vez,
   basta con quitar la línea de este archivo en index.html.
   ========================================================================== */

/* ---------- Fondo con luces (auroras ámbar y menta que se mueven despacio) ---------- */
.app { isolation: isolate; }
@supports (overflow: clip) { .app { overflow: clip; } }   /* las luces no se salen del "celular" */
.app::before, .app::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(50px); opacity: .9;
}
.app::before {
  width: 420px; height: 420px; top: -170px; left: -150px;
  background: radial-gradient(circle, #F2B35A 0%, #F2B35A00 70%);
  animation: flotar 14s ease-in-out infinite alternate;
}
.app::after {
  width: 300px; height: 300px; top: 420px; right: -140px;
  background: radial-gradient(circle, #7FE0B4 0%, #7FE0B400 70%);
  opacity: .5;
  animation: flotar 18s ease-in-out infinite alternate-reverse;
}
@keyframes flotar {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.15); }
}

/* En el computador: el "celular" flota sobre un fondo con luces y un borde que brilla */
@media (min-width: 520px) {
  body {
    background:
      radial-gradient(700px 500px at 18% 20%, #F2B35A22, transparent 70%),
      radial-gradient(800px 600px at 85% 80%, #7FE0B41C, transparent 70%),
      radial-gradient(1200px 640px at 50% -10%, #12372C, #030806);
    background-attachment: fixed;
  }
  .app {
    border: 1px solid transparent;
    background:
      linear-gradient(var(--fondo), var(--fondo)) padding-box,
      linear-gradient(160deg, #F2B35A88, #1E382D 35%, #1E382D 65%, #7FE0B466) border-box;
    box-shadow: 0 30px 90px #000000D0, 0 0 80px #F2B35A1F;
  }
}

/* ---------- Entrada escalonada: cada bloque aparece un poquito después del anterior ---------- */
.vista.entrando > * { animation: subir .6s var(--curva) both; }
.vista.entrando > *:nth-child(2) { animation-delay: .06s; }
.vista.entrando > *:nth-child(3) { animation-delay: .12s; }
.vista.entrando > *:nth-child(4) { animation-delay: .18s; }
.vista.entrando > *:nth-child(5) { animation-delay: .24s; }
.vista.entrando > *:nth-child(6) { animation-delay: .30s; }
.vista.entrando > *:nth-child(n+7) { animation-delay: .36s; }
.vista.entrando { animation: none; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Marca ---------- */
.marca svg { filter: drop-shadow(0 0 8px #F2B35A99); }
.etiqueta-ciudad { background: #0D1B15AA; backdrop-filter: blur(6px); border-color: #F2B35A55; color: var(--ambar-2); }
.etiqueta-ciudad::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px;
  background: var(--menta); box-shadow: 0 0 8px var(--menta); vertical-align: 1px;
  animation: latido 2s ease-in-out infinite;
}

/* ---------- Portada: borde que brilla + destello que cruza la imagen ---------- */
.portada {
  position: relative; border: 1px solid transparent;
  background: linear-gradient(135deg, #F2B35A, #1E382D 40%, #1E382D 60%, #7FE0B4) border-box;
  box-shadow: 0 18px 50px #00000090, 0 0 50px #F2B35A30;
}
.portada img { border-radius: 23px; }
.portada::after {
  content: ""; position: absolute; inset: 0; border-radius: 23px; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, #FFE6B855 48%, #FFFFFF70 50%, #FFE6B855 52%, transparent 65%);
  background-size: 250% 100%; background-position: 150% 0;
  mix-blend-mode: screen; animation: destello 6s ease-in-out 1s infinite;
}
@keyframes destello { 0%, 70% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

/* ---------- Título con degradado dorado ---------- */
.titulo-grande { font-size: 2rem; letter-spacing: -.01em; }
.titulo-grande b {
  background: linear-gradient(90deg, #FFD08A, #F2B35A 40%, #FFB36B 60%, #FFE2A8);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px #F2B35A55);
  animation: oro 6s ease-in-out infinite alternate;
}
@keyframes oro { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- Botones con brillo ---------- */
.boton--principal {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFD08A, #F2B35A 55%, #E9963A);
  box-shadow: 0 10px 28px #F2B35A55, inset 0 1px 0 #FFFFFF66;
}
.boton--principal:hover { background: linear-gradient(135deg, #FFE0A8, #FFC370 55%, #F2A24A); box-shadow: 0 14px 34px #F2B35A77, inset 0 1px 0 #FFFFFF88; transform: translateY(-1px); }
.boton--principal::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, #FFFFFF99, transparent);
  transform: skewX(-20deg); animation: barrido 4.5s ease-in-out 1.5s infinite;
}
@keyframes barrido { 0%, 75% { left: -60%; } 100% { left: 130%; } }
.boton--borde { background: #0D1B1599; backdrop-filter: blur(6px); }
.boton--borde:hover { box-shadow: 0 0 22px #F2B35A33; }

/* ---------- Íconos de apps: brillan con su propio color ---------- */
.icono-app__caja {
  box-shadow: 0 10px 24px #00000070, 0 0 26px color-mix(in srgb, var(--c, #F2B35A) 45%, transparent);
}
.icono-app__caja::after {   /* reflejo de vidrio arriba */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, #FFFFFF59, #FFFFFF00 45%);
}
.icono-app:hover .icono-app__caja, .icono-app:focus-visible .icono-app__caja {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 16px 30px #00000080, 0 0 40px color-mix(in srgb, var(--c, #F2B35A) 70%, transparent);
}
.punto--pronto { animation: latido 1.8s ease-in-out infinite; }
.punto--lista { box-shadow: 0 0 0 1.5px #ffffffcc, 0 0 10px #3FCB82; }
@keyframes latido { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .75; } }

/* ---------- Tarjetas de vidrio con borde degradado ---------- */
.tarjeta {
  background: linear-gradient(160deg, #10271ECC, #0D1B15CC) padding-box,
              linear-gradient(160deg, #2A4A3C, #1E382D 50%, #2A4A3C) border-box;
  border: 1px solid transparent; backdrop-filter: blur(8px);
}
/* La tarjeta destacada: borde que gira con los colores de marca */
.tarjeta--brillo { position: relative; overflow: hidden; border: none; padding: 19px; background: none; }
.tarjeta--brillo::before {
  content: ""; position: absolute; z-index: -2; inset: -60%;
  background: conic-gradient(from 0deg, #F2B35A, #7FE0B4, #2D3BFF, #FF4FA3, #F2B35A);
  animation: girar 8s linear infinite;
}
.tarjeta--brillo::after {
  content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: calc(var(--radio) - 1.5px);
  background: radial-gradient(120% 90% at 0% 0%, #1B3A2E, var(--fondo-2) 60%);
}
.tarjeta--brillo { isolation: isolate; box-shadow: 0 0 40px #F2B35A26; }
@keyframes girar { to { transform: rotate(1turn); } }
.tarjeta-app__icono { box-shadow: 0 0 26px color-mix(in srgb, var(--c, #F2B35A) 55%, transparent); }

/* ---------- Pasos y chips de Nosotros ---------- */
.paso { background: linear-gradient(160deg, #10271E, #0D1B15); }
.paso__num { background: linear-gradient(180deg, #FFD08A, #F2B35A); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 300; }
.cita { border-image: linear-gradient(180deg, #FFD08A, #7FE0B4) 1; }
.direcciones b { text-shadow: 0 0 10px #F2B35A66; }

/* ---------- Barra inferior ---------- */
.barra__item[aria-current="page"] {
  background: radial-gradient(80% 100% at 50% 100%, #F2B35A33, #F2B35A0D);
  box-shadow: inset 0 0 0 1px #F2B35A33;
}
.barra__item[aria-current="page"] [data-icono] { filter: drop-shadow(0 0 6px #F2B35AAA); }

/* ---------- Filtros ---------- */
.filtro.activo { background: linear-gradient(135deg, #FFD08A, #F2B35A); box-shadow: 0 6px 18px #F2B35A44; }

/* ====================== SEGUNDA CAPA: MÁS BRILLO ====================== */

/* Halo dorado detrás del banner */
.portada { overflow: visible; isolation: isolate; }
.portada::before {
  content: ""; position: absolute; z-index: -1; inset: 10% 5% -18%;
  background: radial-gradient(60% 60% at 50% 60%, #F2B35A88, #F2B35A00 70%);
  filter: blur(30px); animation: respirar 5s ease-in-out infinite;
}
@keyframes respirar { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* Estrellas que titilan sobre el cielo del banner */
.estrellas {
  position: absolute; z-index: 2; inset: 0 0 45% 0; border-radius: 23px 23px 0 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 27% 12%, #FFE6B8, transparent),
    radial-gradient(1.8px 1.8px at 41% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 58% 10%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 72% 26%, #FFE6B8, transparent),
    radial-gradient(1.2px 1.2px at 86% 14%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 94% 38%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 6% 48%, #FFE6B8, transparent);
  animation: titilar 3.2s ease-in-out infinite alternate;
}
.estrellas::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 19% 40%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 35% 18%, #FFE6B8, transparent),
    radial-gradient(1.2px 1.2px at 50% 44%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 66% 40%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 80% 6%, #FFE6B8, transparent);
  animation: titilar 2.4s ease-in-out .8s infinite alternate-reverse;
}
@keyframes titilar { from { opacity: .15; } to { opacity: 1; } }

/* Título más grande y con luz */
.titulo-grande { font-size: 2.2rem; text-shadow: 0 0 30px #F2B35A22; }

/* Cifras: tres chips de vidrio con número dorado */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cifra {
  position: relative; overflow: hidden; text-align: center; padding: 14px 6px 12px; border-radius: 18px;
  background: linear-gradient(160deg, #F2B35A1F, #0D1B15CC 55%) padding-box,
              linear-gradient(160deg, #F2B35A99, #1E382D 60%, #7FE0B455) border-box;
  border: 1px solid transparent; backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px #00000060, inset 0 1px 0 #FFFFFF14;
}
.cifra b {
  display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #FFE2A8, #F2B35A); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px #F2B35A66);
}
.cifra span { display: block; margin-top: 4px; font-size: .6875rem; color: var(--suave); line-height: 1.25; }

/* Las apps sobre un "dock" de vidrio, como la pantalla de un celular */
.muelle {
  padding: 18px 10px 14px; border-radius: 26px;
  background: linear-gradient(160deg, #FFFFFF12, #FFFFFF05) padding-box,
              linear-gradient(160deg, #FFFFFF33, #FFFFFF08 50%, #F2B35A44) border-box;
  border: 1px solid transparent; backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px #00000070, inset 0 1px 0 #FFFFFF1F;
}
.icono-app__caja { width: 66px; height: 66px; }

/* Separador de luz entre secciones */
.seccion-titulo { position: relative; padding-top: 6px; }
.seccion-titulo::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #F2B35A88, transparent);
}
