html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

:root {
  --top-begin: 0px;
  --top-end: 0px;
  --height-begin: 40px;
  --height-end: 40px;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #090A20;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  position: relative;
}

body.dark {
  background-color: #000000;
  color: #CF621B;
}

/* Header mejorado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  background-color: #0b0a20;
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.contenedor-boton-cambio-tema {
  display: flex;
  align-items: center;
}

.boton-cambio-tema {
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.pelota-boton-cambio-tema {
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2;
}

.icono-sol, .icono-luna {
  font-size: 14px;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.icono-sol {
  color: #fff;
  margin-left: 5px;
}

.icono-luna {
  color: #090A20;
  margin-right: 5px;
  opacity: 0;
}

body.dark .pelota-boton-cambio-tema {
  transform: translateX(30px);
}

body.dark .icono-sol {
  opacity: 0;
}

body.dark .icono-luna {
  opacity: 1;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
  max-height: 45px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.menu-toggle {
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
  color: white;
  border: none;
  border-radius: 8px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(207, 98, 27, 0.5);
}

.menu-toggle.active {
  transform: rotate(90deg);
}

/* Menú mejorado */
.menu {
  position: fixed;
  top: 75px;
  right: -100%;
  width: 320px;
  height: calc(100vh - 75px);
  background: linear-gradient(135deg, #1A1C3B 0%, #090A20 100%);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  z-index: 999;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

body.dark .menu {
  background: linear-gradient(135deg, #000000 0%, #0A0A0A 100%);
  box-shadow: -5px 0 25px rgba(207, 98, 27, 0.2);
}

.menu.active {
  right: 0;
}

.menu ul {
  list-style: none;
  margin-bottom: 30px;
}

.menu ul li {
  margin-bottom: 15px;
}

.menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

body.dark .menu ul li a {
  color: #CF621B;
  border: 1px solid rgba(207, 98, 27, 0.3);
}

.menu ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(207, 98, 27, 0.2), transparent);
  transition: left 0.7s ease;
}

body.dark .menu ul li a::before {
  background: linear-gradient(90deg, transparent, rgba(207, 98, 27, 0.3), transparent);
}

.menu ul li a:hover {
  background-color: rgba(207, 98, 27, 0.1);
  transform: translateX(5px);
  border-color: #CF621B;
}

body.dark .menu ul li a:hover {
  background-color: rgba(207, 98, 27, 0.2);
  border-color: #E9722C;
  box-shadow: 0 5px 15px rgba(207, 98, 27, 0.2);
}

.menu ul li a:hover::before {
  left: 100%;
}

/* Dropdown mejorado */
nav {
  margin-top: 20px;
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .dropdown-toggle {
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
  color: #000;
  border: 1px solid rgba(207, 98, 27, 0.5);
  box-shadow: 0 2px 8px rgba(207, 98, 27, 0.3);
}

.dropdown-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(207, 98, 27, 0.4);
}

body.dark .dropdown-toggle:hover {
  box-shadow: 0 5px 15px rgba(207, 98, 27, 0.5);
}

.dropdown-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active::after {
  transform: rotate(-180deg);
}

/* styles.css - Modifica esta sección del dropdown */
.dropdown-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  background-color: rgba(42, 46, 86, 0.3);
  border-radius: 10px;
  margin-top: 5px;
  opacity: 0;
  border: 1px solid rgba(207, 98, 27, 0.2);
}

body.dark .dropdown-menu {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(207, 98, 27, 0.4);
}

.dropdown-menu.active {
  max-height: 500px;
  opacity: 1;
}

/* Asegúrate de que el dropdown sea visible cuando el menú esté abierto */
.menu.active .dropdown-menu.active {
  visibility: visible;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 12px 20px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .dropdown-menu li a {
  color: rgba(207, 98, 27, 0.9);
  border-bottom: 1px solid rgba(207, 98, 27, 0.2);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: rgba(207, 98, 27, 0.1);
  border-left-color: #CF621B;
  color: #fff;
  padding-left: 25px;
}

body.dark .dropdown-menu li a:hover {
  background-color: rgba(207, 98, 27, 0.2);
  border-left-color: #CF621B;
  color: #CF621B;
  box-shadow: 0 2px 8px rgba(207, 98, 27, 0.2);
}

/* Habilitar scroll vertical cuando el dropdown está activo */
.dropdown-menu.active {
  max-height: 60vh; /* limita la altura al 60% de la pantalla */
  overflow-y: auto; /* activa scroll vertical si hay muchos items */
  opacity: 1;
}

/* Opcional: mejorar la barra de scroll */
.dropdown-menu.active::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu.active::-webkit-scrollbar-thumb {
  background: #CF621B;
  border-radius: 10px;
}
.dropdown-menu.active::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== HERO SECTION MEJORADA ===== */
.hero {
  background-image: url('Amerian-Galeria/IMG-Amerian/Amerian-Horizontal-Slide.png');
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(9, 10, 32, 0.8) 0%, 
    rgba(26, 28, 59, 0.6) 50%, 
    rgba(207, 98, 27, 0.3) 100%);
  z-index: 1;
  transition: all 0.5s ease;
}

body.dark .hero::before {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(10, 10, 10, 0.7) 50%, 
    rgba(207, 98, 27, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 20px;
  transition: all 0.4s ease;
}

body.dark .hero-content {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(207, 98, 27, 0.3);
  box-shadow: 0 20px 40px rgba(207, 98, 27, 0.2);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background-color: #fff;
  background-clip: text;
  transition: all 0.4s ease;
}

body.dark .hero-content h1 {
  background-color: #CF621B;
  background-clip: text;
}

.hero-content h3 {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

body.dark .hero-content h3 {
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #E9722C 0%, #CF621B 100%);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(207, 98, 27, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(207, 98, 27, 0.4);
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
}

.cta-button:hover::before {
  left: 100%;
}

body.dark .cta-button {
  box-shadow: 0 10px 20px rgba(207, 98, 27, 0.4);
}

body.dark .cta-button:hover {
  box-shadow: 0 15px 30px rgba(207, 98, 27, 0.6);
}

/* Efectos de animación suave */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

/* ===== SLIDER MEJORADO CON ESTILOS NARANJA ===== */
/* ===== SLIDER INFINITO MEJORADO ===== */
.slider {
  width: 100%;
  height: 60px; /* Altura fija para mejor visualización */
  overflow: hidden;
  background: linear-gradient(135deg, rgba(207, 98, 27, 0.1) 0%, rgba(233, 114, 44, 0.05) 100%);
  padding: 5px 0;
  border-top: 1px solid rgba(207, 98, 27, 0.2);
  border-bottom: 1px solid rgba(207, 98, 27, 0.2);
  margin-bottom: 10px;
  position: relative;
}

/* Eliminar la máscara que cortaba los elementos */
.slider {
  mask-image: none;
  -webkit-mask-image: none;
}

body.dark .slider {
  background: linear-gradient(135deg, rgba(207, 98, 27, 0.15) 0%, rgba(233, 114, 44, 0.08) 100%);
  border-top: 1px solid rgba(207, 98, 27, 0.3);
  border-bottom: 1px solid rgba(207, 98, 27, 0.3);
}

.slider .list {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px; /* Más espacio entre botones */
  width: max-content; /* Ancho según el contenido */
  animation: autoRun 30s linear infinite;
  padding: 0 10px; /* Padding para que no se peguen a los bordes */
}

.slider .list .item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0; /* Evita que los items se reduzcan */
}

.slider-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #E9722C 0%, #CF621B 100%);
  color: white;
  border: 2px solid transparent;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.4s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(207, 98, 27, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Evita que el botón se reduzca */
}

/* Animación infinita mejorada */
@keyframes autoRun {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 15px)); /* Compensa el gap */
  }
}

/* Pausar animación al hacer hover */
.slider:hover .list {
  animation-play-state: paused;
}

/* Efecto hover en los botones */
.slider-button:hover {
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(207, 98, 27, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Para dark mode */
body.dark .slider-button {
  box-shadow: 0 4px 15px rgba(207, 98, 27, 0.4);
}

body.dark .slider-button:hover {
  box-shadow: 0 8px 25px rgba(207, 98, 27, 0.6);
}

/* ===== GALERÍA MEJORADA CON ESTILOS NARANJA ===== */
.gallery {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(9, 10, 32, 0.05) 0%, rgba(26, 28, 59, 0.02) 100%);
}

body.dark .gallery {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 10, 10, 0.05) 100%);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.grid-item {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(207, 98, 27, 0.3);
  border-color: rgba(207, 98, 27, 0.5);
}

body.dark .grid-item {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark .grid-item:hover {
  box-shadow: 0 15px 40px rgba(207, 98, 27, 0.4);
  border-color: rgba(207, 98, 27, 0.7);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.5s ease;
}

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

/* ===== CORRECCIÓN PARA IMÁGENES EXPANDIDAS ===== */
.grid-item img.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002; /* Aumentado para estar sobre el overlay pero bajo las flechas */
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 3px solid #CF621B;
  cursor: zoom-out;
  /* Deshabilitar efectos de hover cuando está expandida */
  pointer-events: auto;
}

body.dark .grid-item img.expanded {
  border: 3px solid #E9722C;
  box-shadow: 0 20px 60px rgba(207, 98, 27, 0.3);
}

/* Deshabilitar hover en grid-item cuando la imagen está expandida */
.grid-item img.expanded ~ *,
.grid-item:has(img.expanded) {
  pointer-events: none;
}

.grid-item:has(img.expanded):hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: transparent;
}

/* ===== BOTONES DE NAVEGACIÓN MEJORADOS ===== */
.flechas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10003; /* Mayor que la imagen expandida */
  pointer-events: none;
}

.flechas.show {
  display: block;
}

.flecha-der, .flecha-izq {
  position: fixed;
  padding: 15px;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #E9722C 0%, #CF621B 100%);
  color: white;
  border-radius: 15px;
  width: 70px;
  height: 100px;
  cursor: pointer;
  z-index: 10004; /* Mayor que las flechas contenedor */
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(207, 98, 27, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.flecha-der:hover, .flecha-izq:hover {
  background: linear-gradient(135deg, #CF621B 0%, #E9722C 100%);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 15px 35px rgba(207, 98, 27, 0.6);
}

body.dark .flecha-der, body.dark .flecha-izq {
  box-shadow: 0 10px 25px rgba(207, 98, 27, 0.5);
}

body.dark .flecha-der:hover, body.dark .flecha-izq:hover {
  box-shadow: 0 15px 35px rgba(207, 98, 27, 0.7);
}

.flecha-der {
  right: 5%;
}

.flecha-izq {
  left: 5%;
}

.btn-cerrar {
  position: fixed;
  padding: 5px;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10005; /* Mayor que todo */
  top: 5%;
  right: 5%;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.btn-cerrar:hover {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(207, 99, 27, 0) 100%);
  z-index: 10000; /* Debajo de la imagen pero sobre el contenido */
  pointer-events: auto;
  display: none;
}

.overlay.active {
  display: block;
}

/* Galería completa con carrusel */
.full-gallery {
  text-align: center;
  padding: 2rem;
}

.hidden {
  display: none;
}

.slideshow-container {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slides {
  display: fixed;
  transition: transform 0.8s ease;
}

.slides img {
  min-width: 100%;
  user-select: none;
  border: 1px solid black;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Footer */
.footer {
  background-color: #090A20;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 20px;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info p {
  margin: 5px 0;
}

.footer-info a {
  color: #E9722C;
  text-decoration: none;
}

.footer-social ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social ul li {
  margin: 0 10px;
  background: none;
}

.footer-social ul li div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.footer-social ul li a.icon {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 63px;
  background: #CF621B;
  border-radius: 50%;
  font-size: 30px;
  color: #fff;
  transition: .5s;
  margin-bottom: 10px;
  z-index: 1;
}

.footer-social ul li a.icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #CF621B;
  transition: .5s;
  transform: scale(1.1);
  z-index: -1;
}

.footer-social ul li a.icon:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 15px #CF621B;
  background-color: #000;
}

.footer-social ul li a.icon:hover {
  color: #CF621B;
  box-shadow: 0 0 5px #CF621B;
  text-shadow: 0 0 5px #CF621B;
  background-color: #000;
}

.footer-social ul li a.usuario {
  position: relative;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 15px;
  background: #CF621B;
  border-radius: 20px;
  transition: .5s;
  z-index: 1;
}

.footer-social ul li a.usuario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: .5s;
  transform: scale(.9);
  z-index: -1;
}

.footer-social ul li a.usuario:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 15px #CF621B;
}

.footer-social ul li a.usuario:hover {
  color: #fff;
  text-shadow: 0 0 5px #CF621B;
  background-color: #000;
}

.footer-social ul li a.icon:hover + a.usuario, .footer-social ul li a.usuario:hover {
  box-shadow: 0 0 5px #CF621B;
  text-shadow: 0 0 5px #CF621B;
}

.footer-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 15px;
  border-radius: 5px;
}

.boton-personalizado {
  position: relative;
  display: inline-block;
  background-color: #CF621B;
  color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
  text-align: center;
  transition: all 0.5s;
}

.boton-personalizado:hover {
  background-color: #333;
  box-shadow: 0 0 10px #CF621B;
  text-shadow: 0 0 10px #CF621B;
}

/* Botón de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #128C7E;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 11111;
}

.whatsapp-button:hover {
  background-color: #075E54;
  transform: scale(1.1);
}

/* Media Queries */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-logo, .footer-info, .footer-social {
    margin: 0 20px;
  }
  
  .footer-logo img {
    margin-bottom: 0;
  }
  
  .footer-social {
    margin-bottom: 0;
  }
  
  .footer-map iframe {
    height: 400px;
  }
  
  /* Ajustes responsive para hero */
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .menu {
    width: 280px;
  }
  
  .footer-social ul {
    flex-direction: column;
  }
  
  .footer-social ul li {
    margin: 10px 0;
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .grid-item {
    height: 200px;
  }
  
  .grid-item img.expanded {
    max-width: 95vw;
    max-height: 80vh;
  }
  
  .flecha-der, .flecha-izq {
    width: 50px;
    height: 70px;
    font-size: 2rem;
  }

  .flecha-der {
    right: 2%;
  }

  .flecha-izq {
    left: 2%;
  }

  .btn-cerrar {
    top: 2%;
    right: 2%;
    width: 40px;
    height: 40px;
  }
  
  /* Ajustes responsive para hero */
  .hero-content {
    padding: 2rem 1.5rem;
    margin: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h3 {
    font-size: 1.1rem;
  }
  
  .slider-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 18px 15px;
  }
  
  .logo {
    max-height: 40px;
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  
  .menu {
    width: 85%;
  }
  
  /* Ajustes responsive para hero en móviles pequeños */
  .hero-content {
    padding: 1.5rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .grid-item {
    height: 250px;
  }
  
  .flecha-der, .flecha-izq {
    width: 40px;
    height: 60px;
    font-size: 1.5rem;
  }
}