/* Estilos del carrusel de galería */
.gallery-carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
}

.gallery-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-carousel-track {
  display: flex;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
  min-width: 100%;
  position: relative;
}

.gallery-image-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-slide:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-slide:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #FF6496;
}

.gallery-description {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 100, 150, 0.2);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  opacity: 0.7;
}

.gallery-btn:hover {
  background: rgba(255, 100, 150, 0.4);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 100, 150, 0.2);
  opacity: 1;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.gallery-dots .gallery-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 100, 150, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-dots .gallery-dot.active {
  background: #FF6496;
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-dots .gallery-dot:hover {
  background: rgba(255, 100, 150, 0.7);
  transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
  .gallery-carousel-container {
    max-width: 100%;
    margin: 1rem auto;
  }
  
  .gallery-image-container {
    height: 300px;
  }
  
  .gallery-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(255, 100, 150, 0.15);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.6;
  }
  
  .gallery-btn:hover {
    background: rgba(255, 100, 150, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 0.9;
  }
  
  .gallery-prev {
    left: 15px;
  }
  
  .gallery-next {
    right: 15px;
  }
  
  .gallery-overlay {
    padding: 1.5rem;
  }
  
  .gallery-title {
    font-size: 1.25rem;
  }
  
  .gallery-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-image-container {
    height: 250px;
  }
  
  .gallery-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
    background: rgba(255, 100, 150, 0.1);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.5;
  }
  
  .gallery-btn:hover {
    background: rgba(255, 100, 150, 0.25);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 0.8;
  }
  
  .gallery-prev {
    left: 10px;
  }
  
  .gallery-next {
    right: 10px;
  }
  
  .gallery-overlay {
    padding: 1rem;
  }
  
  .gallery-title {
    font-size: 1.1rem;
  }
  
  .gallery-description {
    font-size: 0.85rem;
  }
}

/* Estilos para la lista ordenada de servicios */
.services-ordered-list {
  list-style: none;
  counter-reset: service-counter;
  padding: 0;
  margin: 0;
}

.services-ordered-list li {
  counter-increment: service-counter;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: default;
}

.services-ordered-list li::before {
  content: counter(service-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #FF6496;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.service-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 4px;
}

.service-description {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  line-height: 1.3;
}

.navbar-dropdown-list .service-description {
  color: #f2f2f2;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.72), 0 0 12px rgba(255, 100, 150, 0.2);
}

/* Estilo para el enlace de solicitar turno */
.solicitar-link {
  margin-top: 15px;
}

.solicitar-link .button-link-box-move div:first-child {
  color: #b8265a !important;
}

.solicitar-link .button-link-text-absolute {
  color: #b8265a !important;
}

.solicitar-link:hover .button-link-box-move div:first-child {
  color: #a01e4a !important;
}

.solicitar-link:hover .button-link-text-absolute {
  color: #a01e4a !important;
}

/* Boton de cierre del dropdown de servicios */
.services-close-btn {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-block;
  background: #ff6496;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.services-close-btn:hover {
  background: #e95587;
}

.navbar-dropdown .navbar-dropdown-list {
  position: relative;
}

/* Floating social buttons (Instagram + WhatsApp) */
.floating-socials {
  position: fixed;
  right: 20px;
  bottom: 150px;
  z-index: 998;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.floating-socials .floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-socials .floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.floating-socials .floating-btn:focus,
.floating-socials .floating-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.9);
  outline-offset: 3px;
}

.floating-socials .floating-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.floating-socials .floating-btn.instagram i {
  font-size: 24px;
  color: #ffffff;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.floating-socials .floating-btn.instagram img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.floating-socials .floating-btn.whatsapp {
  background-color: #25d366;
  color: #fff;
}

.floating-socials .floating-btn.whatsapp i {
  font-size: 24px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .floating-socials {
    right: 15px;
    bottom: 5px;
    gap: 8px;
  }

  .floating-socials .floating-btn {
    width: 42px;
    height: 42px;
  }

  .floating-socials .floating-btn.whatsapp {
    position: relative;
    right: 7px;
  }
}

/* Estilos para la lista horizontal de servicios */
.services-horizontal-list {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  margin: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.services-container {
  display: flex;
  gap: 20px;
  min-width: max-content;
  padding: 0 10px;
  width: max-content;
}

.service-item-horizontal {
  flex: 0 0 280px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 100, 150, 0.1);
  position: relative;
  overflow: hidden;
}

.service-item-horizontal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6496, #FF8FA3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-item-horizontal:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 100, 150, 0.2);
  border-color: rgba(255, 100, 150, 0.3);
}

.service-item-horizontal:hover::before {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: 15px;
  position: relative;
}

.service-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #FF6496;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.service-item-horizontal:hover .service-image {
  transform: scale(1.1);
  filter: grayscale(0%);
  border-color: #FF8FA3;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Responsive design para servicios horizontales */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
  .services-horizontal-list {
    padding: 15px 0;
    margin: 15px 0;
  }
  
  .services-container {
    gap: 18px;
    padding: 0 8px;
  }
  
  .service-item-horizontal {
    flex: 0 0 260px;
    padding: 22px 18px;
  }
  
  .service-image {
    width: 75px;
    height: 75px;
  }
  
  .service-title {
    font-size: 1.05rem;
  }
  
  .service-description {
    font-size: 0.88rem;
  }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
  .services-horizontal-list {
    padding: 12px 0;
    margin: 12px 0;
  }
  
  .services-container {
    gap: 15px;
    padding: 0 5px;
  }
  
  .service-item-horizontal {
    flex: 0 0 220px;
    padding: 20px 15px;
  }
  
  .service-image {
    width: 65px;
    height: 65px;
  }
  
  .service-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .service-description {
    font-size: 0.85rem;
  }
}

/* Móviles grandes (600px y menos) */
@media (max-width: 600px) {
  .services-horizontal-list {
    padding: 10px 0;
    margin: 10px 0;
  }
  
  .services-container {
    gap: 12px;
    padding: 0 3px;
  }
  
  .service-item-horizontal {
    flex: 0 0 190px;
    padding: 18px 12px;
  }
  
  .service-image {
    width: 60px;
    height: 60px;
  }
  
  .service-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .service-description {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

/* Móviles medianos (480px y menos) */
@media (max-width: 480px) {
  .services-horizontal-list {
    padding: 8px 0;
    margin: 8px 0;
  }
  
  .services-container {
    gap: 10px;
    padding: 0;
  }
  
  .service-item-horizontal {
    flex: 0 0 170px;
    padding: 15px 10px;
  }
  
  .service-image {
    width: 55px;
    height: 55px;
  }
  
  .service-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .service-description {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

/* Móviles pequeños (360px y menos) */
@media (max-width: 360px) {
  .services-horizontal-list {
    padding: 5px 0;
    margin: 5px 0;
  }
  
  .services-container {
    gap: 8px;
    padding: 0;
  }
  
  .service-item-horizontal {
    flex: 0 0 150px;
    padding: 12px 8px;
  }
  
  .service-image {
    width: 50px;
    height: 50px;
  }
  
  .service-title {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .service-description {
    font-size: 0.7rem;
    line-height: 1.1;
  }
}

/* Pantallas muy pequeñas (320px y menos) */
@media (max-width: 320px) {
  .services-container {
    gap: 6px;
  }
  
  .service-item-horizontal {
    flex: 0 0 140px;
    padding: 10px 6px;
  }
  
  .service-image {
    width: 45px;
    height: 45px;
  }
  
  .service-title {
    font-size: 0.8rem;
  }
  
  .service-description {
    font-size: 0.65rem;
  }
}

/* Scrollbar personalizada para todos los dispositivos */
.services-horizontal-list::-webkit-scrollbar {
  height: 6px;
}

.services-horizontal-list::-webkit-scrollbar-track {
  background: rgba(255, 100, 150, 0.1);
  border-radius: 3px;
}

.services-horizontal-list::-webkit-scrollbar-thumb {
  background: rgba(255, 100, 150, 0.4);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.services-horizontal-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 100, 150, 0.6);
}

/* Scrollbar para Firefox */
.services-horizontal-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 100, 150, 0.4) rgba(255, 100, 150, 0.1);
}

/* Mejoras específicas para escritorio */
@media (min-width: 769px) {
  .services-horizontal-list {
    cursor: grab;
    user-select: none;
  }
  
  .services-horizontal-list.active {
    cursor: grabbing;
  }
  
  .services-horizontal-list::-webkit-scrollbar {
    height: 8px;
  }
  
  .services-horizontal-list::-webkit-scrollbar-thumb {
    background: rgba(255, 100, 150, 0.5);
  }
  
  .services-horizontal-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 100, 150, 0.7);
  }
  
  /* Efecto visual durante el arrastre */
  .services-horizontal-list.active .service-item-horizontal {
    pointer-events: none;
    transition: none;
  }
  
  .services-horizontal-list.active .service-item-horizontal:hover {
    transform: none;
  }
}

/* Mejoras para scroll horizontal en móviles */
@media (max-width: 768px) {
  .services-horizontal-list::-webkit-scrollbar {
    height: 4px;
  }
  
  .services-horizontal-list::-webkit-scrollbar-track {
    background: rgba(255, 100, 150, 0.1);
    border-radius: 2px;
  }
  
  .services-horizontal-list::-webkit-scrollbar-thumb {
    background: rgba(255, 100, 150, 0.3);
    border-radius: 2px;
  }
  
  .services-horizontal-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 100, 150, 0.5);
  }
}

/* Optimización para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .services-horizontal-list {
    padding: 8px 0;
  }
  
  .service-item-horizontal {
    flex: 0 0 200px;
    padding: 15px 12px;
  }
  
  .service-image {
    width: 60px;
    height: 60px;
  }
}

/* Mejoras de accesibilidad y usabilidad */
@media (prefers-reduced-motion: reduce) {
  .service-item-horizontal {
    transition: none;
  }
  
  .service-item-horizontal:hover {
    transform: none;
  }
  
  .service-image {
    transition: none;
  }
  
  .service-item-horizontal:hover .service-image {
    transform: none;
  }
}

/* Modo oscuro (si se implementa en el futuro) */
@media (prefers-color-scheme: dark) {
  .service-item-horizontal {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(255, 100, 150, 0.2);
  }
  
  .service-title {
    color: #fff;
  }
  
  .service-description {
    color: #ccc;
  }
}

/* Centrar el menú de pestañas para PC y tablet */
.latest-episode-tab-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Asegurar que el contenedor padre también esté centrado */
.latest-episode-tab-menu[data-w-id] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Asegurar que las pestañas se distribuyan uniformemente */
.latest-episode-tab-menu .episode-tab-link {
  flex: 0 0 auto;
  margin: 0 8px;
  text-align: center;
}

/* Centrar el contenido interno de cada pestaña */
.latest-episode-tab-menu .episode-tab-link div {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive para tablet */
@media (max-width: 1024px) {
  .latest-episode-tab-menu {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .latest-episode-tab-menu .episode-tab-link {
    margin: 0 4px;
    text-align: center;
  }
}

/* Responsive para móviles - versión mejorada */
@media (max-width: 768px) {
  .latest-episode-tab-menu {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    overflow: visible;
  }
  
  .latest-episode-tab-menu .episode-tab-link {
    margin: 0 4px;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .latest-episode-tab-menu .episode-tab-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .latest-episode-tab-menu .episode-tab-link.w--current {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Móviles pequeños - scroll horizontal cuando sea necesario */
@media (max-width: 480px) {
  .latest-episode-tab-menu {
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }
  
  .latest-episode-tab-menu .episode-tab-link {
    margin: 0 3px;
    flex-shrink: 0;
    min-width: 70px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  /* Scrollbar personalizada para móviles pequeños */
  .latest-episode-tab-menu::-webkit-scrollbar {
    height: 2px;
  }
  
  .latest-episode-tab-menu::-webkit-scrollbar-track {
    background: rgba(255, 100, 150, 0.1);
  }
  
  .latest-episode-tab-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 100, 150, 0.3);
    border-radius: 1px;
  }
  
  .latest-episode-tab-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 100, 150, 0.5);
  }
}

/* Estilos para centrar y achicar las columnas de redes sociales */
.episode-hero-social-wrapper {
  gap: 30px;
}

.episode-hero-social-wrapper .episodes-social-link {
  flex: 0 0 auto;
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
  .episode-hero-social-wrapper {
    max-width: 100%;
    padding: 20px 30px;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .episode-hero-social-wrapper {
    padding: 16px 20px;
    gap: 20px;
    flex-direction: column;
  }
}

/* Testimonials siempre en fila horizontal (desktop/tablet/mobile) */
.section-testimonial .testimonial-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.section-testimonial .grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  width: max-content;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-testimonial .testimonial-column-01 {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
}

.section-testimonial .testimonial-card {
  flex: 0 0 320px;
  text-align: center;
}

.section-testimonial .testimonial-client-info-wrapper {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* CTA centrado: texto en el medio e imágenes equilibradas a los lados */
.global-cta .cta-content-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.global-cta .content-align-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

.global-cta .cta-form,
.global-cta .form {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.global-cta .cta-heading,
.global-cta .cta-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Más espacio abajo en el CTA para que las imágenes no lleguen al footer */
.global-cta .padding-primary {
  padding-bottom: clamp(140px, 18vw, 200px);
}

.global-cta .cta-image-right {
  top: 50%;
  bottom: auto !important;
  transform: translateY(calc(-50% - 100px));
  z-index: 1;
  pointer-events: none;
  right: -4% !important;
}