/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted-light: #6c757d;
    --text-muted-dark: #ced4da;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #1a1a1a;
    /* Fallback dark */
    color: #f8f9fa;
    /* Slightly off-white for better readability */
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

/* Background Image Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Imagenes/27972139_969311046556478_8197242938619601470_n.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

/* Dark Overlay Layer */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Stronger dark overlay */
    backdrop-filter: blur(8px);
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    /* Default white on dark bg */
}

/* Glassmorphism & Cards - Force Dark Text */
.card,
.modal-content,
.dropdown-menu,
.bg-light,
.bg-white {
    color: var(--text-color) !important;
}

/* Headings inside light containers must be dark */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6,
.amenity-item h5 {
    color: var(--secondary-color) !important;
}

/* Global text color overrides for dark backgrounds */
.text-dark {
    color: #e9ecef !important;
    /* Light grey instead of dark for dark background */
}

/* Ensure text inside light containers remains actually dark */
.card .text-dark,
.modal-content .text-dark,
.bg-light .text-dark,
.bg-white .text-dark {
    color: var(--text-color) !important;
}

/* Ensure muted text is visible on dark backgrounds */
.text-muted {
    color: var(--text-muted-dark) !important;
}

/* Inside light containers, muted text should be darker */
.card .text-muted,
.modal-content .text-muted,
.bg-light .text-muted,
.bg-white .text-muted {
    color: var(--text-muted-light) !important;
}

.card {
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .welcome-hero h1 {
        font-size: 2rem;
    }

    .amenity-item {
        width: 100px;
        margin: 10px;
        padding: 15px;
    }

    .amenity-item i,
    .amenity-item svg {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 20px;
    }

    /* Table Responsiveness */
    .table-responsive-mobile {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
}

/* Amenities Icons */
.amenity-item {
    display: inline-block;
    width: 140px;
    text-align: center;
    margin: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    vertical-align: top;
    color: var(--text-color);
    /* Dark text inside amenity item */
}

.amenity-item h5 {
    color: var(--secondary-color);
    /* Dark heading inside amenity item */
}

.amenity-item:hover {
    transform: translateY(-5px);
}

.amenity-item i,
.amenity-item svg {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    height: 3rem;
    width: 3rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.9);
    /* Darker for luxury feel */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #ecf0f1;
    /* Bright white/grey */
}

footer a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700 !important;
    /* Gold accent on hover */
    text-decoration: underline;
}

footer strong {
    color: var(--accent-color);
}

/* Ensure links inside cards (like contacto footer) are visible */
.card a {
    color: var(--accent-color) !important;
}

.card a:hover {
    color: #2980b9 !important;
}

/* Ensure links inside cards (like contacto footer) are visible */
.card a {
    color: var(--accent-color) !important;
}

.card a:hover {
    color: #2980b9 !important;
}

/* Dashboard Specifics */
.welcome-hero {
    /* Background removed to use global body background */
    background: transparent;
    color: white;
    padding: 2rem 1rem;
    border-radius: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.news-widget {
    max-height: 400px;
    overflow-y: auto;
}

.news-widget .list-group-item {
    border-left: 4px solid var(--accent-color);
    margin-bottom: 5px;
}

/* Modal Enhancements */
.glass-modal {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
}

.cursor-pointer {
    cursor: pointer;
}