/* style.css - ASIU VIP | FINAL VERSION */

:root {
  --bg: #050607;
  --panel: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --green: #A7D34A;
  --gold: #D9B35A;
  --gold2: #B98B2F;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
  --r: 24px;
  --logo: 120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #030405 0%, #07080A 45%, #040506 100%);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* === ESTRUCTURA === */
.wrap {
  min-height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 30px 16px;
}
.card {
  width: min(500px, 100%); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow); position: relative; overflow: hidden; padding: 40px; text-align: center;
}
.card.wide { width: min(1040px, 100%); }

/* === BRANDING === */
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 25px; }
.logoBox {
  width: var(--logo); height: var(--logo); border-radius: 50%;
  background: linear-gradient(180deg, rgba(217,179,90,0.14), rgba(167,211,74,0.08));
  border: 1px solid rgba(217,179,90,0.26);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.logoBox img {
  width: calc(var(--logo) - 10px); height: calc(var(--logo) - 10px);
  object-fit: contain; transform: scale(3); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}
h1 { font-size: 24px; font-weight: 900; margin: 0; color: var(--gold); }
.goldWord {
  background: linear-gradient(135deg, var(--gold), #F3E0A9, var(--gold2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 25px; }

/* === TARJETA FLOTANTE 3D === */
.card-stage { perspective: 1000px; width: 100%; display: flex; justify-content: center; margin: -10px 0 25px; }

.luxury-card {
  width: 280px; height: auto; position: relative;
  transform-style: preserve-3d; 
  /* Mantiene la animación de flotar arriba y abajo */
  animation: floating 6s ease-in-out infinite; 
}

.luxury-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Animación que gira la tarjeta sola cada par de segundos */
  animation: autoFlip 6s infinite; 
}

.card-front, .card-back {
  width: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 25px rgba(217, 179, 90, 0.2);
  border: 1px solid rgba(255,255,255,0.1);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.card-front {
  position: relative; /* Esto le da la altura dinámica a todo el bloque basándose en la imagen */
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

.card-front img, .card-back img { width: 100%; display: block; border-radius: 14px; }

/* El brillo aplica ahora a ambas caras */
.card-front::after, .card-back::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg); animation: shineCard 5s infinite; pointer-events: none;
}

@keyframes floating { 
  0%, 100% { transform: translateY(0) rotateX(5deg); } 
  50% { transform: translateY(-10px) rotateX(0deg); } 
}

@keyframes shineCard { 
  0% { left: -100%; opacity: 0; } 
  20% { opacity: 1; } 
  50%, 100% { left: 200%; opacity: 0; } 
}

/* Tiempos de giro para mostrar cada cara de la tarjeta */
@keyframes autoFlip {
  0%, 40% { transform: rotateY(0deg); }      /* Espera mostrando el frente */
  50%, 90% { transform: rotateY(180deg); }   /* Gira y espera mostrando la parte de atrás */
  100% { transform: rotateY(360deg); }       /* Da el giro completo de regreso al frente */
}

/* === PRECIOS BOX === */
.pricing-box {
  background: linear-gradient(135deg, rgba(167, 211, 74, 0.05), rgba(217, 179, 90, 0.05));
  border: 1px solid rgba(217, 179, 90, 0.3); border-radius: 20px;
  padding: 25px 15px; position: relative; overflow: hidden; margin-bottom: 30px;
}
.price-row {
  display: flex; flex-direction: row; justify-content: center; align-items: center; 
  gap: 15px; margin-top: 20px; flex-wrap: wrap;
}
.price-item {
  background: rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; 
  min-width: 130px; text-align: center; border: 1px solid transparent;
}
.price-item.active {
  background: rgba(167, 211, 74, 0.15); border: 2px solid var(--green);
  transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.lbl { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.lbl.highlight { color: var(--green); font-weight: 800; letter-spacing: 1px; }
.amount { font-size: 18px; color: #fff; font-weight: 700; }
.amount.crossed { text-decoration: line-through; color: #ff6b6b; opacity: 0.7; }
.amount.big { font-size: 28px; text-shadow: 0 0 15px rgba(167, 211, 74, 0.4); }
.note { font-size: 10px; color: #ddd; margin-top: 4px; opacity: 0.8; }
.vs-badge { font-weight: 900; font-size: 20px; color: #fff; opacity: 0.8; font-style: italic; margin: 0 5px; }

/* === SERVICIOS CHIPS === */
.vipBand { 
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; 
  margin-bottom: 25px; padding: 0 5px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08);
  font-size: 14px; font-weight: 500; color: #fff; transition: 0.3s;
}
.chip:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--green); transform: translateY(-2px); }
.chip i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(167, 211, 74, 0.15); flex-shrink: 0;
}

/* === RUTA PREMIUM === */
.premium-route {
  margin: 40px 0; position: relative; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.route-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; 
  position: relative; z-index: 2; margin-top: 30px;
}
.route-line {
  position: absolute; top: 105px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3; z-index: 1; display: none;
}
@media (min-width: 768px) { .route-line { display: block; } }

.route-card {
  flex: 1 1 140px; max-width: 250px; min-width: 150px;
  background: linear-gradient(145deg, rgba(30, 32, 35, 0.6), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  padding: 30px 15px; display: flex; flex-direction: column; align-items: center;
  transition: 0.4s; text-decoration: none !important; position: relative;
}
.route-card:hover {
  transform: translateY(-8px); border-color: var(--gold);
  background: linear-gradient(145deg, rgba(40, 42, 45, 0.9), rgba(20, 20, 20, 1));
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(217, 179, 90, 0.2); cursor: pointer;
}
.icon-glow {
  width: 64px; height: 64px; border-radius: 50%; background: #050607;
  border: 1px solid rgba(217, 179, 90, 0.3); display: flex; align-items: center; justify-content: center;
  margin-bottom: 15px; box-shadow: 0 0 15px rgba(217, 179, 90, 0.15);
  color: var(--gold); z-index: 2; transition: 0.3s;
}
.route-card:hover .icon-glow {
  transform: scale(1.1); background: var(--gold); color: #000; box-shadow: 0 0 25px rgba(217, 179, 90, 0.4);
}
.icon-glow svg { width: 28px; height: 28px; }
.route-card h4 { color: #fff; margin: 0 0 8px 0; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.route-card p { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; max-width: 90%; }

/* === BOTONES === */
.action-buttons-container { display: grid; grid-template-columns: 1fr 1.3fr; gap: 15px; margin-top: 40px; }
.btn-gold-pulse {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #F3E0A9, var(--gold2));
  color: #000; font-weight: 900; font-size: 15px; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(217, 179, 90, 0.4); animation: pulseGold 2s infinite; border: none;
}
.btn-gold-pulse:hover { transform: scale(1.02); filter: brightness(1.1); }
@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(217, 179, 90, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(217, 179, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 179, 90, 0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .logoBox { width: 80px; height: 80px; }
  .card { padding: 25px; }
  .luxury-card { width: 100%; max-width: 320px; }
  .action-buttons-container { grid-template-columns: 1fr 1.3fr; }
}
@media (min-width: 768px) {
  .luxury-card { width: 340px; }
  .action-buttons-container { grid-template-columns: 1fr 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

/* === UTILIDADES EXTRA (Formularios etc.) === */
form { display: flex; flex-direction: column; gap: 15px; text-align: left; }
label { font-size: 13px; font-weight: 700; color: var(--gold); margin-left: 5px; margin-bottom: -5px; }
input[type="text"], input[type="password"] {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--stroke);
  color: #fff; font-size: 16px; outline: none; transition: 0.2s;
}
input:focus { border-color: var(--gold); background: rgba(0, 0, 0, 0.5); }
.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px;
  border-radius: 12px; font-weight: 800; font-size: 16px; color: #fff;
  border: 1px solid rgba(217, 179, 90, 0.35);
  background: linear-gradient(135deg, rgba(217, 179, 90, 0.2), rgba(167, 211, 74, 0.15));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); cursor: pointer; transition: 0.2s;
}
.btn:hover, .cta:hover { transform: translateY(-2px); filter: brightness(1.2); }
.btn-secondary { background: transparent; border: 1px solid var(--stroke); box-shadow: none; color: var(--muted); font-size: 14px; margin-top: 10px; display: block; text-align: center; }
.divider { height: 1px; background: rgba(255, 255, 255, 0.10); margin: 20px 0; width: 100%; }
.alert { padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 15px; text-align: center; }
.alert.error { background: rgba(255, 80, 80, 0.15); color: #ff8080; border: 1px solid rgba(255, 80, 80, 0.2); }
.alert.success { background: rgba(167, 211, 74, 0.15); color: var(--green); border: 1px solid rgba(167, 211, 74, 0.2); }

/* === FOOTER NUEVO (AQUÍ ESTÁ LA MAGIA QUE FALTABA) === */
footer {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  margin-top: 60px; /* Separación grande */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}


/* --- MEJORA 1: FONDO CON LUZ (Spotlight) --- */
/* Busca la regla 'body' al principio y agrégale esto o reemplázala: */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  /* Nuevo fondo con luz central */
  background: radial-gradient(circle at 50% 10%, #1a1c20 0%, #050607 60%);
  background-attachment: fixed; /* Para que la luz se quede quieta al hacer scroll */
  overflow-x: hidden;
}

/* --- MEJORA 2: CHIPS DE SERVICIOS (Efecto Cristal) --- */
/* Reemplaza la clase .chip con esta nueva versión */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; 
  border-radius: 50px;
  /* Borde casi invisible pero brillante */
  border: 1px solid rgba(255, 255, 255, 0.1); 
  /* Fondo semi-transparente con blur */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px); /* El truco del vidrio */
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.8); 
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chip:hover { 
  background: rgba(167, 211, 74, 0.1); /* Brillo verde sutil al pasar mouse */
  border-color: var(--green); 
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 0 15px rgba(167, 211, 74, 0.2); /* Resplandor verde */
}

/* --- MEJORA 3: BOTÓN ORO LÍQUIDO (Más brillo) --- */
/* Reemplaza .btn-gold-pulse con esta versión */
.btn-gold-pulse {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; border-radius: 14px;
  /* Degradado más complejo para simular reflejo metálico */
  background: linear-gradient(110deg, #B98B2F 0%, #D9B35A 25%, #F8F0D0 50%, #D9B35A 75%, #B98B2F 100%);
  background-size: 200% auto; /* Para poder animar el brillo si quisieras */
  color: #000; font-weight: 900; font-size: 15px; text-transform: uppercase;
  box-shadow: 0 5px 20px rgba(217, 179, 90, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: pulseGold 2s infinite; 
  border: none;
  transition: 0.3s;
}

.btn-gold-pulse:hover { 
  transform: scale(1.03) translateY(-2px); 
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(217, 179, 90, 0.5); /* Sombra más fuerte al hover */
  
  
  /* Corrección Global del Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

section.card {
    margin-top: auto;
    margin-bottom: auto;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Empuja el footer al fondo */
    position: relative;
    clear: both;
}
}