/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

.fa-archive2:before {
    content: "\f041";
}

ul#menu-terminos-legales a {
    font-size: 18px;
    font-family: open-sans;
}

.rodajes-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.rodajes-filtro {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 16px;
    color: #111;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.rodajes-filtro:hover {
    background: rgba(0, 0, 0, 0.06);
}

.rodajes-filtro.is-active {
    background: #111;
    color: #fff;
}

.rodajes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .rodajes-grid  {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .rodajes-grid  {
        grid-template-columns: 1fr; 
    }
}

.rodajes-item {
    padding: 15px;
    transition: transform 0.3s ease;
}
.rodajes-item:hover {
    transform: translateY(-5px);
}
.rodajes-thumbnail img {
    width: 100%;
    height: auto;
}

.vt-iframe a {
    padding: 36px;
}

.wpcf7 select,
.cf7 input  {
    width: 100%;
    border-color: #9599A299;
}

input.wpcf7-form-control.wpcf7-submit {
    background: black;
    width: 100%;
    color: white;
}

input.wpcf7-form-control.wpcf7-submit:hover{
    background: white;
    color: black;
    border-color:black ;
}

span.wpcf7-list-item-label {
    font-size: 16px !important;

    a {
        font-weight: 600;
        text-decoration: underline;
    }
}

input[type="checkbox"] {
    zoom: 2;
}

.cf7 br {
    display: none;
}

.nosotros-card .uncell {
    padding: 18px !important;
}

.nosotros-card h4 {
    margin-top: 0px;
    line-height: normal;
    font-size: 20px;
}

#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#videoModal iframe {
    width: 90%;
    max-width: 800px;
    height: 56.25vw;
    max-height: 450px;
    border: none;
}

#closeModal {
    position: relative;
    top: -265px;
    left: 25px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    #videoModal iframe {
        height: 56.25vw;
        max-height: 360px;
    }
    
    #closeModal {
        font-size: 2rem;
        position: absolute;
        top: 28%;
        left: 92%;
    }
}

.swiper-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;

}

/* Todas las tarjetas del grid tienen que medir lo mismo, asi que el alto lo
   fija el contenedor del carrusel y no la imagen: si no, una foto con otra
   proporcion (avionetas llega a 2500x1667) descuadra su fila entera.
   La proporcion es la del catalogo (1200x860), de modo que la practica
   totalidad de las imagenes se ve completa y solo se recortan las excepciones.
   Donde no haya soporte de aspect-ratio se mantiene el comportamiento
   anterior: el grid se ve, simplemente con los altos desiguales. */
.location-item .swiper-container {
    aspect-ratio: 1200 / 860;
}

.location-item .swiper-wrapper,
.location-item .swiper-slide {
    height: 100%;
}

/* Las imagenes de los slides posteriores al primero se piden solo cuando el
   usuario se acerca a la tarjeta, asi que el hueco se ve un instante: un gris
   neutro evita el destello en blanco. */
.location-item .swiper-slide {
    background-color: #f1f1f1;
}

/* El enlace envuelve la imagen: tiene que ocupar el slide para poder estirarla. */
.location-item .swiper-slide > a {
    display: block;
    height: 100%;
}

.location-item .swiper-slide img {
    height: 100%;
}

/* Aviso de la tarjeta sin imagenes, centrado ahora que la caja tiene alto fijo. */
.location-item .swiper-slide > p {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 16px;
    text-align: center;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}

.location-item {
    box-shadow: 5px 8px 20px #e9e8e8;
    overflow: hidden;
    background: white; 
}

@media (max-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr; 
    }
}

.location-item h3 {
    margin-top: 10px;
    font-size: 18px;
}

.location-item img {
    max-width: 100%;
}

.content-location-card {
    padding: 10px;
}

.content-location-card a {
    font-size: 24px;
}

.content-location-card p {
    font-size: 14px;
    margin-top: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%; 
    z-index: 10;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    background-color: rgba(0, 0, 0, 0.5); 
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px; 
}

.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 16px;
}

.page-id-23 .locations-filter {
    display: none;
}

/* Selectores planos y separacion por margenes en lugar de anidamiento y gap:
   asi la barra se ve igual en navegadores antiguos, donde los botones sin
   estilar apareceran como botones grises del sistema. */
.locations-filter ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    margin: 0 0 22px;
    padding: 0;
}

.locations-filter li {
    list-style: none;
    white-space: nowrap;
    margin: 0 24px 8px 0;
}

.locations-filter button {
    min-height: 24px;
    padding: 6px 4px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.locations-filter button:hover {
    color: #000;
}

.locations-filter button.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.locations-filter button:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Donde se soporta, el anillo solo aparece al navegar con teclado. */
.locations-filter button:focus:not(:focus-visible) {
    outline: none;
}

/* Recuento de resultados: solo para lectores de pantalla. */
.locations-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Entrada escalonada del grid. Va en CSS para que las tarjetas terminen
   visibles aunque el JS no cargue; --i lo imprime el shortcode. */
@keyframes location-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
}

.locations-grid .location-item {
    animation: location-card-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    animation-delay: calc(min(var(--i, 0), 11) * 45ms);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Tras la primera interaccion manda el JS: si no, volver a mostrar una tarjeta
   filtrada dispararia otra vez la animacion de entrada. */
.locations-grid.is-interactive .location-item {
    animation: none;
}

.location-item.is-filtered-out {
    display: none;
}

.location-item:hover {
    transform: translateY(-4px);
    box-shadow: 5px 12px 28px #dedddd;
}

/* Swiper bloquea las flechas cuando la tarjeta tiene una sola imagen. */
.location-item .swiper-button-lock {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .locations-grid .location-item {
        animation: none;
        transition: none;
    }

    .location-item:hover {
        transform: none;
    }
}



ul#menu-principal a {
    position: relative;
    text-transform: initial;
    padding-left: 14px !important;
    margin-right: 12px;
}

ul#menu-principal .menu-item > a::after {
   content: '';
   position: absolute;
   bottom: 40px;
   left: 50%;
   transform: translateX(-50%);
   width: 0;
   height: 4px;
   background-color: #FBD057;
   transition: width 0.3s ease;
}

ul#menu-principal .menu-item > a:hover::after {
   width: 100%;
}

ul#menu-principal .menu-item.current-menu-item > a::after,
ul#menu-principal .menu-item.current_page_item > a::after,
ul#menu-principal .menu-item.page_item > a::after {
   width: 100%;
}

