/* ===== VARIABLES ===== */
:root {
  --bg-base: #0f172a; 
  --card-bg: #1e293b; 
  --yellow-glow: #FFBD24;
  --green: #7CB566;
  --green-dark: #5f9a4c;
  --green-light: rgba(124, 181, 102, 0.15);
  --text-light: #f8fafc;
  --text-gray: #94a3b8;
  --border-color: #334155;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.dark-theme-body {
  font-family: 'Outfit', sans-serif !important;
  background-color: var(--bg-base) !important;
  color: var(--text-light) !important;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
  position: relative;
  overflow-x: hidden;
}

/* ===== Luces de fondo ===== */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}
.glow-1 { width: 500px; height: 500px; background: var(--yellow-glow); top: -150px; left: -150px; }
.glow-2 { width: 400px; height: 400px; background: var(--green); bottom: -100px; right: -100px; }

/* ===== Tarjeta Principal ===== */
.card {
  background: var(--card-bg) !important;
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

/* ===== Etiqueta ===== */
.tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* ===== Logo ===== */
.logo-wrapper { margin: 0 auto 24px; display: flex; justify-content: center; }
.logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 181, 102, 0.2);
  padding: 10px;
}

/* ===== Títulos ===== */
.title { font-size: 30px; font-weight: 700; margin-bottom: 10px; color: var(--text-light) !important; }
.subtitle { font-size: 15px; color: var(--text-gray) !important; line-height: 1.5; margin-bottom: 24px; padding: 0 8px; }

/* ===== Ubicación ===== */
.location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 28px;
}
.location i { color: var(--yellow-glow); }

/* ===== Botones de acción ===== */
.actions { display: flex; justify-content: center; gap: 14px; margin-bottom: 32px; }
.btn-action {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  font-size: 22px;
  text-decoration: none;
  background: #0f172a;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.btn-primary { color: var(--yellow-glow); }
.btn-primary:hover { background: rgba(255, 189, 36, 0.1); border-color: var(--yellow-glow); transform: translateY(-4px); }
.btn-whatsapp { color: #25D366; }
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.1); border-color: #25D366; transform: translateY(-4px); }
.btn-outline { color: var(--text-gray); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-light); border-color: var(--text-light); transform: translateY(-4px); }

/* ===== TÍTULOS DE SECCIÓN CON LÍNEA ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 16px;
}
.section-header h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-gray);
  white-space: nowrap;
  margin: 0 16px;
}
/* La línea elegante con gradiente */
.section-header::before,
.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* ===== Grilla de datos ===== */
.grid-info { display: flex; flex-direction: column; gap: 12px; }
.grid-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 20px;
  transition: all 0.3s ease;
}
.grid-item:hover { border-color: #475569; background: #151f32; }
.grid-item i {
  font-size: 18px;
  color: var(--yellow-glow);
  background: rgba(255, 189, 36, 0.1);
  padding: 12px;
  border-radius: 10px;
}
.grid-text h3 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-gray);
  margin-bottom: 4px;
}
.grid-text p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light) !important;
  word-break: break-word;
}

/* ===== Redes sociales ===== */
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.social-btn {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--text-light);
  text-decoration: none;
  background: #0f172a;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.social-btn:hover { transform: translateY(-4px); background: #1e293b; }
.instagram:hover { color: #E1306C; border-color: #E1306C; }
.facebook:hover  { color: #1877F2; border-color: #1877F2; }
.tiktok:hover    { color: #fff; border-color: #fff; }


/* ===== RESPONSIVE (Ajuste perfecto en teléfono) ===== */
@media (max-width: 500px) {
  body.dark-theme-body {
    padding: 0;
    background-color: var(--bg-base) !important;
    display: block; 
    /* Permite que el fondo se adapte a la pantalla del dispositivo */
    min-height: 100vh; 
  }

  .card {
    max-width: 100%;
    width: 100%;
    /* El alto ahora es automático, ajustándose al contenido o a la pantalla */
    min-height: 100vh; 
    height: auto;
    border-radius: 0;
    padding: 40px 20px 50px 20px;
    border: none;
    box-shadow: none;
    background: var(--bg-base) !important; 
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
  }

  /* Las luces se mantienen contenidas en los bordes */
  .bg-glow {
    position: absolute;
    z-index: 0;
  }
  .glow-1 { width: 250px; height: 250px; top: -50px; left: -80px; opacity: 0.15; }
  .glow-2 { width: 200px; height: 200px; bottom: -50px; right: -80px; opacity: 0.15; }

  /* Ajustes de tamaño para móvil */
  .logo { width: 90px; height: 90px; font-size: 36px; }
  .title { font-size: 26px; margin-top: 10px; }
  .subtitle { font-size: 14px; margin-bottom: 20px; }
  .location { margin-bottom: 20px; font-size: 13px; padding: 8px 16px; }
  
  .actions { margin-bottom: 24px; gap: 10px; }
  .btn-action { width: 52px; height: 52px; font-size: 20px; }
  
  .grid-info { gap: 10px; }
  .grid-item { padding: 12px 16px; gap: 12px; }
  .grid-item i { padding: 10px; font-size: 16px; }
  .grid-text p { font-size: 13px; }
  
  .section-header { margin: 20px 0 12px; }
  .section-header h2 { font-size: 11px; }
  
  .social-btn { width: 48px; height: 48px; font-size: 18px; }
}