/* Base Layout & Reset */
html,
body {
    min-height: 100vh;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    /* Background general del sitio con capa de oscurecimiento suave para legibilidad */
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/img02bkg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect global */
    background-repeat: no-repeat;
    color: white;
}

.main-content {
    flex-grow: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.navbar-brand {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

p {
    margin-bottom: 0rem;
}

/* BRANDING COLORS */
:root {
    --primary-yellow: #fbb710;
    --secondary-black: #000000;
    --text-dark: #333333;
    --white: #ffffff;
}

/* Utility for semi-transparent dark background */
.bg-dark-glass {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    border-radius: 25px;
}

/* TYPOGRAPHY & LINKS */
.text-black {
    color: var(--secondary-black) !important;
}

/* Mejorar legibilidad de descripciones bajo los títulos en fondo oscuro */
h1 + p.text-muted,
h2 + p.text-muted {
    color: #dfdfdf !important;
}

a {
    color: #686868;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d99a00;
    /* Darker yellow */
    text-decoration: none !important;
}

/* BUTTONS */
.btn {
    box-shadow: 3px 3px 3px #00000050;
}

.btn-primary {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--secondary-black);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border-radius: 50px;
    /* Modern rounded buttons */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: var(--secondary-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251, 183, 16, 0.4);
}

.btn-outline-primary {
    color: var(--secondary-black);
    border-color: var(--secondary-black);
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-black);
    color: var(--primary-yellow);
    border-color: var(--secondary-black);
}

/* HERO SECTIONS */
.hero-full-width {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    padding: 60px 0;
    /* Reduced padding from 100px */
    width: 100%;
}

@media (max-width: 768px) {
    .hero-full-width {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance/compatibility */
        padding: 40px 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* FORMS & SEARCH */
.search-container-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Dark Glass Form Controls override */
.bg-dark-glass .form-control,
.bg-dark-glass .form-select,
.search-container-glass .form-control,
.search-container-glass .form-select {
    background-color: rgba(255, 255, 255, 0.39) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Fix for options in select elements - otherwise they might be white text on white bg or standard OS style */
.bg-dark-glass .form-select option,
.search-container-glass .form-select option {
    background-color: #333;
    /* Dark background for options */
    color: white;
    /* White text for options */
}

.bg-dark-glass .form-control:focus,
.search-container-glass .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 0.25rem rgba(251, 183, 16, 0.25);
    color: white !important;
}

.bg-dark-glass .form-floating>label,
.bg-dark-glass .form-floating>.form-control:focus~label,
.bg-dark-glass .form-floating>.form-control:not(:placeholder-shown)~label,
.bg-dark .form-floating>label,
.bg-dark .form-floating>.form-control:focus~label,
.bg-dark .form-floating>.form-control:not(:placeholder-shown)~label {
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent !important;
}

.bg-dark-glass .form-floating>label::after,
.bg-dark .form-floating>label::after {
    background-color: transparent !important;
}

.bg-dark-glass .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control-lg,
.form-select-lg {
    border-radius: 30px;
    border: 2px solid transparent;
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(251, 183, 16, 0.25);
}

/* CARDS */
.card-hover {
    transition: all 0.3s ease-in-out;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card-hover:hover .card-img-top {
    transform: scale(1.05);
}

/* GOOGLE MAPS */
#map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.bg-dark-glass .form-select option {
    /* Fondo oscuro para la lista de opciones */
    background: #212529;
    /* Un color oscuro estándar de Bootstrap */
    /* Texto blanco para las opciones, para asegurar el contraste */
    color: white;
}

.bg-dark-glass .form-select {
    color: #fbb710;
    /* Texto amarillo para la opción visible */
}

.form-select.bg-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fbb710' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    color: white;
    /* El texto de la opción seleccionada será blanco */
}

/* Estilo para las <option> dentro de ese select */
.form-select.bg-dark option {
    background: #343a40;
    /* Fondo oscuro para la lista desplegable */
    color: #fbb710;
    /* Texto AMARILLO para las opciones, para máximo contraste */
}

/* =================================================================== */
/* ADVERTISING RESPONSIVE STYLES */
/* =================================================================== */
.ad-horizontal-responsive {
    height: 180px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ad-horizontal-responsive {
        height: 100px; /* Altura reducida para que no se vea desproporcionado en móvil */
    }
}

.my-5 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.mt-5 {
    margin-top: 1rem !important;
}

/* ANIMATIONS */
@keyframes fadeInUpAd {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up-ad {
    animation: fadeInUpAd 0.8s ease-out forwards;
}
