/* Reset de enlaces */
a {
    text-decoration: none !important;
}

/* Variables CSS personalizadas */
:root {
    --color-primary: #1E40AF;
    --color-primary-dark: #1E3A8A;
    --color-secondary: #0D9488;
    --color-accent: #DC2626;
    --color-scroll-button: #0B5B82; /* Nuevo color para el botón de scroll */
}

/* Estilos para tarjetas de hoteles */
.hotel-card {
    transition: transform 300ms ease-out, box-shadow 300ms ease-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Grid de hoteles */
#hotels-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    align-items: stretch;
}

/* Imagen de la tarjeta */
.hotel-card .relative {
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #f3f4f6;
}

.hotel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-out;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hotel-card:hover img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.hotel-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.badge-destacado {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/hero.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
}

/* Call to action */
.cta-section {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../images/informativa.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Filtros */
.filtros-card {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transition: all 300ms ease-in-out;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.filtros-card:hover {
    box-shadow: 0 35px 60px -15px rgba(0,0,0,0.3);
}

/* Estilos para las estrellas de rating */
.rating-stars {
    color: #FCD34D;
    display: inline-flex;
}

/* Estilos para badges con blur */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Mobile menu */
.mobile-menu {
    transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
    max-height: 100vh; /* Asegura que el menú no exceda la altura de la pantalla */
    overflow-y: auto; /* Permite el scroll dentro del menú si el contenido es largo */
}

.mobile-menu.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
}

/* Overlay oscuro para imágenes de cabecera */
.hero-overlay-dark {
    background-color: rgba(0, 0, 0, 0.4); /* 40% de opacidad de negro */
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WordPress specific fixes */
.wp-block-image img {
    height: auto;
    max-width: 100%;
}

.alignfull {
    margin: 2rem calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* Estilos para alineación de imágenes en el contenido */
.entry-content .alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}

.entry-content .alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Asegurar que el contenedor del contenido no interfiera con los floats */
.entry-content {
    overflow: visible !important; /* Asegura que los floats no sean contenidos */
}

/* Estilos explícitos para encabezados dentro de .entry-content .prose */
.entry-content .prose h2 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: #1a202c; /* gray-900 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content .prose h3 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    color: #2d3748; /* gray-800 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content .prose h4 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #4a5568; /* gray-700 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content .prose h5 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #4a5568; /* gray-700 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content .prose h6 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #4a5568; /* gray-700 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

/* Ensure proper form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
/* Cierre de un bloque anterior que estaba mal */

/* Galería de fotos */
.hotel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Miniaturas en la tarjeta */
.hotel-card .thumbnail-gallery {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hotel-card .thumbnail {
    width: 48px;
    height: 48px;
    border: 2px solid white;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.hotel-card .thumbnail:hover {
    transform: scale(1.1);
    z-index: 20;
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile menu animation */
.mobile-menu {
    transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}

.mobile-menu.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

.mobile-menu:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
}

/* Estilos básicos para las imágenes */
.hotel-card img {
    max-width: 400px;
    height: 230px;
    object-fit: cover;
    background-color: #f3f4f6;
}

/* Fallback para imágenes que no cargan */
.hotel-card img:not([src]), 
.hotel-card img[src=""], 
.hotel-card img[src="#"] {
    display: none;
}

/* Contenedor de imágenes */
.hotel-card .flex-col {
    align-items: center;
}

/* Galería de fotos */
.hotel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 400px);
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    background-color: #f3f4f6;
    width: 400px;
    height: 230px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    display: block;
    width: 400px;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    backface-visibility: hidden;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Clase para reducir la altura de la sección de hoteles destacados */
.featured-hotels-compact {
    max-height: 150px; /* Altura reducida, ajusta según sea necesario */
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* Transición suave */
}

/* Estilos para el botón Scroll-to-top */
#scroll-to-top {
    background-color: #0B5B82; /* Color de fondo solicitado */
}

#scroll-to-top:hover {
    background-color: #084A6A; /* Tono más oscuro para el hover */
}

/*
 * Aplica estilos solo a las imágenes de contenido en las entradas de blog estándar (post).
 * Esto evita afectar a las galerías de hoteles u otras imágenes personalizadas.
 * La regla excluye explícitamente la imagen destacada (que tiene la clase .wp-post-image).
 */
.post-type-post .entry-content img[class*="wp-image-"]:not(.wp-post-image) {
    height: auto;
    max-width: 100%;
}

/* Estilos para la paginación del blog */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    color: #374151;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #F3F4F6;
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .page-numbers.dots {
    border: none;
}
