/* Turistéalo - Estilos personalizados */

:root {
    --color-primary: #23b398;
    --color-secondary: #0875a6;
    --color-accent: #e9b242;
    --color-magenta: #c83084;
    --color-bg-light: #eee9ea;
    --color-dark: #050505;
    --color-green-dark: #4a776f;
    --color-purple: #702963;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-dark);
    background-color: white;
}

main {
    margin-top: 0;
    margin-bottom: 0;
    background: white;
    padding-top: 0;
    padding-bottom: 0;
}

main + .footer,
main ~ .footer {
    margin-top: 0 !important;
}

/* Área de contenido admin - sin fondo blanco forzado */
.col-md-9.col-lg-10,
.col-md-9,
.col-lg-10 {
    background: transparent !important;
}

/* Fondo sutil para área privada */
.admin-bg {
    background: #f8f9fa;
    min-height: calc(100vh - 76px);
}

body.admin-page {
    background: #f8f9fa;
}

/* Navbar */
.navbar {
    background-color: white !important;
    margin-bottom: 0 !important;
}

.navbar + main,
.navbar ~ main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: var(--color-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--color-magenta) !important;
}

/* Botones de autenticación */
.btn-auth {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

.btn-register {
    background-color: var(--color-primary);
    color: white !important;
    border: 2px solid var(--color-primary);
}

.btn-register,
.btn-register span,
.btn-register i {
    color: white !important;
}

.btn-register:hover {
    background-color: var(--color-magenta);
    border-color: var(--color-magenta);
    color: white !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-register:hover span,
.btn-register:hover i {
    color: white !important;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
}

/* Avatar de usuario */
.user-avatar {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.user-avatar i {
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .user-avatar i {
    transform: scale(1.1);
    color: var(--color-magenta);
}

/* Submenús anidados */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: 0.125rem;
    min-width: 200px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-right: 2rem;
    text-align: left;
}

.dropdown-submenu > .dropdown-item::after {
    display: none;
}

.dropdown-submenu > .dropdown-item i.fa-chevron-right {
    margin-left: auto;
    opacity: 0.6;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.dropdown-submenu > .dropdown-item:hover i.fa-chevron-right {
    opacity: 1;
}

.dropdown-submenu > .dropdown-item i:first-child {
    flex-shrink: 0;
}

/* Hover para dropdowns principales */
.dropdown-hover:hover > .dropdown-menu {
    display: block;
}

/* Ajustes para submenús en móvil */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        margin-left: 1rem;
        background-color: rgba(0,0,0,0.05);
        border: none;
        box-shadow: none;
    }
    
    .dropdown-submenu > .dropdown-item::after {
        display: inline-block;
    }
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--color-magenta);
    border-color: var(--color-magenta);
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-warning {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #050505;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-magenta) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.has-background-image::before {
    background: rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero .btn {
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.hero .btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Webcam en hero */
.hero-webcam {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.hero-webcam iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-webcam iframe {
        height: 250px;
    }
}

/* Hero Slider de imágenes */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay específico para el slider - Contraste moderado */
.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(35, 179, 152, 0.6) 0%, rgba(8, 117, 166, 0.5) 50%, rgba(200, 48, 132, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Añadir sombra adicional al texto del hero */
.hero.has-slider h1,
.hero.has-slider p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Asegurar que el contenido del hero esté encima del slider */
.hero.has-slider {
    background: none !important;
}

.hero.has-slider .container {
    position: relative;
    z-index: 2;
}

.hero.has-slider::before {
    display: none;
}

/* Search Bar */
.search-bar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: none;
    height: auto;
    margin-bottom: 0;
    background: transparent;
}

.card.shadow-sm {
    box-shadow: none;
    background: transparent;
}

/* Cards en admin */
.admin-bg .card,
.col-md-9 .card,
.col-lg-10 .card {
    margin-bottom: 0;
    border: none;
    background: transparent;
}

/* Cards en admin - sin bordes, sin sombras */
.admin-bg .card-body,
.col-md-9 .card-body,
.col-lg-10 .card-body {
    padding: 1.5rem;
    padding-bottom: 2rem;
    border: none;
    background: white;
    border-radius: 0;
}

.admin-bg .card-header,
.col-md-9 .card-header,
.col-lg-10 .card-header {
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Mantener cards normales fuera del admin */
body:not(.admin-bg) .card {
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

body:not(.admin-bg) .card-body {
    padding: 1.5rem;
}

.card:hover {
    box-shadow: 0 5px 24px rgba(0,0,0,0.16);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--color-dark);
}

.card-text {
    color: #666;
}

/* Category Cards */
.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(35, 179, 152, 0.2);
}

.category-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover i {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.category-card h5 {
    font-weight: 600;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.category-card:hover h5 {
    color: var(--color-secondary);
}

/* Stars Rating */
.stars {
    display: inline-block;
}

.stars i {
    font-size: 1rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.badge-primary {
    background-color: var(--color-primary);
}

.badge-secondary {
    background-color: var(--color-secondary);
}

.badge-warning {
    background-color: var(--color-accent);
    color: #050505;
}

.badge-magenta {
    background-color: var(--color-magenta);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    /* Sin movimiento en hover */
}

/* Footer */
.footer {
    background-color: var(--color-dark) !important;
    margin-top: 0 !important;
}

.footer h5 {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--color-primary) !important;
}

.social-links a {
    transition: transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Establishment Detail */
.establishment-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.establishment-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(35, 179, 152, 0.25);
}

/* Evitar movimientos en elementos de formulario al hacer hover */
.form-control:hover,
.form-select:hover,
.input-group:hover,
.input-group-text:hover {
    transform: none !important;
    transition: none !important;
}

/* Prevenir movimientos en hover en elementos comunes */
.card:hover,
.btn:hover,
a:hover,
.category-card:hover,
.news-article:hover {
    transform: none !important;
}

/* Admin Panel */
.admin-bg {
    background: white;
    min-height: calc(100vh - 76px);
    padding-bottom: 0;
}

.admin-bg .row {
    margin-bottom: 0;
}

/* Asegurar fondo blanco en área de contenido admin */
.admin-bg .col-md-9,
.admin-bg .col-lg-10,
.col-md-9.col-lg-10 {
    background: transparent !important;
    padding-bottom: 4rem !important;
    min-height: calc(100vh - 76px);
}

/* Admin Main Content */
.admin-main-content {
    margin-left: 280px;
    min-height: calc(100vh - 76px);
    background: #f8f9fa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-main-content.expanded {
    margin-left: 80px;
}

/* Admin Topbar */
.admin-topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 76px;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-toggle {
    padding: 0.625rem 0.75rem;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.3s ease;
    border-radius: 10px;
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.topbar-title h5 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.3px;
}

.topbar-user {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.topbar-user i {
    font-size: 1.375rem;
    color: var(--color-primary);
}

/* Admin Content Wrapper */
.admin-content-wrapper {
    padding: 2rem;
    min-height: calc(100vh - 76px - 65px);
    background: #f8f9fa;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar-overlay.show {
        display: block;
    }
}

/* Mejoras visuales adicionales para el sidebar */
.admin-sidebar .nav-link.active .link-text {
    font-weight: 600;
}

/* Animación suave para el colapso */
.admin-sidebar-wrapper,
.admin-sidebar,
.admin-main-content,
.link-text,
.brand-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de brillo en hover para iconos */
.admin-sidebar .nav-link:hover i {
    filter: drop-shadow(0 0 8px rgba(35, 179, 152, 0.5));
}

/* Estilos especiales para enlaces de acción (después del hr) */
.admin-sidebar hr ~ .nav-link {
    opacity: 0.8;
    font-size: 0.875rem;
}

.admin-sidebar hr ~ .nav-link:hover {
    opacity: 1;
}

/* Scrollbar personalizado para todo el admin */
.admin-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.admin-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.admin-content-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.admin-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Admin Sidebar Wrapper */
.admin-sidebar-wrapper {
    position: fixed;
    left: 0;
    top: 76px;
    width: 280px;
    height: calc(100vh - 76px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-wrapper.collapsed {
    width: 80px;
}

.admin-sidebar {
    background: linear-gradient(135deg, #050505 0%, #0c1116 100%);
    color: #e5e7eb;
    height: 100%;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    border-right: 1px solid rgba(35, 179, 152, 0.1);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 280px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: 80px;
}

.admin-sidebar.collapsed .link-text,
.admin-sidebar.collapsed .brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.admin-sidebar.collapsed .nav-link i {
    margin-right: 0;
}

.admin-sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar-header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(35, 179, 152, 0.08);
    position: relative;
    z-index: 1;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.sidebar-brand i {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.brand-text {
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Admin Dashboard - Header */
.dashboard-header-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.dashboard-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
}

.dashboard-main-title i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.dashboard-subtitle {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
}

.dashboard-filter-alert {
    background: rgba(35, 179, 152, 0.08);
    border-left: 3px solid var(--color-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--color-secondary);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Filtros de fecha */
.filter-buttons-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1.5px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    background: white;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(35, 179, 152, 0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(35, 179, 152, 0.25);
}

.filter-btn.active:hover {
    background: var(--color-green-dark);
    box-shadow: 0 3px 8px rgba(35, 179, 152, 0.3);
}

.filter-btn i {
    font-size: 0.8125rem;
}

/* Tarjetas de Métricas */
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%;
    min-height: 140px;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

.metric-card-primary {
    border-top-color: var(--color-primary);
}

.metric-card-secondary {
    border-top-color: var(--color-secondary);
}

.metric-card-accent {
    border-top-color: var(--color-accent);
}

.metric-card-magenta {
    border-top-color: var(--color-magenta);
}

.metric-card-warning {
    border-top-color: var(--color-accent);
}

.metric-card-info {
    border-top-color: var(--color-secondary);
}

.metric-card-purple {
    border-top-color: var(--color-purple);
}

.metric-icon-wrapper {
    flex-shrink: 0;
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.625rem;
    flex-shrink: 0;
}

.metric-icon.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-green-dark));
}

.metric-icon.bg-secondary {
    background: linear-gradient(135deg, var(--color-secondary), #065a7a);
}

.metric-icon.bg-accent {
    background: linear-gradient(135deg, var(--color-accent), #d4a038);
}

.metric-icon.bg-magenta {
    background: linear-gradient(135deg, var(--color-magenta), #a02466);
}

.metric-icon.bg-warning {
    background: linear-gradient(135deg, var(--color-accent), #d4a038);
}

.metric-icon.bg-info {
    background: linear-gradient(135deg, var(--color-secondary), #065a7a);
}

.bg-accent {
    background-color: var(--color-accent) !important;
}

.bg-magenta {
    background-color: var(--color-magenta) !important;
}

.metric-icon.bg-purple {
    background: linear-gradient(135deg, var(--color-purple), #502045);
}

.metric-content {
    flex-grow: 1;
}

.metric-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #6c757d;
    margin-bottom: 0;
}

.metric-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.metric-subtitle {
    font-size: 0.875rem;
    color: #868e96;
    display: block;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-card-header {
    padding: 1.25rem 1.5rem;
    color: white;
    border: none;
}

.dashboard-card-header.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-green-dark)) !important;
}

.dashboard-card-header.bg-secondary {
    background: linear-gradient(135deg, var(--color-secondary), #065a7a) !important;
}

.dashboard-card-header h5 {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.dashboard-card-header .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.dashboard-card-body {
    padding: 0;
    flex-grow: 1;
    background: white;
}

.dashboard-card-body .table-responsive {
    padding: 0;
}

.dashboard-card-body .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-card-body .table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-card-body .table thead th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 1rem 1.5rem;
    border: none;
    white-space: nowrap;
}

.dashboard-card-body .table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9375rem;
}

.dashboard-card-body .table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-card-body .table tbody tr:hover {
    background-color: #f8f9fa;
}

.dashboard-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.dashboard-card-footer .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 6px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
    color: #dee2e6;
}

.empty-state p {
    font-size: 0.9375rem;
    color: #868e96;
    margin: 0;
}

.table-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.table-link:hover {
    color: var(--color-primary);
}

.unread-row {
    background-color: rgba(233, 178, 66, 0.1) !important;
}

.alert-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.875rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 12px;
    border-left: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.admin-sidebar .nav {
    padding: 1rem 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-sidebar .nav::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar .nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar .nav::-webkit-scrollbar-thumb {
    background: rgba(35, 179, 152, 0.3);
    border-radius: 10px;
}

.admin-sidebar .nav::-webkit-scrollbar-thumb:hover {
    background: rgba(35, 179, 152, 0.5);
}

.admin-sidebar hr {
    margin: 1rem 1.5rem;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.admin-sidebar .nav-link:hover {
    background: rgba(35, 179, 152, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(35, 179, 152, 0.2), rgba(35, 179, 152, 0.15));
    color: #fff;
    box-shadow: 0 4px 12px rgba(35, 179, 152, 0.2);
}

.admin-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--color-primary);
    border-radius: 0 4px 4px 0;
}

.admin-sidebar .nav-link i {
    width: 24px;
    height: 24px;
    margin-right: 0.875rem;
    opacity: 0.85;
    text-align: center;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover i,
.admin-sidebar .nav-link.active i {
    opacity: 1;
    color: var(--color-primary);
    transform: scale(1.1);
}

.link-text {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-header-card {
    background: linear-gradient(135deg, var(--color-accent), var(--color-magenta));
    color: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.admin-metric-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
    background: white;
}

.admin-metric-card .card-title {
    color: var(--color-dark);
    font-weight: 600;
}

.admin-table-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.table thead {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(21,195,164,0.06);
}

.badge-soft {
    color: var(--color-primary);
    background: rgba(21,195,164,0.15);
    border: 1px solid rgba(21,195,164,0.3);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--color-primary);
    color: white;
}

/* Comments */
.comment {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--color-dark);
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
    padding: 0 0.5rem;
    font-weight: normal;
}

.breadcrumb-item a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item a i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.breadcrumb-item.active {
    color: var(--color-dark);
    font-weight: 500;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--color-primary);
    border: 1px solid #ddd;
    margin: 0 2px;
    border-radius: 5px;
}

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

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-bar {
        padding: 1rem;
    }
    
    .btn-auth {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .user-avatar {
        font-size: 1.25rem;
    }
    
    /* Dashboard responsive */
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .filter-buttons {
        width: 100%;
        margin-top: 1rem;
    }
    
    .filter-btn {
        flex: 1;
    }
    
    /* Admin responsive */
    .admin-sidebar-wrapper {
        position: fixed;
        left: -280px;
        width: 280px;
        z-index: 1050;
    }
    
    .admin-sidebar-wrapper.show {
        left: 0;
    }
    
    .admin-sidebar {
        width: 280px;
    }
    
    .admin-main-content {
        margin-left: 0;
    }
    
    .admin-topbar {
        padding: 0.75rem 1rem;
    }
    
    .topbar-user span {
        display: none;
    }
    
    .topbar-title h5 {
        font-size: 1rem;
    }
    
    .admin-content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    /* Ajustes del sidebar en móvil */
    .admin-sidebar .nav-link {
        margin: 0.25rem 0.75rem;
        padding: 0.875rem 1rem;
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
        justify-content: center;
    }
    
    .sidebar-brand {
        font-size: 1rem;
    }
    
    .dashboard-header-section {
        padding: 1rem;
    }
    
    .dashboard-main-title {
        font-size: 1.5rem;
    }
    
    .filter-buttons-wrapper {
        justify-content: flex-start;
    }
    
    .metric-card {
        min-height: 120px;
        padding: 1.5rem;
    }
    
    .filter-btn i {
        display: none;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Image Upload Preview */
.image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Contact Info */
.contact-info {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.contact-info i {
    color: var(--color-primary);
    margin-right: 10px;
}

/* News/Events */
/* Noticias destacadas */
.news-destacada {
    border: 3px solid var(--color-primary) !important;
    box-shadow: 0 8px 30px rgba(35, 179, 152, 0.3) !important;
}

.news-destacada .card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.news-destacada .card-text {
    font-size: 1.05rem;
}

.news-card {
    position: relative;
    overflow: hidden;
}

/* Estilos para página de noticia */
.content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content p {
    margin-bottom: 1.5rem;
}

/* Sidebar de noticias */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.2s;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
}

.list-group-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.list-group-item small {
    font-size: 0.85rem;
}

.news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Botones de registro en página de perfiles */
section a.btn[href*="registro"] {
    transition: all 0.3s ease;
}

/* Asegurar que los botones con gradiente siempre tengan texto blanco */
section a.btn[href="/registro.php"][style*="linear-gradient"],
section a.btn[href*="registro.php?tipo=propietario"][style*="linear-gradient"] {
    color: white !important;
}

section a.btn[href*="registro"]:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Botón de registro visitante con gradiente */
section a.btn[href="/registro.php"][style*="linear-gradient"]:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%) !important;
    color: white !important;
}

/* Botón de registro propietario con gradiente */
section a.btn[href*="registro.php?tipo=propietario"][style*="linear-gradient"]:hover {
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-accent) 100%) !important;
    color: white !important;
}

/* Sobrescribir padding-bottom de py-5 */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 0 !important;
}

/* Estilos personalizados para Select2 - Búsqueda de Propietarios */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: calc(1.5rem + 0.75rem + 2px) !important;
    min-height: calc(1.5rem + 0.75rem + 2px) !important;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    padding: 0;
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--color-primary);
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(35, 179, 152, 0.25);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5rem + 0.75rem + 2px) !important;
    padding-left: 0.75rem;
    padding-right: 30px;
    color: var(--color-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5rem + 0.75rem + 2px) !important;
    right: 10px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--color-primary) transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-top: -3px;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(35, 179, 152, 0.25);
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(35, 179, 152, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 25px;
    color: #6c757d;
    font-size: 18px;
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--color-primary);
}

