/* ============================================
   MENTORA LANDING - ESTILOS PREMIUM
   Diseño: Mesh Gradient Fluido
   Paleta: Azul Marino y mediostonos
   ============================================ */

/* Variables CSS */
:root {
  /* Colores base - Azul Marino profundo */
  --color-bg-base: #020617;
  --color-bg-elevated: #0f172a;

  /* Gradientes primarios - Azul Marino y derivados */
  --gradient-navy-deep: #0c1929;
  --gradient-navy-dark: #1e3a5f;
  --gradient-navy-main: #1e40af;
  --gradient-blue-bright: #3b82f6;
  --gradient-blue-light: #60a5fa;
  --gradient-indigo: #4f46e5;
  --gradient-cyan: #0891b2;

  /* Colores de Mentora (para acentos sutiles) */
  --color-mentora-red: #dc2626;
  --color-mentora-red-soft: rgba(220, 38, 38, 0.15);

  /* Textos - Optimizados para azul marino */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-accent: #93c5fd;

  /* Tipografía */
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
}

/* Reset y Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   MESH BACKGROUND - FONDO MODERNO
   ============================================ */
.mesh-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg-base);
}

/* Canvas para gradiente animado */
#gradient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* Textura noise sutil */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ============================================
   BLOBS FLUIDOS
   ============================================ */
.fluid-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: blur(80px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: morphBlob 10s ease-in-out infinite;
}

.blob-1 {
  width: 60vmax;
  height: 60vmax;
  top: -20%;
  right: -15%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--gradient-navy-main) 0%,
    var(--gradient-indigo) 50%,
    transparent 70%
  );
  opacity: 0.6;
  animation-delay: 0s;
  animation-duration: 8s;
}

.blob-2 {
  width: 50vmax;
  height: 50vmax;
  bottom: -25%;
  left: -10%;
  background: radial-gradient(
    circle at 70% 70%,
    var(--gradient-cyan) 0%,
    var(--gradient-blue-bright) 40%,
    transparent 70%
  );
  opacity: 0.5;
  animation-delay: -3s;
  animation-duration: 12s;
}

.blob-3 {
  width: 45vmax;
  height: 45vmax;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    var(--gradient-blue-light) 0%,
    var(--gradient-navy-dark) 40%,
    transparent 65%
  );
  opacity: 0.35;
  animation-delay: -6s;
  animation-duration: 15s;
}

.blob-4 {
  width: 35vmax;
  height: 35vmax;
  top: 10%;
  left: 20%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--gradient-indigo) 0%,
    rgba(79, 70, 229, 0.1) 50%,
    transparent 70%
  );
  opacity: 0.45;
  animation-delay: -2s;
  animation-duration: 10s;
}

@keyframes morphBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  25% {
    transform: translate(5%, -5%) scale(1.05) rotate(90deg);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  }
  50% {
    transform: translate(-3%, 3%) scale(0.95) rotate(180deg);
    border-radius: 30% 60% 70% 40% / 50% 40% 60% 50%;
  }
  75% {
    transform: translate(3%, 5%) scale(1.02) rotate(270deg);
    border-radius: 50% 40% 50% 60% / 35% 55% 45% 65%;
  }
}

/* ============================================
   LÍNEAS DE LUZ (BEAMS)
   ============================================ */
.light-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.08) 20%,
    rgba(96, 165, 250, 0.15) 50%,
    rgba(59, 130, 246, 0.08) 80%,
    transparent 100%
  );
  transform-origin: center;
}

.beam-1 {
  width: 200%;
  height: 1px;
  top: 30%;
  left: -50%;
  transform: rotate(-15deg);
  animation: beamMove1 8s ease-in-out infinite;
}

.beam-2 {
  width: 200%;
  height: 1px;
  bottom: 35%;
  left: -50%;
  transform: rotate(10deg);
  animation: beamMove2 10s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes beamMove1 {
  0%,
  100% {
    transform: rotate(-15deg) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(-12deg) translateY(-50px);
    opacity: 0.8;
  }
}

@keyframes beamMove2 {
  0%,
  100% {
    transform: rotate(10deg) translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: rotate(8deg) translateY(30px);
    opacity: 0.6;
  }
}

/* ============================================
   GRADIENTES DE ESQUINA
   ============================================ */
.corner-gradients {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.corner-glow {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.corner-top-right {
  top: -25vmax;
  right: -25vmax;
  background: radial-gradient(
    circle,
    var(--gradient-navy-main) 0%,
    transparent 70%
  );
  animation: cornerPulse 6s ease-in-out infinite;
}

.corner-bottom-left {
  bottom: -25vmax;
  left: -25vmax;
  background: radial-gradient(
    circle,
    var(--gradient-indigo) 0%,
    transparent 70%
  );
  animation: cornerPulse 8s ease-in-out infinite reverse;
}

@keyframes cornerPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LOGO - Con sombra elegante azul
   ============================================ */
.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-xl);
}

.logo {
  width: 160px;
  height: auto;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
  animation: logoFloat 6s ease-in-out infinite;

  /* Sombra elegante multicapa */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 10px 20px -5px rgba(0, 0, 0, 0.4),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 60px -10px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(30, 64, 175, 0.1) 40%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
  filter: blur(25px);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ============================================
   MENSAJE PRINCIPAL
   ============================================ */
.message-container {
  margin-bottom: var(--spacing-xl);
}

.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-line {
  display: block;
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
  color: var(--color-text-primary);
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
}

.title-line:nth-child(2) {
  animation-delay: 0.5s;
}

.title-line.accent {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--color-text-accent) 25%,
    var(--gradient-blue-bright) 50%,
    var(--gradient-indigo) 75%,
    var(--gradient-cyan) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation:
    slideIn 0.8s ease-out forwards,
    gradientShift 8s ease-in-out infinite;
  animation-delay: 0.5s, 0s;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.subtitle {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.7s forwards;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.subtitle strong {
  color: var(--color-text-accent);
  font-weight: 600;
}

.description {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.9s forwards;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   DIVISOR DECORATIVO
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.1s forwards;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gradient-blue-bright),
    transparent
  );
}

.divider-icon {
  color: var(--color-text-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateStar 20s linear infinite;
}

@keyframes rotateStar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-container {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.3s forwards;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.125rem;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  font-weight: 500;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px -15px rgba(59, 130, 246, 0.35),
    0 0 0 1px rgba(59, 130, 246, 0.15);
}

.email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .logo {
    width: 130px;
  }

  .logo-glow {
    width: 180px;
    height: 180px;
  }

  .blob-1,
  .blob-2,
  .blob-3 {
    filter: blur(60px);
  }

  .divider-line {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: var(--spacing-md);
  }

  .logo {
    width: 110px;
  }

  .contact-email {
    font-size: 1rem;
    padding: var(--spacing-xs) var(--spacing-md);
  }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible {
  outline: 2px solid var(--color-text-accent);
  outline-offset: 4px;
}
