/*-------------------------- 
# Variables y estilos base
----------------------------*/
:root {
  --primary: #66591a;
  --primary-dark: #72601d;
  --secondary: #755402;
  --accent: #684814;
  --dark-bg: #111827;
  --darker-bg: #ffee00;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --navbar-bg: rgba(39, 33, 17, 0.7);
  --glass-effect: blur(12px);
  --transition-normal: all 0.3s ease;
  --border-glow: rgba(131, 113, 12, 0.3);
  --neon-shadow: 0 0 15px rgba(212, 164, 6, 0.5);
  --glow-cyan: 0 0 15px rgba(212, 178, 6, 0.5);
  --glow-indigo: 0 0 15px rgba(113, 82, 10, 0.5);
  --glow-purple: 0 0 15px rgba(199, 162, 12, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --m: 4rem; /* Variable para el footer */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

#typing-text {
  transition: opacity 0.5s ease-in-out;
  width: 800px;
}
body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: black;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#main-content {
  display: none;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
body {
  background-color: #222;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ffc400;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ffbb00;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3s linear infinite;
}
#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ffc400;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*-------------------------- 
# Scrollbar personalizado
----------------------------*/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--accent));
}

/*-------------------------- 
# Barra de navegación
----------------------------*/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  -webkit-backdrop-filter: var(--glass-effect);
  backdrop-filter: var(--glass-effect);
  border-bottom: 1px solid var(--border-glow);
  z-index: 1000;
  transition: var(--transition-normal);
  height: 70px;
}

#navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  -webkit-backdrop-filter: var(--glass-effect);
  backdrop-filter: var(--glass-effect);
  border-bottom: 1px solid var(--border-glow);
  z-index: 1000;
  transition: var(--transition-normal);
  height: 70px;
}

/*-------------------------- 
# Logo del navbar
----------------------------*/
.logo {
  display: flex;
  align-items: center;
}

/*-------------------------- 
# Enlaces de navegación
----------------------------*/
.nav-link {
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, rgb(178, 127, 10), rgb(178, 127, 10));
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgb(178, 127, 10);
}

.nav-link-galeria {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.nav-link-galeria::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: rgb(178, 127, 10); 
  transition: width 0.3s ease;
  transform: translateX(-50%);
  transform-origin: center;
}

.nav-link-galeria:hover::after {
  width: 70%;
}

/*-------------------------- 
# Navegación móvil
----------------------------*/
.mobile-only {
  display: none;
}
@media (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }
  .md\:flex {
    display: none !important;
  }
}

/* Oculta el checkbox */
.menu-icon {
  position: absolute;
  left: -9999px;
}

/* Botón hamburguesa SOLO en móvil */
.menu-icon + label {
  position: fixed;
  top: 15px;
  right: 24px;
  width: 40px;
  height: 40px;
  z-index: 2001;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

/* Rayas doradas por defecto */
.menu-icon + label:before,
.menu-icon + label:after {
  content: '';
  position: absolute;
  left: 0;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, rgb(178, 127, 10) 60%, rgb(178, 127, 10) 100%);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Posición de las rayas */
.menu-icon + label:before {
  top: 12px;
}
.menu-icon + label:after {
  top: 24px;
}

/* Al presionar (checked), rayas blancas */
.menu-icon:checked + label:before,
.menu-icon:checked + label:after {
  background: linear-gradient(90deg, #fff 60%, #fff 100%);
}

/* Animación de cruz */
.menu-icon:checked + label:before {
  transform: translateY(12px) rotate(45deg);
}
.menu-icon:checked + label:after {
  transform: translateY(-12px) rotate(-45deg);
}

/* Menú de navegación móvil */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgb(178, 127, 10) 0%, #b28208 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.menu-icon:checked ~ .nav {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Centrado vertical de los links */
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  margin-top: 70px;
}

/* Animación de aparición de los links */
.nav ul li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s;
  margin: 1.5rem 0;
}
.menu-icon:checked ~ .nav ul li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
}

/* Links blancos y animación de brillo dorado al hacer hover */
.nav ul li a {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  transition: color 0.3s, text-shadow 0.3s;
  text-shadow: 0 0 0px #ffd700;
  padding: 0.5rem 2rem;
  border-radius: 8px;
}
.nav ul li a:hover,
.nav ul li a:focus {
  color: #ffee00;
  text-shadow: 0 0 12px #ffd700, 0 0 24px #ffd700;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Oculta el menú hamburguesa en desktop */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
    color: #ffee00;
  }
  .menu-icon + label {
    display: none !important;
  }
  .nav.mobile-only {
    display: none !important;
  }
}

/*-------------------------- 
# Secciones
----------------------------*/
section {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

section:first-of-type {
  padding-top: 8rem;
}

/*-------------------------- 
# Texto con degradado
----------------------------*/
.gradient-text {
  background: linear-gradient(to right, rgba(113, 82, 10, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*-------------------------- 
# Efectos de brillo
----------------------------*/
.glow-effect {
  position: relative;
}

.glow-effect:before {
  content: "";
  position: absolute;
  inset: -5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-effect:hover:before {
  opacity: 1;
}

/*-------------------------- 
# Botones
----------------------------*/
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-shadow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

.Contacto-btn {
  position: relative;
  overflow: hidden;
}

.Contacto-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(6, 182, 212, 0.2) 45%,
    rgba(6, 182, 212, 0.4) 50%,
    rgba(6, 182, 212, 0.2) 55%,
    transparent 60%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.Contacto-btn:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/*-------------------------- 
# Animaciones
----------------------------*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes pulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/*-------------------------- 
# Glow Line
----------------------------*/
@keyframes colorGlow {
  0% {
    background-color: #f59e0b;
    /* Amber */
    box-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b;
  }

  25% {
    background-color: #facc15;
    /* Yellow */
    box-shadow: 0 0 8px #facc15, 0 0 15px #facc15;
  }

  50% {
    background-color: #fcd838;
    /* Orange */
    box-shadow: 0 0 12px #fcd838, 0 0 20px #fcd838;
  }

  75% {
    background-color: #eab308;
    /* Gold */
    box-shadow: 0 0 8px #eab308, 0 0 15px #eab308;
  }

  100% {
    background-color: #f59e0b;
    /* Amber otra vez */
    box-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b;
  }
}

.glow-line {
  animation: colorGlow 5s infinite alternate;
}

@keyframes textGlow {
  0% {
    color: #f59e0b; /* Amber */
    text-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b;
  }
  25% {
    color: #facc15; /* Yellow */
    text-shadow: 0 0 8px #facc15, 0 0 15px #facc15;
  }
  50% {
    color: #f59e0b;
    text-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b;
  }
  75% {
    color: #eab308; /* Gold */
    text-shadow: 0 0 8px #eab308, 0 0 15px #eab308;
  }
  100% {
    color: #f59e0b;
    text-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b;
  }
}

.glow-text {
  animation: textGlow 6s infinite alternate;
  font-weight: 500;
  font-size: 1rem;
}

/*-------------------------- 
# Tarjetas / Cards
----------------------------*/
.card {
  background-color: rgba(17, 24, 39, 0.7);
  -webkit-backdrop-filter: var(--glass-effect);
  backdrop-filter: var(--glass-effect);
  border: 1px solid var(--border-glow);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow);
  border-color: rgba(99, 102, 241, 0.5);
}

.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}

/*--------------------------------------------------------------
# Carrusel
--------------------------------------------------------------*/
@import url("https://unpkg.com/normalize.css") layer(normalize);

@layer normalize, base, demo, loops, explode;

/* Estilos para la estructura del carrusel */
@layer demo {
  .signallink-carrusel-container {
    /* Contenedor para el carrusel */
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    transform-style: preserve-3d;
  }
  .signallink-carrusel-container ul {
    width: 100px;
    display: grid;
    grid-template: 1fr / 1fr;
    padding: 0;
    margin: 0;
    list-style-type: none;
    transition: opacity 0.5s 1.5s;
    transform-style: preserve-3d;
  }

  .signallink-carrusel-container li {
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
  }
}

/* Estilos para las animaciones y efectos del carrusel */
@layer explode {
  [data-explode="false"] .signallink-carrusel-container {
    transition: transform 0.5s 0.5s;
  }
  [data-explode="true"] .signallink-carrusel-container {
    transition: transform 0.5s 1s;
    transform: rotateX(24deg) rotateY(-45deg);
  }
  [data-explode="true"] .signallink-carrusel-container ul:not(:first-of-type) {
    opacity: 0;
  }
  [data-explode="true"] [data-logo] {
    transform: translate3d(0, 0, calc((var(--i) - 1) * 4rem));
  }
}

@layer loops {
  :root {
    --duration: 30;
  }

  .signallink-carrusel-container ul {
    --base-delay: calc(
      sin((var(--index) / var(--lists)) * 45deg) * var(--stagger, 0)
    );
  }

  [data-logo] use {
    animation-name: appear;
    animation-duration: calc(var(--duration) * 1s);
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-delay: calc(
      (var(--duration) / var(--items)) * (var(--items) - var(--i)) * -1s +
        (var(--base-delay) * 1s)
    );
    mix-blend-mode: hard-light;
    transform-box: fill-box;
  }
  [data-logo] svg {
    overflow: visible !important;
    height: 3rem;
  }
}

/* Keyframes de animación (si no los tenías) */
@keyframes appear {
  from,
  5%,
  to {
    opacity: 0;
  }
  10%,
  40% {
    opacity: 1;
  }
}
/*-------------------------- 
# Formularios
----------------------------*/
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

/* Responsive Layout */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Show desktop nav, hide mobile nav */
  .mobile-only {
    display: none;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  #navbar {
    height: auto;
  }

  .nav-link::after {
    display: none;
  }
}

/* Dark Overlay for Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: var(--glass-effect);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background Decorations */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: linear-gradient(
      to right,
      rgba(6, 182, 212, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(193, 138, 2, 0.05) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(6, 182, 212, 0.05) 50%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow.top-right {
  top: -20%;
  right: -20%;
}

.bg-glow.bottom-left {
  bottom: -20%;
  left: -20%;
}

/* Footer Styles */
footer {
  background-color: rgba(17, 24, 39, 0.8);
  -webkit-backdrop-filter: var(--glass-effect);
  backdrop-filter: var(--glass-effect);
  border-top: 1px solid var(--border-glow);
  padding: 1rem 0;
  border-top: 2px solid rgba(255, 187, 0, 0.5);
  box-shadow: 0 -4px 20px rgba(255, 187, 0, 0.3);
  
}



@media (min-width: 768px) {
   #footer {
    padding: 3rem 0;
  }
}

.footer-link {
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.footer-link:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .derechos {
    display: none;
  }
}

.derechos2 {
  display: none;
}

@media (max-width: 768px) {
  .derechos2 {
    display: inline; /* o block según cómo quieras que se vea */
  }
}

/* Section transitions and animations */
.section-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*-------------------------- 
# Animación de Header
----------------------------*/
.text-6xl {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Enhance focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
}

/* Style the scrollbar for a futuristic look */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #b28208, #fffdfd);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #d4a706, #fff7f7);
}
body {
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: auto;
  background: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 0%,
    rgb(15, 10, 5) 30%,
    rgb(50, 40, 20) 60%,
    rgb(14, 13, 13) 85%,
    rgb(0, 0, 0) 100%
  );
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradient 15s ease infinite;
  color: white; /* asegura que el texto sea legible */
}

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

/*-------------------------- 
# Fondo de mano cibernética animada
----------------------------*/
.cybernetic-hand-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
}

.hand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.central-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(244, 208, 63, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse-glow-bg 3s ease-in-out infinite;
  z-index: 1;
}
.wave {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.1;
  bottom: 0;
  left: 0;
  z-index: -5;
}

.cybernetic-hand-background {
  position: fixed;
  top: 25px;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
}

.hand-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: hand-breathing 4s ease-in-out infinite;
}

.hand-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: fade-in-background 3s ease-out forwards;
  filter: brightness(1) contrast(1); /* para editar brillo y contraste de la mano */
}



.hand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.central-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(244, 208, 63, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse-glow-bg 3s ease-in-out infinite;
  z-index: 1;
}

/* Animaciones de la mano */
@keyframes hand-breathing {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(0.8) contrast(1.1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
  }
}

@keyframes fade-in-background {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.9; /* para editar opacidad de la mano */
    transform: scale(1);
  }
}

@keyframes pulse-glow-bg {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.5),
      0 0 40px rgba(244, 208, 63, 0.3);
  }
  100% {
    text-shadow: 0 0 30px rgba(244, 208, 63, 0.8),
      0 0 60px rgba(244, 208, 63, 0.4);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .central-glow {
    width: 300px;
    height: 300px;
  }
}

.sebita-cuadro {
  box-shadow: 8px 8px 20px #ffbb00; /* 20px = difuminado */
  border-radius: 25px; /* opcional para que coincida con las esquinas redondeadas */
  display: flex;
  flex-direction: column;   /* los pone uno abajo del otro */
  justify-content: center;  /* centra verticalmente */
  align-items: center;      /* centra horizontalmente */
  height: 100%;             /* el contenedor debe tener altura */
  text-align: center;       /* por si acaso */
}

.sebita-cuadro a {
  margin: 0 50px;            /* espacio entre enlaces */
  color: #b9b4b4;  
  font-weight: 200;          /* letra más fina */
  letter-spacing: 0.8px; 
  font-size: 18px;           /* tamaño de letra */
  text-decoration: none;     /* opcional, quita subrayado */
}

.sebita-cuadro a:focus {
  outline: none;  /* equivalente a outline-none */
  box-shadow: none; /* equivalente a ring-0 */
}


.sebita-cuadro a:hover {
  color: #ffbb00; 
  transform: scale(1.05);
  text-shadow: 0 0 8px #ffbb00;
}


/*-------------------------- 
# INICIO: CÓDIGO DEL NUEVO FOOTER
----------------------------*/
@import url("https://fonts.googleapis.com/css?family=IBM%20Plex%20Sans:500|IBM%20Plex%20Sans:300");

footer#footer {
  z-index: 500;
  width: 100%;
  min-height: 60vh; /* Altura para que el efecto sea notable */
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-end;
  
  position: relative;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  color: #d5d5d5;
  font-size: calc(0.3 * var(--m));
  background: none;
  border-top: none;
}


/* Este es el elemento CLAVE para el efecto de desvanecimiento */
footer#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0) 5%,
    rgba(0, 0, 0, 0.3) 20%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 1) 50%,
    rgb(0, 0, 0)
  );
  z-index: -7;
  pointer-events: none; /* Para que no bloquee el contenido */
}

/* El backdrop es el que crea el efecto de desenfoque de fondo */
footer#footer .backdrop {
  z-index: -5;
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  -webkit-mask-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5) 10%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 1) 30%,
    rgb(0, 0, 0)
  );
  mask-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5) 10%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 1) 30%,
    rgb(0, 0, 0)
  );
}

footer#footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(0.3 * var(--m)) calc(0.8 * var(--m));
  width: 23%;
}

@media (max-width: 768px) {
  footer#footer .col {
    padding: 0%;
    padding-bottom: 15px;
    padding-top: 15px;
  }
}

footer#footer .col h3 {
  font-weight: 500;
  font-size: calc(0.6 * var(--m));
  margin: 0 0 1rem 0;
  color: #ffffff;
}

footer#footer .col.col2,
footer#footer .col.col3 {
  background-color: #121212;
  border-radius: calc(0.5 * var(--m));
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  footer#footer .col.col2,
  footer#footer .col.col3 {
  
    margin-bottom: 20px;
  }
}


footer#footer .social {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}

footer#footer .social .link {
  width: calc(0.8 * var(--m));
  height: calc(0.8 * var(--m));
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: calc(0.1 * var(--m));
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

footer#footer .social .link:hover {
  background-color: rgba(175, 135, 4, 0.986);
}

footer#footer .social .link svg {
  height: calc(0.4 * var(--m));
  width: auto;
  object-fit: cover;
  color: white;
}

@media screen and (max-width: 1000px) {
  :root {
    --m: 3rem;
  }
}

@media screen and (max-width: 700px) {
  footer#footer {
    flex-direction: column;
   
    gap: 2rem;
    align-items: center;
  }
  footer#footer .col {
    width: 100%;
    max-width: 350px;
    align-items: center;
    text-align: center;
  }
  footer#footer .social {
    justify-content: center;
  }
}

/*-------------------------- 
# Secciones Expandibles - Galería Optimizada
----------------------------*/
.gallery-section {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
  border: 2px solid #ffd700;
  border-radius: 15px;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-section:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  transform: translateY(-5px);
}

/* Header con transiciones más fluidas */
.section-header {
  padding: 2rem;
  cursor: pointer;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Títulos y textos optimizados */
.section-title {
  color: #ffd700;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.section-description {
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.expand-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffd700;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expand-button:hover {
  color: #ffed4e;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

/* Icono con rotación más suave */
.expand-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-section.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Contenido con animación de altura más fluida */
.gallery-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.gallery-section.expanded .gallery-content {
  max-height: none;
}

/* Grid optimizado para mejor responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

/* Items con animaciones escalonadas más suaves */
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-section.expanded .gallery-item {
  opacity: 1;
  transform: translateY(0);
}

/* Delays optimizados para efecto cascada más fluido */
.gallery-item:nth-child(1) {
  transition-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  transition-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  transition-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  transition-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  transition-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* Hover effects más suaves */
.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Imágenes con tamaño optimizado */
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Media queries optimizadas */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 200px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-header {
    padding: 1.5rem;
  }
}
/* Optimización para mejor performance */
.gallery-section,
.gallery-item,
.expand-icon {
  will-change: transform;
}

.gallery-content {
  will-change: max-height;
}

/* Glowing Edge Card Effect dorado y dinámico */
.glow-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: box-shadow 0.3s;
}

.glow-card:hover,
.glow-card:focus {
  box-shadow: 0 0 12px 1px rgba(255, 215, 0, 0.25), 0 0 0 1.5px #ffc400e6;
  border: 1px solid #ffbb00;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/*-------------------------- 
# Parte de Sponsors 
----------------------------*/
.sponsors-marquee-vertical {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 70px;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.sponsors-group {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

@media (max-width: 768px) {
  .sponsors-group {
  gap: 1.5rem;
  }
}

.sponsors-group.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s, transform 0.8s;
}

.sponsor-icon {
  height: 48px;
  width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.15));
  opacity: 0;
  transform: translateY(0) translateX(0);
  transition: opacity 0.5s, transform 0.7s;
}

@media (max-width: 768px) {
  .sponsor-icon {
  height: 35px;
  width: 100px;
  }
}

.sponsor-icon.enter {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.sponsor-icon.exit {
  opacity: 0;
  transform: translateY(-40px) translateX(40px);
}

.sponsor-icon:hover {
  transform: scale(1.08);
  opacity: 1;
}

@keyframes sponsor-exit {
  to {
    opacity: 0.3;
    transform: translateY(-40px) translateX(40px) scale(0.85);
    filter: blur(2px);
  }
}
@keyframes sponsor-enter {
  from {
    opacity: 0;
    transform: translateY(40px) translateX(-40px) scale(0.85);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    filter: blur(0);
  }
}
/* Sponsors que desaparecen: van hacia arriba a la derecha y se desvanecen */
.sponsor-icon.animate-exit {
  opacity: 0;
  transform: translateY(-40px) translateX(40px) scale(0.85);
  filter: blur(2px);
  transition: opacity 0.7s, transform 0.7s, filter 0.7s;
}

/* Sponsors que aparecen: vienen de abajo a la izquierda y se desvanecen */
.sponsor-icon.animate-enter {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
  transition: opacity 0.7s, transform 0.7s, filter 0.7s;
}

/* Estado inicial para la animación de entrada */
.sponsor-icon {
  opacity: 0;
  transform: translateY(40px) translateX(-40px) scale(0.85);
  filter: blur(2px);
  transition: opacity 0.7s, transform 0.7s, filter 0.7s;
}

/* Sponsors verticales - versión mejorada */
.sponsors-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.sponsor-card-vertical {
  background: #181818;
  border: 2px solid #ffd700;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 #bfa34533;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  min-height: 260px;
  margin: 0 auto 2.5rem auto;
  transition: max-width 1.2s cubic-bezier(0.77, 0, 0.18, 1), box-shadow 0.5s;
  position: relative;
  display: flex;
  align-items: stretch;
}

.sponsor-card-vertical-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.sponsor-card-vertical:hover {
  max-width: 1100px;
  box-shadow: 0 8px 32px 0 #bfa34566;
  min-height: 260px;
}

.sponsor-card-vertical-main {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: transparent;
  z-index: 2;
  transition: max-width 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

.sponsor-card-vertical-img-rect {
  width: 100%;
  max-width: 420px;
  height: 140px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid #ffd700;
  background: #181818;
  box-shadow: 0 2px 12px #bfa34533;
  margin-bottom: 1.2rem;
}

.sponsor-card-vertical-title {
  font-weight: bold;
  font-size: 2rem;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #bfa34566;
  margin-bottom: 0.5rem;
  text-align: center;
}

.sponsor-card-vertical-info {
  position: absolute;
  top: 0;
  left: 100%;
  width: 480px;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  background: #181818;
  color: #fff;
  padding: 2rem 2rem;
  border-radius: 0 1.2rem 1.2rem 0;
  box-shadow: 0 8px 32px 0 #bfa34566;
  transition: width 1.2s cubic-bezier(0.77, 0, 0.18, 1),
  opacity 0.9s cubic-bezier(0.77, 0, 0.18, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sponsor-card-vertical:hover .sponsor-card-vertical-info {
  width: 480px;
  opacity: 1;
  pointer-events: auto;
}

.sponsor-card-vertical-info-title {
  font-weight: bold;
  font-size: 1.3rem;
  color: #ffd700;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}

.sponsor-card-vertical-info p {
  color: #eaeaea;
  margin-bottom: 1rem;
}

.sponsor-card-vertical-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sponsor-card-vertical-info ul li {
  color: #fff;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.sponsor-card-vertical-info ul li::before {
  content: "★";
  color: #ffd700;
  position: absolute;
  left: 0;
  font-size: 1rem;
  top: 0;
}

.col p {
  position: relative;
  display: inline-block; /* para que el subrayado solo ocupe el texto */
  margin: 8px 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Efecto zoom */
.col p:hover {
  transform: scale(1.05);
}

/* Subrayado animado */
.col p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffd700; /* Podés cambiar el color */
  transition: width 0.3s ease;
}

.col p:hover::after {
  width: 100%;
}

/*-------------------------- 
# Parte de Equipo NUEVA
----------------------------*/
.history-card {
    display: flex;
    background-color: black;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(178, 127, 10, 0.5);
    box-shadow: 0 0 15px rgba(178, 127, 10, 0);
    transition: box-shadow 0.3s ease-in-out;
    font-family: 'Lexend', sans-serif;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.history-card:hover {
    box-shadow: 0 0 30px rgba(178, 127, 10, 0.8);
}

.carousel-container {
    width: 50%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-right: 30px;
    height: auto;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.history-content {
    width: 50%;
    color: #a9a9a9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.history-content h3 {
    color: rgb(203, 146, 13);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.history-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.stats-container {
    display: grid; /* Mantenemos el grid para la vista de escritorio */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-left: 70px;
}

.stats-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.stats-item i {
    font-size: 2.5rem;
    color: #b27f0a;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-item h1 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 5px;
}

.stats-item p {
    font-size: 0.9rem;
    color: #a9a9a9;
    margin-bottom: 0;
}


/* Estilos de FOOTER corregidos */
#footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 5%;
    background-color: transparent;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
}

#footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#footer .col1 {
    flex-grow: 1;
    max-width: 40%;
}

#footer h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#footer span {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

#footer .social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#footer .social a {
    color: #fff;
    transition: color 0.3s ease;
}

#footer .social a:hover {
    color: #facc15;
}

#footer .col2, #footer .col3 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#footer .col2 a, #footer .col3 a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .col2 a:hover, #footer .col3 a:hover {
    color: #fff;
}

.derechos2 {
    display: none;
}

/* Media query para dispositivos móviles */
@media (max-width: 992px) {
    .history-card {
        flex-direction: column;
        padding: 20px;
    }

    .carousel-container {
        width: 100%;
        margin-right: 0;
        position: relative;
        height: 400px;
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
    }
    
    .carousel-slide.active {
        opacity: 1;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 15px;
    }

    .history-content {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
        margin-top: 30px;
    }

    .history-content h3 {
        font-size: 1.5rem;
    }

    .history-content p {
        font-size: 1rem;
    }

    .stats-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .stats-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
        width: 100%;
        max-width: 300px; /* ¡CAMBIO CLAVE! Esto limita el ancho para que el bloque se centre */
    }
    
    .stats-item i {
        font-size: 2rem;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stats-item h1 {
        font-size: 1.5rem;
    }

    .stats-item p {
        font-size: 0.8rem;
    }

    /* Estilos de FOOTER para móviles */
    #footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 5%;
        gap: 2rem;
    }

    #footer .col1 {
        max-width: 100%;
    }

    #footer .social {
        justify-content: center;
    }

    #footer .col2, #footer .col3 {
        align-items: center;
        gap: 1.5rem;
    }

    .derechos {
        display: none !important;
    }

    .derechos2 {
        display: block;
    }
}

/* Media query específica para Mobile L (320px - 425px aprox) */
    @media (min-width: 320px) and (max-width: 425px) {
        .history-card {
            padding: 15px;
        }
        .history-content h3 {
            font-size: 1.3rem;
        }
        .history-content p {
            font-size: 0.95rem;
        }
        .stats-item i {
            font-size: 1.8rem;
        }
        .stats-item h1 {
            font-size: 1.3rem;
        }
        .stats-item p {
            font-size: 0.75rem;
        }
    }
