/**
 * Estilos Principales
 * KIT CARTAS ASTRALES ASTROLOG-IA
 */

:root {
  --cosmic-deep: #1a0b2e;
  --cosmic-purple: #4a148c;
  --cosmic-blue: #1e3a5f;
  --stellar-light: #64b5f6;
  --stellar-glow: #90caf9;
  --star-white: #e3f2fd;
  --gold-accent: #ffd700;
  --success-green: #4caf50;
  --alert-red: #f44336;
  --warm-skin: #f5e6d3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background: var(--cosmic-deep);
  color: var(--star-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografías */
h1, h2, h3, .font-display {
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.font-script {
  font-family: 'Dancing Script', cursive;
}

.font-subtitle {
  font-family: 'Cormorant Garamond', serif;
}

/* Utilidades */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-accent); }
.text-stellar { color: var(--stellar-light); }

.glow-gold {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--cosmic-blue) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 20, 140, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.btn-gold {
  background: var(--gold-accent);
  color: var(--cosmic-deep);
}

.btn-gold:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 11, 46, 0.7) 0%, rgba(26, 11, 46, 0.9) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 800px;
}

.hero-mascota {
  width: 65%;
  max-width: 500px;
  margin: 0 auto 30px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(100, 181, 246, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero .script-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--gold-accent);
  margin-bottom: 30px;
}

.badge-kit {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-accent), #ffaa00);
  color: var(--cosmic-deep);
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 25px;
  animation: pulse 2s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0); }
}

.precio-container {
  margin: 30px 0;
}

.precio-tachado {
  font-size: 24px;
  text-decoration: line-through;
  opacity: 0.7;
  margin-right: 15px;
}

.precio-actual {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  color: var(--gold-accent);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  line-height: 1;
}

.ahorro {
  margin-top: 10px;
  font-size: 18px;
  color: var(--success-green);
}

/* Sección Valor */
.seccion-valor {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cosmic-deep) 0%, var(--cosmic-purple) 50%, var(--cosmic-deep) 100%);
}

.valor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.valor-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(100, 181, 246, 0.2);
}

.valor-card.bonus {
  border-color: var(--gold-accent);
  position: relative;
}

.valor-card.bonus::before {
  content: 'BONUS';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-accent);
  color: var(--cosmic-deep);
  padding: 5px 20px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
}

.icono-zodiacal {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--gold-accent);
}

.valor-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--stellar-light);
}

.valor-card .precio-valor {
  font-size: 32px;
  color: var(--gold-accent);
  margin: 15px 0;
}

/* Sección Quién Soy */
.seccion-quien-soy {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cosmic-deep) 0%, #2d1b4e 50%, var(--cosmic-deep) 100%);
  position: relative;
  overflow: hidden;
}

.quien-soy-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
}

.foto-mak-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.foto-mak {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold-accent);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 2;
}

.simbolos-flotantes {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}

.simbolo-zodiacal {
  position: absolute;
  font-size: 24px;
  color: var(--gold-accent);
  opacity: 0.6;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quien-soy-content .pre-titulo {
  font-size: 24px;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

.quien-soy-content h2 {
  font-size: 42px;
  margin-bottom: 5px;
}

.quien-soy-content .titulo-profesional {
  font-size: 24px;
  color: var(--stellar-light);
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 20px;
}

.linea-divisoria {
  width: 60px;
  height: 2px;
  background: var(--gold-accent);
  margin-bottom: 25px;
}

.quien-soy-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.firma-mak {
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  color: var(--gold-accent);
  margin-top: 20px;
}

.iconos-especialidad {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  justify-content: flex-start;
}

.icono-espec {
  text-align: center;
  font-size: 32px;
  color: var(--stellar-light);
}

.icono-espec span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Checkout */
.checkout-page {
  padding: 60px 0;
  min-height: 100vh;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.resumen-sticky {
  position: sticky;
  top: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-bump {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  margin: 15px 0;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--gold-accent);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-bump:hover {
  background: rgba(255, 215, 0, 0.2);
}

.order-bump input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--gold-accent);
}

.order-bump-info h4 {
  color: var(--gold-accent);
  margin-bottom: 5px;
}

.order-bump-precio {
  font-size: 20px;
  font-weight: 700;
}

.order-bump-precio .tachado {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 16px;
  margin-left: 10px;
}

.total-checkout {
  font-size: 36px;
  color: var(--gold-accent);
  text-align: center;
  margin: 25px 0;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* Formularios */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--stellar-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--stellar-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.cpa-validacion {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.cpa-valido {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-green);
}

.cpa-invalido {
  background: rgba(244, 67, 54, 0.2);
  color: var(--alert-red);
}

/* Métodos de pago */
.metodos-pago {
  margin-top: 30px;
}

.metodo-tab {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.tab-btn.active {
  border-color: var(--stellar-light);
  background: rgba(100, 181, 246, 0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Admin */
.admin-body {
  background: #f5f5f5;
  color: #333;
}

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: var(--cosmic-deep);
  color: white;
  padding: 30px 20px;
}

.admin-content {
  margin-left: 250px;
  padding: 30px;
}

.admin-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: var(--cosmic-deep);
  color: white;
}

.badge-estado {
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pendiente { background: #ffc107; color: #333; }
.badge-completado { background: var(--success-green); color: white; }
.badge-procesando { background: var(--stellar-light); color: white; }
.badge-cancelado { background: var(--alert-red); color: white; }

/* Editable fields */
.editable {
  border: 2px solid transparent;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editable:hover {
  border-color: var(--stellar-light);
  background: rgba(100, 181, 246, 0.1);
}

.editable-input {
  width: 100%;
  padding: 5px;
  border: 2px solid var(--stellar-light);
  border-radius: 5px;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--stellar-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-mascota {
    width: 85%;
  }

  .quien-soy-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .foto-mak {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .linea-divisoria {
    margin: 20px auto;
  }

  .iconos-especialidad {
    justify-content: center;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }
}
