:root { --bs-body-font-family: 'Poppins', sans-serif; --primary-color: #0d6efd; --light-bg: #f8f9fa; --dark-bg: #0b1120; }
[data-bs-theme="dark"] { --bs-body-bg: var(--dark-bg); --bs-body-color: #e1e9f4; }
body { transition: background-color 0.3s ease, color 0.3s ease; }
.navbar { background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.theme-toggle { cursor: pointer; font-size: 1.25rem; }
.hero-section { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 80vh; padding: 2rem 0; background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1530521954074-e64f6810b32d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80'); background-size: cover; background-position: center; color: white; }
.hero-section h1 { font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.search-container { position: relative; width: 100%; }
#search-box { border-radius: 50px; padding: 0.9rem 1.5rem; border: 2px solid transparent; font-size: 1.1rem; transition: all 0.3s ease; }
#search-box:focus { box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3); border-color: var(--primary-color); }
#search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 1000; margin-top: 8px; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-height: 400px; overflow-y: auto; display: none; }
#search-results .list-group-item { padding: 0.8rem 1.25rem; border: none; background-color: #fff; color: #212529; transition: background-color 0.2s ease; text-decoration: none; }
#search-results .list-group-item:hover { background-color: #f0f0f0; }
#search-results .item-code { font-weight: 600; color: var(--primary-color); background-color: rgba(13, 110, 253, 0.1); padding: 0.2rem 0.5rem; border-radius: 5px; font-size: 0.9em; }
[data-bs-theme="dark"] #search-results .list-group-item { background-color: #1c2a44; color: #e1e9f4; }
[data-bs-theme="dark"] #search-results .list-group-item:hover { background-color: #2a3a5a; }
.content-section { padding: 4rem 0; }
.monetization-widget { border: 2px dashed var(--primary-color); background-color: rgba(13, 110, 253, 0.05); padding: 1.5rem; border-radius: 0.75rem; }
[data-bs-theme="dark"] .monetization-widget { background-color: rgba(13, 110, 253, 0.1); }
.monetization-widget h4 i { color: var(--primary-color); }

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ajustamos la altura para que sea más flexible */
    min-height: 50vh; 
    padding: 4rem 1rem;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1530521954074-e64f6810b32d?auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative; /* Necesario para el crédito de la imagen */
}

/* =================================
   ESTILOS PARA TARJETAS DE DESTINO
   ================================= */
.destination-card-link {
    text-decoration: none;
    display: block; /* Asegura que el enlace ocupe toda la tarjeta */
    color: inherit;
}

.destination-card {
    border: none;
    overflow: hidden; /* Importante para el efecto de zoom */
    min-height: 350px;
    position: relative; /* Para el overlay */
}

.destination-card .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre toda la tarjeta sin deformarse */
    transition: transform 0.4s ease-in-out;
}

.destination-card:hover .card-img {
    transform: scale(1.05); /* Efecto de zoom sutil */
}

.destination-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.destination-card:hover .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
}

.destination-card .card-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.destination-card .card-text {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90%; /* Evita que el texto se pegue a los bordes */
}

.destination-card:hover .card-text {
    opacity: 1;
    transform: translateY(0);
}