@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');

:root {
  --gris-claro: #c7c6c6;
  --negro: #050404;
  --gris-medio: #585757;
  --gris-oscuro: #7b7c7b;
  --gris-muy-oscuro: #2c2c2c;
  --gris-matiz: #3c3b3c;
  --gris-purpura: #847478;
  --gris-purpura2: #7c747c;
  --gris-verde: #3c443c;
  --gris-verde-oscuro: #1c241c;
  --fuente-rock: 'Metal Mania', cursive;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--negro);
  color: var(--gris-claro);
  overflow-x: hidden; /* Prevenir scroll horizontal */
}

/* Mejoras generales para responsive */
* {
  box-sizing: border-box;
}

/* Mejoras para imágenes responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mejoras para enlaces táctiles */
a, button {
  min-height: 44px; /* Tamaño mínimo para dispositivos táctiles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== MEJORAS DE ACCESIBILIDAD Y UX ===== */
/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mejoras para el botón hamburguesa */
label[for="menu-toggle"]:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Estados de hover mejorados */
.publicacion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

/* Animaciones suaves para elementos interactivos */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras para el carrusel */
.carrusel img {
  transition: transform 0.3s ease;
}

.carrusel img:hover {
  transform: scale(1.05);
}

/* Indicadores de carga */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Mejoras para el scroll suave */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Compensar el header fijo */
}

/* Mejoras adicionales para scroll suave */
body {
  scroll-behavior: smooth;
}

/* Optimización para scroll suave en dispositivos móviles */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  
  * {
    scroll-behavior: smooth;
  }
}

/* Mejoras para la experiencia de scroll */
.scroll-smooth {
  scroll-behavior: smooth;
}

/* Estilos para el botón "Volver arriba" */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #a855f7, #eab308);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.scroll-to-top:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mejoras para secciones con scroll */
section {
  scroll-margin-top: 100px;
}

/* Animación de entrada para secciones */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Prevenir scroll horizontal */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Mejoras para el contraste */
.text-gray-200 {
  color: #e5e7eb !important;
}

.text-gray-300 {
  color: #d1d5db !important;
}

/* Mejoras para botones */
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #eab308);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.4);
}

/* Mejoras para el footer */
footer {
  position: relative;
  z-index: 10;
}

/* Mejoras para secciones */
section {
  position: relative;
  z-index: 1;
}

/* Mejoras para el header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  animation: slideInFromTop 0.8s ease-out;
}

/* Animación para el logo */
header img {
  animation: fadeInScale 1s ease-out 0.3s both;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05) rotate(5deg);
}

/* Animación para el título */
header .font-rock {
  animation: slideInFromRight 0.8s ease-out 0.5s both;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.titulo-rock {
  font-family: var(--fuente-rock);
  color: var(--gris-purpura);
  letter-spacing: 2px;
  font-size: 2.5rem;
  text-shadow: 2px 2px 8px var(--gris-muy-oscuro);
  margin-bottom: 20px;
}

.hero {
  background: linear-gradient(120deg, var(--gris-muy-oscuro) 60%, var(--gris-purpura2) 100%);
  padding: 60px 0 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.hero__texts {
  flex: 1 1 350px;
}
.hero__img {
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--gris-verde-oscuro);
  margin-left: 40px;
}
.subtitulo {
  color: var(--gris-purpura);
  font-size: 1.2rem;
  margin-top: 10px;
}

.areas__contenido {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.area {
  background: var(--gris-matiz);
  border-radius: 12px;
  padding: 24px;
  flex: 1 1 220px;
  min-width: 220px;
  box-shadow: 0 2px 12px var(--gris-verde-oscuro);
}
.area h3 {
  font-family: var(--fuente-rock);
  color: var(--gris-verde);
  margin-bottom: 10px;
}

.publicaciones__contenido {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.publicacion {
  background: var(--gris-oscuro);
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  box-shadow: 0 2px 12px var(--gris-verde-oscuro);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.publicacion img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}
.publicacion h4 {
  font-family: var(--fuente-rock);
  color: var(--gris-purpura2);
  margin-bottom: 8px;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.form-contacto input,
.form-contacto textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: var(--gris-muy-oscuro);
  color: var(--gris-claro);
  font-size: 1rem;
}
.form-contacto button {
  background: var(--gris-verde);
  color: var(--gris-claro);
  font-family: var(--fuente-rock);
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.form-contacto button:hover {
  background: var(--gris-purpura2);
}

.footer {
  background: var(--gris-verde-oscuro);
  color: var(--gris-claro);
  text-align: center;
  padding: 24px 0;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ===== MENÚ HAMBURGUESA MEJORADO ===== */
/* Checkbox oculto */
#menu-toggle {
  display: none;
}

/* Botón hamburguesa */
.hamburger-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1000;
  position: relative;
  background: transparent;
  border: none;
  padding: 5px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #a855f7;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mostrar botón hamburguesa en móviles */
@media (max-width: 768px) {
  .hamburger-button {
    display: flex !important;
  }
}

/* Estilos del botón hamburguesa */
.hamburger-line {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Animación del botón hamburguesa cuando está activo */
#menu-toggle:checked ~ .hamburger-button .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #eab308;
}

#menu-toggle:checked ~ .hamburger-button .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-30px) scale(0.5);
}

#menu-toggle:checked ~ .hamburger-button .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: #eab308;
}

/* Efecto hover en el botón hamburguesa */
.hamburger-button:hover .hamburger-line {
  background-color: #eab308;
  transform: scale(1.1);
}

/* Animación de entrada para cada línea del menú */
@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Estilos para móviles */
@media (max-width: 768px) {
  /* Contenedor del header para posicionamiento */
  header .container {
    position: relative;
  }
  
  /* Navegación móvil */
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(88, 28, 135, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }
  
  /* Estado activo del menú */
  #menu-toggle:checked ~ #nav-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Animación de entrada para los elementos del menú */
  #menu-toggle:checked ~ #nav-menu ul {
    animation: slideInFromTop 0.6s ease-out 0.2s both;
  }
  
  #menu-toggle:checked ~ #nav-menu li {
    animation: slideInFromRight 0.5s ease-out both;
  }
  
  #menu-toggle:checked ~ #nav-menu li:nth-child(1) { animation-delay: 0.3s; }
  #menu-toggle:checked ~ #nav-menu li:nth-child(2) { animation-delay: 0.4s; }
  #menu-toggle:checked ~ #nav-menu li:nth-child(3) { animation-delay: 0.5s; }
  #menu-toggle:checked ~ #nav-menu li:nth-child(4) { animation-delay: 0.6s; }
  
  /* Efectos adicionales cuando el menú está activo */
  #nav-menu.menu-active {
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
  }
  
  #nav-menu.menu-active ul {
    transform: scale(1.02);
  }
  
  /* Estilos de la lista de navegación */
  #nav-menu ul {
    padding: 1.5rem 2rem;
    margin: 0;
  }
  
  #nav-menu li {
    margin: 0;
  }
  
  #nav-menu a {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  #nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
    transition: left 0.5s ease;
  }
  
  #nav-menu a:hover {
    background: rgba(147, 51, 234, 0.2);
    transform: translateX(8px) scale(1.02);
    color: #eab308;
  }
  
  /* Estilo para enlace activo */
  #nav-menu a.active {
    background: rgba(147, 51, 234, 0.3);
    color: #eab308;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  }
  
  #nav-menu a:hover::before {
    left: 100%;
  }
  
  #nav-menu a:active {
    transform: translateX(5px) scale(0.98);
  }
  
  /* Overlay para cerrar el menú */
  #menu-toggle:checked ~ .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 30;
    animation: fadeIn 0.4s ease-out;
  }
  
  /* Animación de salida para el overlay */
  .menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
  }
}

/* ===== ANIMACIONES MEJORADAS ===== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

@supports (backdrop-filter: blur(3px)) {
  @keyframes fadeIn {
    from { 
      opacity: 0; 
      backdrop-filter: blur(0px);
    }
    to { 
      opacity: 1; 
      backdrop-filter: blur(3px);
    }
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animación para el botón hamburguesa cuando se carga la página */
label[for="menu-toggle"] {
  animation: bounceIn 0.8s ease-out 0.5s both;
}

/* Mejoras para desktop */
@media (min-width: 769px) {
  #nav-menu {
    opacity: 1 !important;
    max-height: none !important;
    transform: none !important;
  }
  
  #nav-menu ul {
    background: none;
    border: none;
    padding: 0;
  }
  
  #nav-menu a {
    position: relative;
    padding: 0.5rem 1rem;
  }
  
  #nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #eab308);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  #nav-menu a:hover::after {
    width: 100%;
  }
  
  /* Estilo para enlace activo en desktop */
  #nav-menu a.active {
    color: #eab308;
  }
  
  #nav-menu a.active::after {
    width: 100%;
    background: linear-gradient(90deg, #eab308, #f59e0b);
  }
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Breakpoint para tablets grandes y laptops pequeños */
@media (max-width: 1024px) {
  .container {
    width: 95%;
    padding: 30px 0;
  }
  
  .font-rock {
    font-size: 2rem !important;
  }
  
  /* Ajustes para el hero */
  #presentacion h1 {
    font-size: 3rem !important;
  }
  
  #presentacion p {
    font-size: 1.1rem !important;
  }
  
  /* Grid de publicaciones */
  .publicaciones-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Carrusel */
  .carrusel .galeria-carrusel {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .img-carrusel {
    width: 45%;
    max-width: 280px;
  }
}

/* Breakpoint para tablets */
@media (max-width: 900px) {
  .hero__container, .areas__contenido, .publicaciones__contenido {
    flex-direction: column;
    align-items: center;
  }
  
  .hero__img {
    margin-left: 0;
    margin-top: 30px;
  }
  
  /* Ajustes de espaciado */
  .container {
    padding: 25px 0;
  }
  
  /* Sección de áreas */
  #areas .flex {
    flex-direction: column;
    gap: 2rem;
  }
  
  #areas .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Contacto */
  #contacto .flex {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  #contacto a {
    transform: scale(0.9);
  }
}

/* Breakpoint para tablets pequeñas */
@media (max-width: 768px) {
  .container {
    width: 92%;
    padding: 20px 0;
  }
  
  .font-rock {
    font-size: 1.8rem !important;
  }
  
  /* Hero section */
  #presentacion {
    padding: 2.5rem 0;
  }
  
  #presentacion h1 {
    font-size: 2.5rem !important;
    text-align: center;
  }
  
  #presentacion p {
    font-size: 1rem !important;
    text-align: center;
  }
  
  /* Grid de publicaciones */
  .publicaciones-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Carrusel */
  .carrusel .imagenes {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .carrusel .galeria-carrusel {
    flex-direction: column;
    gap: 1rem;
  }
  
  .img-carrusel {
    width: 100%;
    max-width: 320px;
  }
  
  /* Áreas */
  #areas .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Contacto */
  #contacto .flex {
    flex-direction: column;
    gap: 2rem;
  }
  
  #contacto a {
    transform: scale(0.85);
  }
}

/* Breakpoint para móviles grandes */
@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 15px 0;
  }
  
  .font-rock {
    font-size: 1.6rem !important;
  }
  
  /* Header */
  header .container {
    padding: 1rem 0;
  }
  
  header img {
    width: 80px !important;
    height: 80px !important;
  }
  
  /* Hero section */
  #presentacion {
    padding: 2rem 0;
  }
  
  #presentacion h1 {
    font-size: 2rem !important;
  }
  
  #presentacion p {
    font-size: 0.95rem !important;
  }
  
  #presentacion img {
    width: 120px !important;
    height: 120px !important;
  }
  
  /* Secciones */
  section {
    padding: 2rem 0 !important;
  }
  
  /* Títulos de sección */
  h2.font-rock {
    font-size: 1.8rem !important;
  }
  
  /* Grid de publicaciones */
  .publicacion-card {
    margin-bottom: 1rem;
  }
  
  /* Carrusel */
  .carrusel {
    margin: 1rem 0;
  }
  
  .img-carrusel {
    max-width: 280px;
  }
  
  /* Áreas */
  #areas .flex {
    gap: 1.5rem;
  }
  
  #areas img {
    width: 200px !important;
  }
  
  /* Contacto */
  #contacto a {
    transform: scale(0.75);
  }
  
  /* Footer */
  footer .flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  footer img {
    width: 80px !important;
    height: 80px !important;
  }
  
  footer p {
    font-size: 0.9rem !important;
  }
}

/* Breakpoint para móviles pequeños */
@media (max-width: 480px) {
  .container {
    width: 98%;
    padding: 10px 0;
  }
  
  .font-rock {
    font-size: 1.4rem !important;
  }
  
  /* Header */
  header img {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Hero section */
  #presentacion h1 {
    font-size: 1.8rem !important;
  }
  
  #presentacion p {
    font-size: 0.9rem !important;
  }
  
  #presentacion img {
    width: 100px !important;
    height: 100px !important;
  }
  
  /* Títulos */
  h2.font-rock {
    font-size: 1.6rem !important;
  }
  
  /* Carrusel */
  .img-carrusel {
    max-width: 250px;
  }
  
  /* Áreas */
  #areas img {
    width: 150px !important;
  }
  
  /* Contacto */
  #contacto a {
    transform: scale(0.7);
  }
  
  /* Footer */
  footer img {
    width: 60px !important;
    height: 60px !important;
  }
}

/* Breakpoint para móviles muy pequeños */
@media (max-width: 360px) {
  .container {
    width: 100%;
    padding: 8px 0;
  }
  
  .font-rock {
    font-size: 1.2rem !important;
  }
  
  /* Header */
  header img {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Hero section */
  #presentacion h1 {
    font-size: 1.6rem !important;
  }
  
  #presentacion p {
    font-size: 0.85rem !important;
  }
  
  #presentacion img {
    width: 80px !important;
    height: 80px !important;
  }
  
  /* Títulos */
  h2.font-rock {
    font-size: 1.4rem !important;
  }
  
  /* Carrusel */
  .img-carrusel {
    max-width: 200px;
  }
  
  /* Áreas */
  #areas img {
    width: 120px !important;
  }
  
  /* Contacto */
  #contacto a {
    transform: scale(0.6);
  }
  
  /* Footer */
  footer img {
    width: 50px !important;
    height: 50px !important;
  }
} 

#carousel .grid {
  width: 800px;
  height: 500px;
  background: linear-gradient(135deg, #1a1423 60%, #3c1e5c 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(60,30,92,0.25);
}
#carousel .grid-item-1,
#carousel .grid-item-2,
#carousel .grid-item-3,
#carousel .grid-item-4 {
  border-radius: 12px;
  overflow: hidden;
}
#carousel .grid-item {
  height: 500px;
  box-sizing: border-box;
  position: relative;
  transition: .2s ease;
  opacity: .9;
}
#carousel .grid-item-1 {
  background: url(https://www.shutterstock.com/image-vector/default-ui-image-placeholder-wireframes-600nw-1037719192.jpg) no-repeat center center;
  background-size: cover;
}
#carousel .grid-item-2 {
  background: url(https://www.shutterstock.com/image-vector/default-ui-image-placeholder-wireframes-600nw-1037719192.jpg) no-repeat center center;
  background-size: cover;
}
#carousel .grid-item-3 {
  background: url(https://www.shutterstock.com/image-vector/default-ui-image-placeholder-wireframes-600nw-1037719192.jpg) no-repeat center center;
  background-size: cover;
}
#carousel .grid-item-4 {
  background: url(https://www.shutterstock.com/image-vector/default-ui-image-placeholder-wireframes-600nw-1037719192.jpg) no-repeat center center;
  background-size: cover;
}
#carousel .grid-content {
  position: absolute;
  bottom: 0;
  width: 180px;
  height: 150px;
  background: rgba(34, 24, 54, 0.85); /* fondo oscuro translúcido */
  color: #e0d7f7;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(2px);
}
#carousel .grid-item:hover {
  box-shadow: 0px 30px 46px -18px rgba(60,30,92,0.7);
  -webkit-box-shadow: 0px 30px 46px -18px rgba(60,30,92,0.7);
  -moz-box-shadow: 0px 30px 46px -18px rgba(60,30,92,0.7);
  margin-top: -20px;
  opacity: 1;
}
#carousel h1 {
  text-align: center;
  font-size: 20px;
  margin-top: 10px;
  color: #c084fc; /* púrpura claro */
  letter-spacing: 1px;
}
#carousel p {
  text-align: center;
}
#carousel a {
  text-decoration: none;
  display: inline-block;
  color: white;
  background: #3c1e5c;
  padding: 0 5px;
  position: absolute;
  right: 0;
  top: 0;
  font-weight: bold;
  border-radius: 0 8px 0 12px;
  transition: .5s ease;
}
#carousel a:hover {
  background: #c084fc;
  color: #1a1423;
} 

@media (max-width: 1200px) {
  #carousel .grid {
    width: 98vw;
    height: 380px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
  }
  #carousel .grid-item {
    height: 360px;
  }
}
@media (max-width: 900px) {
  #carousel .grid {
    width: 98vw;
    height: 320px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  #carousel .grid-item {
    height: 300px;
  }
  #carousel .grid-content {
    width: 92%;
    height: 90px;
    padding: 8px;
    font-size: 0.98em;
  }
}
@media (max-width: 700px) {
  #carousel .grid {
    width: 100vw;
    height: 260px;
    grid-template-columns: repeat(4, 85vw);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 12px;
    border-radius: 0;
  }
  #carousel .grid-item {
    min-width: 85vw;
    height: 220px;
    scroll-snap-align: start;
    border-radius: 10px;
  }
  #carousel .grid-content {
    width: 97%;
    height: 70px;
    padding: 6px;
    font-size: 0.93em;
    border-radius: 0 0 10px 10px;
  }
  #carousel h1 {
    font-size: 1em;
  }
}
@media (max-width: 500px) {
  #carousel .grid {
    height: 170px;
    grid-template-columns: repeat(4, 95vw);
    gap: 10px;
  }
  #carousel .grid-item {
    min-width: 95vw;
    height: 140px;
    border-radius: 8px;
  }
  #carousel .grid-content {
    height: 50px;
    font-size: 0.85em;
    border-radius: 0 0 8px 8px;
  }
}

/* Mejorar la visibilidad del scroll en móvil */
#carousel .grid::-webkit-scrollbar {
  height: 8px;
  background: #2d193c;
  border-radius: 4px;
}
#carousel .grid::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}
#carousel .grid {
  scrollbar-width: thin;
  scrollbar-color: #c084fc #2d193c;
} 