/* Estilos Base */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--font-main);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Estilos del Header */
#header {
  height: 80px;
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s;
}

#header.scrolled {
  height: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 150px;
  height: auto;
}

#header.scrolled .logo img {
  max-height: 50px;
}

/* Navbar */
/* .navbar {
  background-color: #333;
  padding: 15px 0;
} */

.navbar ul {
  display: flex;
}

.navbar li {
  position: relative;
  padding: 10px 0;
  margin: 0 15px;
}

.navbar a {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  position: relative;
}

.navbar a:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

.navbar a:hover:before,
.navbar .active:before {
  width: 100%;
}

.navbar .active {
  color: var(--primary-color);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--dark-color);
  font-size: 24px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

/* Main Content */
#page-content {
  margin-top: 80px;
}

.page-container {
  display: none;
  padding: 60px 0;
}

.page-container.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.section-title h2:after {
  content: '';
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}
/* Estilos de la sección de clips */
.clips-section {
  padding: 30px 0;
  background-color: var(--light-color);
}
.clips-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 20px;
}
.clips-section p {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
}
.clips-section .clip-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}
.clips-section .clip-item:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}
.clips-section .clip-item img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}
.clips-section .clip-item video {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}
.clips-section .clip-item .clip-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 18px;
  text-align: center;
}
.clips-section .clip-item .clip-title:hover {
  background-color: rgba(0, 0, 0, 0.9);
}
.clips-section .clip-item .clip-title a {
  color: white;
  text-decoration: none;
  transition: all var(--transition-speed);
}
.clips-section .clip-item .clip-title a:hover {
  text-decoration: underline;
}
/* Estilos de la sección de clips - Correcciones */
/* Swiper Styles */
.swiper {
  width: 100%;
  height: 100%;
  margin: 20px 0;
}

.swiper-inicio {
  height: 400px;
}

.swiper-inicio .swiper-slide {
  width: 80%;
  opacity: 0.4;
  transition: opacity var(--transition-speed);
}

.swiper-inicio .swiper-slide-active {
  opacity: 1;
}

.swiper-inicio img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.swiper-categorias {
  height: 500px;
}

.swiper-categorias .swiper-slide {
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  width: 300px;
  box-shadow: var(--box-shadow);
}

.swiper-categorias .swiper-slide:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  color: white;
  transform: translateY(20px);
  transition: transform var(--transition-speed);
}

.swiper-slide:hover .slide-content {
  transform: translateY(0);
}

.slide-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.slide-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-speed);
}

.slide-link:hover {
  background-color: var(--accent-color);
  color: white;
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  background-color: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary-color);
}

.swiper-pagination-bullet {
  background-color: white;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  opacity: 1;
}

/* Accordion Styles */
.accordion-list {
  padding: 0;
}

.accordion-list li {
  margin-bottom: 0px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.accordion-list a {
  display: block;
  position: relative;
  padding: 15px 20px;
  background: white;
  color: var(--dark-color);
  font-weight: 600;
  transition: all var(--transition-speed);
}

.accordion-list a:hover {
  color: var(--primary-color);
}

.accordion-list span {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
}

.accordion-list i {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 20px;
  transition: all var(--transition-speed);
}

.accordion-list .icon-show {
  display: inline-block;
}

.accordion-list .icon-close {
  display: none;
}

.accordion-list a.collapsed .icon-show {
  display: none;
}

.accordion-list a.collapsed .icon-close {
  display: inline-block;
}

.accordion-list .collapse {
  display: none;
}

.accordion-list .collapse.show {
  display: block;
}

.accordion-list .collapse-content {
  padding: 20px;
  background: white;
  border-top: 1px solid #eee;
}

/* Services Section */
.services .icon-box {
  padding: 30px;
  background: white;
  height: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}

.services .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.services .icon {
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 28px;
  transition: all var(--transition-speed);
}

.services .icon-box:hover .icon {
  background-color: var(--primary-color);
  color: white;
}

.services h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.services h4 a {
  color: var(--dark-color);
}

.services p {
  margin-bottom: 15px;
}


/* Gallery Section */
/* Gallery Section - Correcciones y mejoras */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.category-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.category-header {
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

.category-header h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
}

.category-header h3 i {
  margin-right: 10px;
  font-size: 1.2em;
}

.movie-count {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0,0,0,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.movie-list {
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

/* Estilo personalizado para el scrollbar */
.movie-list::-webkit-scrollbar {
  width: 8px;
}

.movie-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.movie-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.movie-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.movie-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  transition: all 0.2s ease;
}

.movie-item:hover {
  background-color: #f9f9f9;
}

.movie-item:last-child {
  border-bottom: none;
}

.movie-title {
  font-weight: 500;
  flex: 1;
  padding-right: 10px;
}

.movie-duration {
  color: var(--text-light);
  font-size: 14px;
  white-space: nowrap;
}

.empty-category {
  padding: 30px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .movie-list {
    max-height: 250px;
  }
}

@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .category-header h3 {
    font-size: 16px;
  }
  
  .movie-count {
    font-size: 11px;
    top: 15px;
    right: 15px;
  }
}

/* Contact Section */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-info-box {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}

.contact-info-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.contact-info-box i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-info-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.contact-info-box p {
  margin-bottom: 0;
}

/* Form Styles */
.php-email-form {
  width: 100%;
}

.php-email-form .form-group {
  margin-bottom: 20px;
}

.php-email-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.php-email-form .form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
}

.php-email-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.php-email-form textarea.form-control {
  min-height: 120px;
}

.php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.php-email-form .sent-message {
  display: none;
  background: #d4edda;
  color: #155724;
  text-align: center;
  padding: 15px;
  border-radius: var(--border-radius);
}

.php-email-form .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.php-email-form .btn-primary:hover {
  background-color: #2980b9;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.social-icons {
  margin-bottom: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin: 0 10px;
  transition: all var(--transition-speed);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-text p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all var(--transition-speed);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .navbar ul {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .navbar-mobile {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 999;
  }
  
  .navbar-mobile ul {
    display: block;
  }
  
  .navbar-mobile li {
    padding: 10px 20px;
    margin: 0;
  }
  
  .navbar-mobile a {
    padding: 10px 0;
    display: block;
  }
  
  .swiper-inicio {
    height: 300px;
  }
  
  .swiper-categorias {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 28px;
  }
  
  .swiper-inicio {
    height: 250px;
  }
  
  .swiper-categorias {
    height: 350px;
  }
  
  .slide-content {
    padding: 20px;
  }
  
  .slide-title {
    font-size: 18px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  #header {
    height: 70px;
  }
  
  .logo img {
    max-height: 50px;
  }
  
  .swiper-inicio {
    height: 200px;
  }
  
  .swiper-categorias {
    height: 300px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .php-email-form .btn-primary {
    width: 100%;
  }
}


/* Sección Recomendaciones - Estilo Personalizado */
#recomendaciones.about {
  padding: 60px 0;
  background: var(--bs-gray-100);
}

#recomendaciones .section-title {
  text-align: center;
  padding-bottom: 30px;
}

#recomendaciones .section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

#recomendaciones .section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: calc(50% - 40px);
}

#recomendaciones .section-title p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-light);
}

#recomendaciones .content p {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color);
  line-height: 1.6;
}

/* Estilos específicos para el carrusel de recomendaciones */
#recomendacionesCarousel {
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--bs-white);
  border: 1px solid var(--bs-border-color);
}

#recomendacionesCarousel .carousel-inner {
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease;
}

#recomendacionesCarousel .carousel-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 600px;
  padding: 15px;
  background-color: var(--bs-white);
}

#recomendacionesCarousel .carousel-control-prev,
#recomendacionesCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(var(--bs-dark-rgb), 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color var(--transition-speed) ease;
}

#recomendacionesCarousel .carousel-control-prev:hover,
#recomendacionesCarousel .carousel-control-next:hover {
  background-color: rgba(var(--bs-dark-rgb), 0.5);
}

#recomendacionesCarousel .carousel-control-prev {
  left: 20px;
}

#recomendacionesCarousel .carousel-control-next {
  right: 20px;
}

#recomendacionesCarousel .carousel-control-prev-icon,
#recomendacionesCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Indicadores del carrusel */
#recomendacionesCarousel .carousel-indicators {
  bottom: 15px;
}

#recomendacionesCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bs-gray-400);
  border: none;
  margin: 0 5px;
  transition: background-color var(--transition-speed) ease;
}

#recomendacionesCarousel .carousel-indicators .active {
  background-color: var(--primary-color);
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  #recomendacionesCarousel {
      max-width: 100%;
      border-radius: 0;
  }
  
  #recomendacionesCarousel .carousel-image {
      max-height: 400px;
      padding: 10px;
  }
  
  #recomendaciones .section-title h2 {
      font-size: 28px;
  }
}
/* Sección Categorías - Corrección de fondos */
.swiper-categorias .swiper-slide:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 70%);
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2; /* Asegura que el texto esté sobre el overlay */
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Mejora contraste */
}

/* Ajustes para tarjetas de categorías */
.category-header {
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  position: relative;
  z-index: 1;
}

/* Mejora de contraste en texto */
.section-title p, 
.contact-info-box p, 
.footer-text p,
.php-email-form label {
  color: var(--text-color);
  opacity: 0.9; /* Mejor que usar colores muy claros */
}

/* Corrección para acordeón */
.accordion-list a {
  color: var(--dark-color);
  background: rgba(255,255,255,0.9);
}

.accordion-list .collapse-content {
  background: rgba(255,255,255,0.95);
}

/* Mejora en cards de servicios */
.services .icon-box {
  background: rgba(255,255,255,0.95);
}


/* Mejoras en el carrusel de recomendaciones */
#recomendacionesCarousel .carousel-caption {
  background: rgba(0,0,0,0.6);
  padding: 15px;
  border-radius: var(--border-radius);
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
}

#recomendacionesCarousel .carousel-caption h5 {
  color: white;
  text-shadow: 1px 1px 2px black;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .slide-content {
    padding: 15px;
  }
  
  .slide-title {
    font-size: 18px;
  }
  
  #recomendacionesCarousel .carousel-caption {
    position: static;
    transform: none;
    width: 100%;
    background: transparent;
    color: var(--text-color);
    padding: 10px 0;
  }
  
  #recomendacionesCarousel .carousel-caption h5 {
    color: var(--dark-color);
    text-shadow: none;
  }
}


/* Estilos base responsivos */
.faq-list {
  padding: 0;
  margin: 0 0 2rem 0;
  list-style: none;
  width: 100%;
}

.faq-item {
  margin-bottom: 0.75rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--bs-white);
  border: 1px solid var(--bs-gray-300);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
}

/* Estilos para los botones - Responsivos */
.accordion-button {
  position: relative;
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-color);
  background-color: var(--bs-white);
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Contenido de respuestas - Responsivo */
.faq-answer {
  padding: 1rem;
  background-color: var(--bs-gray-100);
  border-top: 1px solid var(--bs-gray-300);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Media Queries para diferentes tamaños */
@media (min-width: 576px) {
  .accordion-button {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
  }
  .faq-answer {
    padding: 1.25rem 1.5rem 1.5rem 4.5rem;
  }
}

@media (min-width: 768px) {
  .faq-item {
    margin-bottom: 1rem;
  }
  .accordion-button {
    font-size: 1.15rem;
  }
}

@media (min-width: 992px) {
  .faq-list {
    max-width: 900px;
    margin: 0 auto 3rem auto;
  }
  .faq-item {
    margin-bottom: 1.25rem;
  }
}

/* Estilos para móviles pequeños (menos de 576px) */
@media (max-width: 575.98px) {
  .question-number {
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
    margin-right: 0.75rem;
  }
  .accordion-button {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  .icon-show, .icon-close {
    font-size: 1rem;
  }
}

/* Ajustes de texto para todos los navegadores */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Estilos mejorados para el acordeón */
.faq-list {
  width: 100%;
  max-width: 100%;
}

.faq-item {
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid; /* Evita que se divida entre páginas/columnas */
}

.accordion-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  word-break: break-word; /* Manejo mejorado de palabras largas */
  overflow-wrap: anywhere; /* Soporte moderno para ruptura de palabras */
}

.question-text {
  flex: 1;
  min-width: 0; /* Solución para flexbox que corta texto */
  hyphens: auto; /* División de palabras automática donde sea necesario */
}

/* Media Queries mejoradas */
@media (max-width: 576px) {
  .accordion-button {
      padding: 0.75rem 1rem;
      font-size: calc(1rem + 0.5vw); /* Tamaño de fuente responsivo */
      line-height: 1.4;
  }
  
  .faq-answer {
      padding: 0.75rem 1rem;
      font-size: calc(0.9rem + 0.3vw);
  }
}