/* Estilos Globales de Alta Gama para ELMALEDUCADO (Luxury Noir Aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #050507;
  --bg-surface: #0c0c0f;
  --bg-card: #121216;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.2);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía de Marca */
.font-brand {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Scrollbar Minimalista */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050507;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Cursor Personalizado de Lujo */
#cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.08s ease-out, width 0.2s ease, height 0.2s ease;
}

#cursor-ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease,
              background-color 0.2s ease;
}

#cursor-ring.cursor-hover {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}

#cursor-dot.dot-hover {
  transform: scale(0.5);
  opacity: 0.5;
}

/* Spotlight Ambiental Interactivo */
#ambient-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: background 0.1s ease-out;
}

/* Fondo de Ruido Cinematográfico */
.noise-overlay {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Efecto Glassmorphism */
.glass-panel {
  background: rgba(12, 12, 16, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(18, 18, 24, 0.85);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.8);
}

/* Tarjeta 3D Tilt con Shine */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-content {
  transform: translateZ(25px);
}

.tilt-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.4s ease;
  z-index: 10;
}

/* ================= GIRO 3D DE 180° AL PASAR EL CURSOR (SIN VISTA PREVIA TRASERA) ================= */
.card-flip-stage {
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.card-flip-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.25, 1, 0.35, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.group:hover .card-flip-flipper {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.card-flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-flip-back-view {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
}

.card-flip-front-view {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  z-index: 1;
}

/* Máscaras de Texto y Gradientes Tipográficos */
.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 50%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-stroke-white {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
  color: transparent;
  transition: all 0.4s ease;
}

.text-stroke-white:hover {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  color: rgba(255, 255, 255, 0.1);
}

/* Animaciones Clave */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Hero Typography Glow */
.hero-brand-title {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
  letter-spacing: -0.05em;
}

/* Botón Lujo Noir */
.btn-noir {
  position: relative;
  background: #ffffff;
  color: #050507;
  font-weight: 700;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-noir:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

.btn-noir-outline {
  position: relative;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-noir-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Badge de 180gr */
.badge-180g {
  background: linear-gradient(90deg, #18181b 0%, #27272a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
