/* ...existing code... */

.main-navigation-bg .logo .logo-dark {
  height: 30px;
}

.logo .logo-light {
  height: 30px;
}

.text-left {
  text-align: left !important;
  padding: 0 25px;
}

/* Estilos para las imágenes de logos institucionales en el footer */
.footer-logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.footer-logo-item {
  flex: 0 1 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo-img {
  max-width: 100px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(10%);
  transition: filter 0.3s;
}
.footer-logo-img:hover {
  filter: none;
}
.main-navigation-bg .logo .logo-dark {
    height: 30px;
}

.logo .logo-light {
  height: 30px;
}

/* PhotoSwipe - Fix de distorsión de imágenes */
/* Forzar que las imágenes mantengan su proporción original */
.pswp__img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: absolute !important;
}

/* Asegurar que el contenedor permita centrado correcto */
.pswp__zoom-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Prevenir distorsión en el contenedor de zoom */
.pswp__container {
    backface-visibility: hidden !important;
}

/* Mejorar la calidad de renderizado */
.pswp__img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    backface-visibility: hidden !important;
}

/* Para imágenes de placeholder/miniatura */
.pswp__img--placeholder {
    object-fit: cover !important;
}

/* Forzar fit correcto para diferentes tamaños de pantalla */
@media screen and (max-width: 1024px) {
    .pswp__img {
        max-width: 95vw !important;
        max-height: 95vh !important;
    }
}

@media screen and (max-width: 768px) {
    .pswp__img {
        max-width: 90vw !important;
        max-height: 90vh !important;
    }
}

/* Galería de miniaturas - mejorar visualización */
.legendary-gallery figure img.img-responsive {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

/* Hover effect mejorado para miniaturas */
.legendary-gallery figure {
    overflow: hidden !important;
}

.legendary-gallery figure img {
    transition: transform 0.3s ease !important;
}

.legendary-gallery figure:hover img {
    transform: scale(1.05) !important;
}

/* Asegurar que PhotoSwipe no fuerce dimensiones incorrectas */
.pswp__container,
.pswp__zoom-wrap {
    width: 100% !important;
    height: 100% !important;
}

/* Centrado perfecto de imágenes en PhotoSwipe */
.pswp__zoom-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Evitar deformación durante animaciones */
.pswp__img {
    will-change: transform !important;
    transform-origin: center center !important;
}

/* Mejorar la transición de apertura */
.pswp--animate_opacity .pswp__bg {
    opacity: 0 !important;
    transition: opacity 333ms cubic-bezier(.4,0,.22,1) !important;
}

.pswp--open .pswp__bg {
    opacity: 1 !important;
}

/* Fix específico para desktop - SOLUCIÓN DEFINITIVA */
@media screen and (min-width: 769px) {
    /* Centrar cada item */
    .pswp__item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100vh !important;
    }
    
    /* ANULAR COMPLETAMENTE las transformaciones de PhotoSwipe en zoom-wrap */
    .pswp__zoom-wrap {
        transform: none !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        max-width: 90vw !important;
        max-height: 90vh !important;
        margin: 0 auto !important;
    }
    
    /* Forzar anulación de transformaciones inline con mayor especificidad */
    .pswp--open .pswp__zoom-wrap[style*="transform"] {
        transform: none !important;
    }
    
    .pswp--open .pswp__item .pswp__zoom-wrap {
        transform: none !important;
        position: static !important;
    }
    
    /* Asegurar centrado de imágenes */
    .pswp__zoom-wrap .pswp__img {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Regla nuclear para anular CUALQUIER transform inline */
    .pswp--open .pswp__zoom-wrap[style] {
        transform: none !important;
        left: auto !important;
        top: auto !important;
        position: static !important;
    }
    
    /* Especificidad máxima para sobrescribir estilos inline de PhotoSwipe */
    div.pswp.pswp--open div.pswp__item div.pswp__zoom-wrap[style*="transform"] {
        transform: none !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important;
    }
    
    /* Asegurar que funcione incluso con !important en inline styles */
    .pswp--open .pswp__container .pswp__item .pswp__zoom-wrap {
        transform: none !important;
        position: static !important;
    }
}


.text-left {
    text-align: left !important;
    padding: 0 25px;
}

.text-left-p-0 {
    text-align: left !important;
}

.p-3 {
    padding: 1rem !important;
}

.more-wraper-center {
  width: 320px !important;
  max-width: 320px;
  height: 320px;
}

.more-button-txt-center {
  top: 160px;
  left: 160px;
  width: 320px !important;
  font-size: 40px;
}

.fs-menu {
  font-size: 30px;
}

.text-red {
    color: #ff0000 !important;
}

.text-white {
    color: #ffffff !important;
}

.fs-1 {
    font-size: 1.25rem !important;
}

.fs-h2 {
    font-size: 35px;
}

.icono-allergenics {
  width: 25px;
  height: 25px;
}

.itemMenuAllergenics {
  margin-top: 10px;
  margin-bottom: 10px;
}

.p-0 {
    padding: 0 !important;
}

.m-0 {
    margin: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.text-price-menu{
    color: #5f5f5f !important;
}

.border-bottom {
    border-bottom: 1px solid #313131 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.hero-heading-light{
    color: #000 !important;
}

@supports ((text-stroke: 1px #fff) or (-webkit-text-stroke: 1px #fff)) {
  h2.hero-heading-light span {
    color: transparent;
    -webkit-text-stroke: 1px #000000;
    text-stroke: 1px #000000;
    text-shadow: none;
  }
}

.hero-subheading.hero-subheading-light {
    color: #333 !important; 
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.item-image-link {
  flex-shrink: 0;
  display: block;
}

.item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.item-image:hover {
  opacity: 0.85;
}

.item-content {
  flex: 1;
  min-width: 0;
}

@media only screen and (max-width: 640px) {
  .slick-slide {
    height: 600px;
  }
  .item {
    flex-direction: column;
    gap: 0;
  }
  .item-image-link {
    width: 100%;
  }
  .item-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
  }
  .item-wrapper {
    width: 100% !important;
  }
  .item-divider {
    border-bottom: none !important;
  }
}



.hero-subheading {
  text-transform: none;
  font-size: 22px;
}

.p-text {
  font-size: 22px;
  color: #ffffff !important;
}

.main-navigation-bg .main-navigation .navbar-nav li a {
  color: #ffffff !important; 
}

.contact-info-description p {
  color: #ffffff !important;
}

.scroll-container,
.scroll-area {
  width: 100vw;
  height: auto; /* Cambiado de 100vh a auto */
}

.scroll-container {
  overflow: auto;
  -webkit-scroll-snap-type: y mandatory;
      -ms-scroll-snap-type: y mandatory;
          scroll-snap-type: y mandatory;
}

.scroll-area {
  scroll-snap-align: start;
}

.scroll-container,
.scroll-area {
  margin: 0;
}

.scroll-area:nth-of-type(1) {
  background: transparent;
}

.scroll-area:nth-of-type(2) {
  background: transparent;
}

.scroll-area:nth-of-type(3) {
  background: transparent;
}

.scroll-area:nth-of-type(4) {
  background: transparent;
}
.scroll-area:nth-of-type(5) {
  background: transparent;
}
.scroll-area:nth-of-type(6) {
  background: transparent;
}
.scroll-area:nth-of-type(7) {
  background: transparent;
}
.scroll-area:nth-of-type(8) {
  background: transparent;
}
.scroll-area:nth-of-type(9) {
  background: transparent;
}
.scroll-area:nth-of-type(10) {
  background: transparent;
}

/* Solución para el acordeón de FAQ */
/* Eliminar la limitación de altura máxima del contenedor */
.services-wrapper {
  max-height: none !important; /* Eliminar la limitación de 400px */
  min-height: 400px; /* Mantener una altura mínima */
  height: auto !important; /* Permitir crecimiento automático */
}

/* Asegurar que el acordeón pueda expandirse correctamente */
.services-accordion {
  height: auto !important;
  overflow: visible !important;
}

/* Mejorar la transición del acordeón */
.services-accordion ul ul {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Asegurar que el contenedor padre también se ajuste */
.center-container,
.center-block {
  height: auto !important;
  min-height: auto !important;
}

/* Solucionar solapamiento del título con el acordeón */
.hero-heading.hero-heading-light.text-left {
  margin-bottom: 30px !important; /* Añadir espacio debajo del título */
  position: relative !important;
  z-index: 1 !important;
}

/* Asegurar que el acordeón tenga margen superior adecuado */
.services-wrapper {
  margin-top: 20px !important; /* Espacio superior adicional */
  padding-top: 15px !important; /* Padding interno superior */
  margin-bottom: 20px !important; /* Espacio inferior adicional */
  padding-bottom: 15px !important; /* Padding interno inferior */
}

/* Ajustar el espaciado del contenedor del acordeón */
.slick-left .blockquote {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  padding-top: 20px !important;
}


.services-accordion ul li span {
  font-size: 22px;
  text-transform: none;
}

.services-accordion ul ul li, .services-accordion ul ul li a {
  font-size: 20px;
}

.services-wrapper,
.services-accordion,
.center-container,
.center-block,
.slick-left .blockquote {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: relative !important;
}

.service-number {
  top: 30px;
}

.logo {
  padding-top: 25px;
}
.logo .logo-light {
  height: 55px;
}
.main-navigation-bg .logo {
  padding-top: 1px;
}
.main-navigation-bg .logo .logo-dark {
  height: 55px;
}
@media only screen and (max-width: 768px) {
  .logo {
    padding-top: 8px;
  }
}

.link-footer {
  color: #fff; 
  font-weight: 600; 
  font-size: 15px;
  text-transform: none;
}
.p-footer {
  text-transform: none; 
  color: #fff
}

.pt-3 {
    padding-top: 5.5rem !important;
}
.pb-3 {
    padding-bottom: 1.5rem !important;
}

.divider-l-m {
  height: 100px;
}

.p-piccola p {
  text-transform: none;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: normal;
  font-style: normal;
  font-weight: 400;
  text-align: left !important;
  padding: 0 25px;
  font-family: 'Montserrat';
}

@media only screen and (max-width: 768px) {
  .pt-3 {
    padding-top: 4.25rem !important;
  }
  .pb-3 {
    padding-bottom: 1.25rem !important;
  }
  .divider-l-m {
    height: 20px;
  }
  .navbar-toggle {
    font-family: 'Montserrat';
    font-weight: 700;
  }
}

@media (min-width: 768px) {
  .menu {
    grid-column-gap: 40px;
    grid-template-columns: repeat(1, 1fr);
  }
}

.grecaptcha-badge {
    display: none !important;
}