/* ===============================  Productos   =============================== */


/* Grid principal */
.mi-listado-productos-catalogo {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin: 30px 0; }

/* Tarjeta producto */
.producto-catalogo {
    position: relative; background: #3c3b3b; border-radius: 12px; overflow: hidden; border: 1px solid #eee; text-align: center; transition: transform 0.35s, box-shadow 0.35s; }

.producto-catalogo:hover {
    transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }

/* Imagen */
.producto-img {
    position: relative; display: block; overflow: hidden; }

.producto-img img {
    width: 100%; display: block; transition: transform 0.35s, filter 0.35s; }

.producto-catalogo:hover .producto-img img {
    transform: scale(1.05); filter: brightness(0.85); }

/* Overlay iconos sobre la imagen (arriba derecha) */
.producto-acf-labels {
    position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 2; }

.producto-acf-labels span {
    display: flex; align-items: center; gap: 6px; background: rgba(23,173,0,0.9); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 8px; 
	transition: transform 0.3s, background 0.3s; }

.producto-acf-labels span i { font-size: 14px; }

.producto-acf-labels span:hover {
    transform: scale(1.05); background: #149200; }

/* Título debajo de la imagen */
.producto-title {
    font-size: 20px; font-weight: 600; color: #222; margin: 10px 10px 8px; position: relative; }

/* Iconos debajo del título (N° Camas) */
.producto-catalogo .producto-acf-labels-bajo {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }

.producto-catalogo .producto-acf-labels-bajo span {
    background: rgba(23,173,0,0.9); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }

.mi-listado-productos-catalogo {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    justify-items: center; /* esto centra los items en su columna */
}

/* Centrar último producto si queda solo en la fila */
.mi-listado-productos-catalogo > .producto-catalogo:nth-last-child(1):nth-child(3n+1) {
	grid-column: 2; /* mover al centro */
}

/* Responsive */
@media (max-width: 1024px) {
    .mi-listado-productos-catalogo {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
}

@media (max-width: 768px) {
    .mi-listado-productos-catalogo {
        grid-template-columns: 1fr; gap: 20px; }
}

/* /// */

/* GRID PRINCIPAL DE PRODUCTOS RELACIONADOS */
.mi-listado-productos-relacionados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    justify-items: center;
}

#productos-relacionados {
    position: relative;
}

/* CADA PRODUCTO */
.producto-catalogo-relacionados {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.35s, box-shadow 0.35s;
}
.producto-catalogo-relacionados:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.producto-catalogo-relacionados .producto-img img {
    width: 100%; height: auto; display: block; transition: transform 0.35s, filter 0.35s;
}
.producto-catalogo-relacionados:hover .producto-img img {
    transform: scale(1.05); filter: brightness(0.9);
}
.producto-catalogo-relacionados .producto-acf-labels {
    position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; z-index: 2;
}
.producto-catalogo-relacionados .producto-acf-labels span {
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,123,255,0.9); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px;
    transition: transform 0.3s, background 0.3s;
}
.producto-catalogo-relacionados .producto-acf-labels span:hover {
    transform: scale(1.05); background: #0056b3;
}
.producto-catalogo-relacionados .producto-title {
    font-size: 18px; font-weight: 600; color: #222; margin: 10px 10px 8px;
}

/* BOTONES */
.ver-mas-wrapper { width: 100%; text-align: center; margin-top: 15px; position: relative; }
.ver-mas-wrapper button { padding: 8px 20px; margin: 0 5px; background: #007bff; color: #fff; border: none; border-radius: 5px; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.ver-mas-wrapper button:hover { background: #0056b3; transform: translateY(-2px); }
.ver-mas-wrapper button:disabled { background: #ccc; cursor: default; }

/* ===== SPINNER PRODUCTOS RELACIONADOS ===== */

.ver-mas-wrapper {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

/* Contenedor del spinner */
#spinner-relacionados {
    display: none;
    margin-top: 10px;              /* 👈 separación del botón */
    text-align: center;
}

/* Spinner visual (mismos colores CF7) */
.spinner-relacionados {
    display: inline-block;         /* 👈 CLAVE */
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;     /* fondo */
    border-top: 4px solid #17ad00; /* verde CF7 */
    border-radius: 50%;
    animation: spin-relacionados 0.9s linear infinite;
}

/* Animación correcta */
@keyframes spin-relacionados {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

}

/* =====================================================
   BUSCADOR DISPONIBILIDAD – DISEÑO FINAL
===================================================== */
/* Fondo buscador disponibilidad (YITH ID 914) */
.yith-wcbk-booking-search-form-914,
.yith_wcbk_booking_search_form_widget-914 {
	background: none;
    background-color: #eaf8f9 !important; /* fondo visible */
    color: #333333 !important;

    padding: 25px 30px;
    border-radius: 20px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

    display: block;
}
