/* Élite Mile · página de enlaces */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Marca: negro de la camioneta y el dorado de la luz que la recorre */
  --negro: #0A0A0B;
  --negro-2: #121214;
  --oro: #D6B26A;
  --oro-claro: #F0D9A0;
  --oro-hondo: #A9843F;
  --blanco: #FFFFFF;
  --texto: #F3F1EC;
  --texto-suave: rgba(243, 241, 236, .74);
  --vidrio: rgba(255, 255, 255, .07);
  --vidrio-borde: rgba(240, 217, 160, .20);

  --radio: 16px;
  --rapido: 140ms;
  --suave: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--texto);
  background: var(--negro);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ---------- Escena ---------- */
.escena { position: relative; min-height: 100svh; }

/* Fotos de fondo (celular: toda la pantalla) */
.fotos {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--negro);
}
.foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.6s ease, transform 8s linear;
}
.foto.activa { opacity: 1; transform: scale(1); }

.velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, .08) 22%, rgba(10, 10, 11, .30) 40%, rgba(10, 10, 11, .86) 58%, var(--negro) 84%);
}

/* Rayita de arriba que se llena mientras se ve cada foto */
.avance {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.avance i {
  display: block;
  height: 100%;
  background: var(--oro-claro);
  transform-origin: left;
  transform: scaleX(0);
}
.avance i.corre { animation: llenar var(--duracion, 5.5s) linear both; }
@keyframes llenar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Columna de contenido ---------- */
.tarjeta {
  position: relative;
  min-height: 100svh;
  width: min(100%, 460px);
  margin-inline: auto;
  padding: 0 20px calc(26px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.marca {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* La luz dorada detrás del nombre, como la de la foto de perfil */
.farola {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 150px;
  margin: -95px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 178, 106, .30), rgba(214, 178, 106, 0));
  filter: blur(8px);
  pointer-events: none;
  animation: encender 1.8s var(--suave) both;
}

/* El nombre en dorado, con un reflejo que lo cruza como una luz sobre la carrocería */
.logo {
  position: relative;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 13vw, 3.5rem);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  padding-left: .08em; /* compensa el espacio de la última letra */
  color: var(--oro);
  background:
    linear-gradient(100deg, transparent 40%, rgba(255, 250, 235, .95) 50%, transparent 60%) no-repeat,
    linear-gradient(180deg, var(--oro-claro) 0%, var(--oro) 55%, var(--oro-hondo) 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: entrar .8s var(--suave) .15s both, reflejo 6s ease-in-out 1.2s infinite;
}

.rubro {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texto);
  animation: entrar .6s var(--suave) .3s both;
}
.rubro-texto { white-space: nowrap; }
.rubro .punto { color: var(--oro); margin-inline: .2em; }
.rubro::before, .rubro::after {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro));
}
.rubro::after { background: linear-gradient(90deg, var(--oro), transparent); }
@media (max-width: 380px) { .rubro::before, .rubro::after { display: none; } }

.bajada {
  margin: 4px auto 16px;
  max-width: 34ch;
  font-size: .92rem;
  line-height: 1.55;
  text-align: center;
  color: var(--texto-suave);
  text-wrap: pretty;
  animation: entrar .6s var(--suave) .42s both;
}

/* Puntual · Impecable · Directo (los mismos del reel) */
.sellos {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  animation: entrar .6s var(--suave) .5s both;
}
.sellos li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.sellos li::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid var(--oro);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23F0D9A0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Botones ---------- */
.enlaces { display: grid; gap: 12px; }

.boton {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radio);
  color: var(--texto);
  text-decoration: none;
  background: var(--vidrio);
  border: 1px solid var(--vidrio-borde);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
  transition: transform var(--rapido) var(--suave), background var(--rapido) ease, border-color var(--rapido) ease;
  animation: entrar .6s var(--suave) both;
  -webkit-tap-highlight-color: transparent;
}
.enlaces .boton:nth-child(1) { animation-delay: .58s; }
.enlaces .boton:nth-child(2) { animation-delay: .66s; }
.enlaces .boton:nth-child(3) { animation-delay: .74s; }

.boton:hover { background: rgba(255, 255, 255, .12); border-color: rgba(240, 217, 160, .42); }
.boton:active { transform: scale(.97); }
.boton:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }

.icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--oro-claro);
  background: rgba(214, 178, 106, .12);
  border: 1px solid rgba(214, 178, 106, .22);
}
.icono svg { width: 22px; height: 22px; fill: currentColor; }

.texto { display: grid; gap: 2px; min-width: 0; flex: 1; }
.texto strong { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.texto small { font-weight: 700; font-size: .78rem; color: var(--texto-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flecha {
  flex: none;
  font-size: 1.15rem;
  color: var(--oro);
  opacity: .8;
  transition: transform var(--rapido) var(--suave), opacity var(--rapido) ease;
}
.boton:hover .flecha { transform: translateX(3px); opacity: 1; }

/* WhatsApp: el botón principal, en dorado */
.boton--whatsapp {
  min-height: 76px;
  color: var(--negro);
  background: linear-gradient(135deg, var(--oro-claro) 0%, var(--oro) 55%, var(--oro-hondo) 100%);
  border-color: rgba(255, 244, 214, .55);
  box-shadow: 0 18px 36px -16px rgba(214, 178, 106, .65);
}
.boton--whatsapp:hover { background: linear-gradient(135deg, #F6E4B6 0%, #DDBB76 55%, #B48E47 100%); border-color: rgba(255, 244, 214, .8); }
.boton--whatsapp .icono { background: var(--negro); border: 0; color: #25D366; width: 50px; height: 50px; border-radius: 50%; }
.boton--whatsapp .icono svg { width: 27px; height: 27px; }
.boton--whatsapp .texto strong { font-size: 1.02rem; white-space: nowrap; }
.boton--whatsapp .texto small { color: rgba(10, 10, 11, .78); font-size: .9rem; letter-spacing: .04em; }
.boton--whatsapp .flecha { color: var(--negro); opacity: 1; }

/* Un brillo que cruza el botón de WhatsApp de vez en cuando */
.boton--whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: brillo 6s ease-in-out 2s infinite;
  pointer-events: none;
}

.pie {
  margin-top: 20px;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .04em;
  color: rgba(243, 241, 236, .5);
}
.pie p { margin: 0; }

/* ---------- Animaciones ---------- */
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes encender { from { opacity: 0; transform: scaleX(.4); } to { opacity: 1; transform: none; } }
@keyframes reflejo { 0%, 62% { background-position: 150% 0, 0 0; } 100% { background-position: -50% 0, 0 0; } }
@keyframes brillo { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Pantallas grandes: foto enmarcada al lado ---------- */
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(55% 65% at 75% 30%, rgba(214, 178, 106, .10) 0%, rgba(214, 178, 106, 0) 60%),
      radial-gradient(60% 70% at 12% 95%, rgba(214, 178, 106, .07) 0%, rgba(214, 178, 106, 0) 60%),
      var(--negro);
  }
  .escena {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 440px);
    justify-content: center;
    align-items: center;
    gap: 80px;
    min-height: 100svh;
    padding: 48px 32px;
  }
  .fotos {
    position: relative;
    inset: auto;
    aspect-ratio: 9 / 16;
    max-height: calc(100svh - 96px);
    width: 100%;
    margin-inline: auto;
    border-radius: 26px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(240, 217, 160, .16);
  }
  .velo { background: linear-gradient(180deg, rgba(10, 10, 11, .35) 0%, rgba(10, 10, 11, 0) 20%, rgba(10, 10, 11, 0) 78%, rgba(10, 10, 11, .45) 100%); }
  .tarjeta { min-height: 0; padding: 0; justify-content: center; }
}

/* ---------- Quien prefiere menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .foto { transform: none; }
  .boton--whatsapp::after { display: none; }
}
