/* ===== BASKET URULANDIA EPIC ANIMATION SYSTEM ===== */
/* Version: 3.0 - ULTRA EPIC EDITION */
/* Garantizado para funcionar en todos los navegadores modernos */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap");

/* ===== VARIABLES ÉPICAS ===== */
:root {
  /* Colores Originales */
  --primary: #112f3d;
  --secondary: #d3683c;
  --accent: #e07a48;
  --light: #eeebe4;
  --teal: #7fa2a9;
  --coral: #d39078;
  --white: #ffffff;
  --black: #000000;

  /* Paleta Extendida */
  --primary-light: rgba(17, 47, 61, 0.1);
  --primary-medium: rgba(17, 47, 61, 0.5);
  --primary-dark: rgba(17, 47, 61, 0.8);

  --secondary-light: rgba(211, 104, 60, 0.1);
  --secondary-medium: rgba(211, 104, 60, 0.5);
  --secondary-dark: rgba(211, 104, 60, 0.8);

  /* Variables de Animación */
  --duration-fast: 0.3s;
  --duration-medium: 0.6s;
  --duration-slow: 1s;
  --duration-epic: 1.5s;

  /* Easing Functions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-outline: 0 0 0 3px rgba(211, 104, 60, 0.5);
  --shadow-vintage: 4px 4px 0px var(--secondary);

  /* Z-index */
  --z-behind: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-top: 100;
  --z-modal: 1000;
  --z-max: 9999;
}

/* ===== RESET Y ESTILOS BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--light);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-image: radial-gradient(circle at 25% 25%, rgba(211, 104, 60, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(17, 47, 61, 0.03) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d3683c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--secondary);
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== TIPOGRAFÍA ÉPICA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.75rem;
}

h5 {
  font-size: 1.5rem;
}

h6 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.vintage-title {
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  color: var(--primary);
  text-shadow: 2px 2px 0px rgba(211, 104, 60, 0.3);
  transition: all var(--duration-medium) var(--ease-out-expo);
}

.vintage-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width var(--duration-medium) var(--ease-out-expo);
}

.vintage-title:hover {
  transform: translateY(-2px);
  text-shadow: 3px 3px 0px rgba(211, 104, 60, 0.4);
}

.vintage-title:hover::after {
  width: 100%;
}

/* ===== CONTENEDORES Y LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

/* ===== BOTONES ÉPICOS ===== */
.vintage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-vintage);
  transition: all var(--duration-medium) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: var(--z-normal);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.vintage-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--duration-slow) var(--ease-out-expo);
  z-index: var(--z-behind);
}

.vintage-button:hover::before {
  left: 100%;
}

.vintage-button:hover {
  transform: translate(2px, 2px) scale(1.02);
  box-shadow: 1px 1px 0px var(--primary), 0 8px 25px rgba(211, 104, 60, 0.3);
  background-color: var(--accent);
}

.vintage-button:active {
  transform: translate(4px, 4px) scale(0.98);
  box-shadow: none;
  transition: all var(--duration-fast) ease;
}

/* Variantes de botones */
.vintage-button.primary {
  background-color: var(--primary);
  box-shadow: 4px 4px 0px var(--teal);
}

.vintage-button.primary:hover {
  background-color: var(--teal);
  box-shadow: 1px 1px 0px var(--primary), 0 8px 25px rgba(127, 162, 169, 0.3);
}

.vintage-button.light {
  background-color: var(--light);
  color: var(--primary);
  box-shadow: 4px 4px 0px var(--coral);
}

.vintage-button.light:hover {
  background-color: var(--white);
  box-shadow: 1px 1px 0px var(--primary), 0 8px 25px rgba(211, 144, 120, 0.3);
}

/* ===== TARJETAS DE PRODUCTO ÉPICAS ===== */
.product-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(17, 47, 61, 0.1);
  transition: all var(--duration-medium) var(--ease-out-expo);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  cursor: pointer;
  z-index: var(--z-normal);
  /* Importante: asegurar que los clicks funcionen */
  pointer-events: auto !important;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(211, 104, 60, 0.05) 0%, rgba(17, 47, 61, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--duration-medium) ease;
  z-index: var(--z-behind);
  /* Importante: no bloquear clicks */
  pointer-events: none !important;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(2deg) scale(1.03);
  box-shadow: 0 25px 50px rgba(17, 47, 61, 0.15), 0 15px 35px rgba(211, 104, 60, 0.1);
}

.product-image {
  height: 12rem;
  background-color: var(--light);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--duration-slow) var(--ease-out-expo);
  will-change: transform;
}

.product-card:hover .product-image img {
  transform: scale(1.15) rotate(2deg);
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%) skewX(-20deg);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  z-index: var(--z-above);
  pointer-events: none;
}

.product-card:hover .product-image::before {
  transform: translateX(200%) skewX(-20deg);
}

.product-content {
  padding: 1.5rem;
  position: relative;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
  transition: all var(--duration-medium) ease;
}

.product-card:hover .product-title {
  color: var(--secondary);
  transform: translateX(5px);
}

.product-price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--secondary);
  position: relative;
}

.product-price::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--duration-medium) var(--ease-out-expo);
}

.product-card:hover .product-price::before {
  width: 100%;
}

/* ===== ETIQUETAS Y BADGES ===== */
.vintage-tag {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(-2deg);
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: var(--z-above);
  transition: all var(--duration-medium) var(--ease-out-back);
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.product-card:hover .vintage-tag {
  transform: rotate(0deg) scale(1.1);
}

.vintage-price {
  font-family: "Bebas Neue", sans-serif;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 1.125rem;
  font-weight: 700;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: all var(--duration-medium) var(--ease-out-expo);
  z-index: var(--z-above);
}

.product-card:hover .vintage-price {
  padding-right: 1.2rem;
  transform: translateX(-5px);
}

.badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: var(--z-above);
  animation: pulse-badge 2s infinite;
  box-shadow: 0 2px 8px rgba(211, 104, 60, 0.3);
}

/* ===== BORDES Y DECORACIONES ===== */
.vintage-border {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-vintage);
  transition: all var(--duration-medium) var(--ease-out-expo);
  position: relative;
  transform-style: preserve-3d;
}

.vintage-border::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px dashed var(--secondary);
  border-radius: 0.5rem;
  opacity: 0.5;
  z-index: var(--z-behind);
  transition: all var(--duration-medium) ease;
}

.vintage-border:hover {
  box-shadow: 2px 2px 0px var(--secondary), var(--shadow-xl);
  transform: translate(2px, 2px) scale(1.01);
}

.vintage-border:hover::before {
  opacity: 0.8;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
}

/* ===== NAVEGACIÓN ===== */
.category-tab {
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-out-expo);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.category-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(211, 104, 60, 0.1), transparent);
  transition: left var(--duration-medium) var(--ease-out-expo);
}

.category-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: all var(--duration-medium) var(--ease-out-expo);
  transform: translateX(-50%);
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover::after {
  width: 100%;
}

.category-tab:hover {
  transform: translateY(-2px);
  color: var(--secondary);
}

.category-tab.active {
  border-bottom: 3px solid var(--secondary);
  font-weight: 700;
  color: var(--primary);
  background: rgba(211, 104, 60, 0.05);
}

.category-tab.active::after {
  width: 100%;
  background: var(--primary);
}

/* ===== FORMULARIOS ===== */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300, #e2e8f0);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all var(--duration-medium) var(--ease-out-expo);
  background-color: var(--white);
  position: relative;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(211, 104, 60, 0.1), 0 4px 12px rgba(211, 104, 60, 0.15);
  transform: scale(1.01);
}

.form-input:hover {
  border-color: var(--accent);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700, #4a5568);
  transition: color var(--duration-fast) ease;
}

.form-input:focus + .form-label {
  color: var(--secondary);
}

/* ===== ANIMACIONES DE SCROLL ===== */
.scroll-animation {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all var(--duration-slow) var(--ease-out-expo);
  will-change: transform, opacity;
}

.scroll-animation.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.scroll-fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.scroll-fade-right.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--duration-slow) var(--ease-out-back);
}

.scroll-zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

.scroll-rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.scroll-rotate-in.active {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Stagger Animation */
.stagger-animation > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.stagger-animation.active > *:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger-animation.active > *:nth-child(2) {
  transition-delay: 0.2s;
}
.stagger-animation.active > *:nth-child(3) {
  transition-delay: 0.3s;
}
.stagger-animation.active > *:nth-child(4) {
  transition-delay: 0.4s;
}
.stagger-animation.active > *:nth-child(5) {
  transition-delay: 0.5s;
}
.stagger-animation.active > *:nth-child(6) {
  transition-delay: 0.6s;
}
.stagger-animation.active > *:nth-child(7) {
  transition-delay: 0.7s;
}
.stagger-animation.active > *:nth-child(8) {
  transition-delay: 0.8s;
}

.stagger-animation.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== EFECTOS DE HOVER ===== */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left var(--duration-slow) var(--ease-out-expo);
  z-index: var(--z-above);
  pointer-events: none;
}

.shine-hover:hover::after {
  left: 125%;
}

/* ===== EFECTOS DE TEXTO ===== */
.typewriter h2 {
  overflow: hidden;
  border-right: 0.15em solid var(--secondary);
  white-space: nowrap;
  margin: 0 auto;
  width: 0;
  animation: typing 3.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
  position: relative;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--secondary);
  }
}

/* ===== EFECTOS PARALLAX ===== */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

/* ===== EFECTOS MAGNÉTICOS ===== */
.magnetic-element {
  transition: transform var(--duration-fast) ease-out;
  will-change: transform;
}

/* ===== ANIMACIONES KEYFRAME ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== UTILIDADES ===== */
.float-animation {
  animation: float var(--duration-epic) ease-in-out infinite;
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.75rem;
  }

  .product-card:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .vintage-button:hover {
    transform: translate(1px, 1px) scale(1.01);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-animation {
    transition: none;
  }

  .scroll-animation.active {
    opacity: 1;
    transform: none;
  }
}

/* ===== CLASES ESPECÍFICAS PARA HISTORIA ===== */
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  transition: all var(--duration-medium) ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--secondary);
  border: 3px solid var(--primary);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  top: 0;
  transition: all var(--duration-medium) ease;
  box-shadow: 0 0 0 0 rgba(211, 104, 60, 0.4);
}

.timeline-item:hover::before {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 10px rgba(211, 104, 60, 0);
}

.highlight-box {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-medium) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ===== ARREGLO PARA CLICKS EN PRODUCTOS ===== */
.product-card {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.product-card::before,
.product-card::after {
  pointer-events: none !important;
}

.product-card a,
.product-card button {
  position: relative;
  z-index: var(--z-above);
}

/* ===== PANTALLA DE CARGA ÉPICA ===== */
.epic-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  background-size: 400% 400%;
  animation: gradient-shift 4s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-max);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.epic-loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}

.loading-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  position: relative;
  animation: logo-pulse 2s ease-in-out infinite, logo-rotate 8s linear infinite;
  box-shadow: 0 0 60px rgba(211, 104, 60, 0.6), inset 0 0 60px rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.loading-logo::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--secondary), var(--accent), var(--primary), var(--teal), var(--secondary));
  animation: spin 3s linear infinite;
  z-index: -1;
}

.loading-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: text-reveal 1s ease-out 0.5s forwards;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.loading-progress-container {
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 10px;
  width: 0%;
  transition: width var(--duration-medium) var(--ease-out-expo);
  position: relative;
  box-shadow: 0 0 20px rgba(211, 104, 60, 0.6);
}

.loading-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

.loading-percentage {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
  opacity: 0.8;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes logo-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== EFECTOS ESPECIALES PARA HISTORIA ===== */
@keyframes shimmer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes stamp-impact {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes impact-wave {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes particle-burst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--end-x), var(--end-y)) scale(0);
    opacity: 0;
  }
}

@keyframes float-3d {
  0%,
  100% {
    transform: perspective(1000px) rotateY(0deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(2deg) translateY(-10px);
  }
}

@keyframes curtain-reveal {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes title-glow {
  0% {
    text-shadow: 2px 2px 0px rgba(211, 104, 60, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(211, 104, 60, 0.8), 2px 2px 0px rgba(211, 104, 60, 0.3);
  }
  100% {
    text-shadow: 2px 2px 0px rgba(211, 104, 60, 0.3);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes energy-flow {
  0% {
    transform: translateX(-100%) skewX(-20deg);
  }
  100% {
    transform: translateX(200%) skewX(-20deg);
  }
}

@keyframes sound-wave {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* ===== CLASES UTILITARIAS ===== */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.p-4 {
  padding: 1rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.shadow {
  box-shadow: var(--shadow-md);
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.z-10 {
  z-index: 10;
}
.overflow-hidden {
  overflow: hidden;
}
.text-white {
  color: var(--white);
}
.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-white {
  background-color: var(--white);
}
.font-bold {
  font-weight: 700;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.gap-4 {
  gap: 1rem;
}

/* Grid responsivo */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
