/*
Theme Name: Magic
Theme URI: https://themagic.mx
Author: Fausto Castillo
Description: Theme custom de The Magic
Version: 1.0
*/

/* Reset básico */
:root {
  --MGray-50: #F9FAFB;
  --MGray-300: #B6B6C4;
  --MGray-700: #48495C;
  --MPurpleLight: #E4D4FF;
  --MPurple: #9551FB;
  --MCyan: #00CFE5;
  --White: #FFFFFF;
}

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

/* Tipografías */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Estilos Globales */
body {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: #111;
  background-color: var(--MGray-50);
}

/* =========================================
   Header & Navegación
   ========================================= */
.site-header {
  padding: 1.5rem 2rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 100;
}

/* Ajuste para la barra de administración de WordPress */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* 1. Logo */
.header-logo img {
  display: block;
  height: 40px;
  width: auto;
}

/* 2. Menú (Centro) */
.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

/* Selector más específico para ganar a cualquier regla genérica */
.header-nav .navbar-option {
  text-decoration: none;
  color: var(--MGray-700);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  font-feature-settings: 'cv11' on;
  
  /* Efecto Pill */
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background-color: transparent; /* Definido explícitamente para transición */
  transition: background-color 0.4s ease, color 0.4s ease;
}

.header-nav .navbar-option:hover {
  color: var(--MPurple);
  background-color: var(--MPurpleLight);
}

/* 3. Botón (Derecha) */
.btn-primary {
  display: inline-block;
  background-color: var(--MPurple);
  color: var(--White);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.btn-primary:hover {
  background-color: var(--MPurpleLight);
  color: var(--MPurple);
}

/* Layout de prueba */
main {
  display: block;
  padding: 0;
}

.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  
  background-image: url('assets/images/hero/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  background-color: var(--White);
  color: var(--MGray-700);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: normal;
  font-feature-settings: 'cv11' on;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(
    to right, 
    var(--MCyan) 0%, 
    var(--MPurple) 50%, 
    var(--MCyan) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
  background-size: 200% auto;
  animation: textShine 4s linear infinite;
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

.hero-title {
  color: var(--MPurple);
  text-align: center;
  font-size: 60px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--MGray-700);
  text-align: center;
  font-feature-settings: 'cv11' on;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px; /* Ancho máximo para lectura óptima */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.rotating-words {
  min-height: 34px;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; /* Espacio entre palabras */
  flex-wrap: wrap; /* Para móviles si es necesario */
}

.word-slot {
  color: var(--MGray-300);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  transition: opacity 1s ease-in-out;
  opacity: 1;
  width: 200px; /* Ancho fijo para evitar saltos */
  display: inline-block; /* Necesario para respetar el width */
}

.word-slot.fade-out {
  opacity: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

