/* ============================================
   Portal de Clientes - Estilos Personalizados
   ============================================ */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ============================================
   NAVBAR PÚBLICO - Estilos consistentes con admin
   ============================================ */

.navbar-publico {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 120px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 0.5rem;
}

.navbar-publico .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    overflow: visible !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
}

.navbar-publico .navbar-collapse {
    overflow: visible !important;
    width: auto !important;
    flex-grow: 1;
    flex-basis: auto;
}

.navbar-publico .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-publico .navbar-nav.ms-auto {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.navbar-publico .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-publico .navbar-brand img {
    max-height: 120px;
    width: auto;
}

.navbar-publico .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.85) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-publico .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-publico .navbar-nav .nav-link.active {
    background: linear-gradient(45deg, #0d6efd, #6610f2);
    color: white !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Dropdown Menus */
.navbar-publico .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
    z-index: 1040;
}

.navbar-publico .dropdown-item {
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    margin: 0.125rem 0;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-publico .dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    transform: translateX(2px);
}

.navbar-publico .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Responsive - Medium Screens (Tablets) */
@media (max-width: 991px) {
    .navbar-publico {
        min-height: 80px !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 0.25rem;
    }

    .navbar-publico .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding-right: 0.25rem;
        padding-left: 0.25rem;
        flex-wrap: wrap;
    }

    .navbar-publico .navbar-brand {
        font-size: 1.2rem !important;
    }

    .navbar-publico .navbar-brand img {
        max-height: 70px !important;
    }

    .navbar-publico .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    .navbar-publico .navbar-nav.ms-auto {
        flex-shrink: 0 !important;
    }

    .navbar-publico .navbar-collapse {
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0.5rem;
        margin-top: 0;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        width: 100%;
        order: 3;
    }

    .navbar-publico .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-publico .navbar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-publico .dropdown-menu {
        background: rgba(248, 249, 250, 0.95);
        margin-left: 0;
        margin-top: 0.25rem;
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
    }
}

/* Responsive - Small Screens (Mobile) */
@media (max-width: 767px) {
    .navbar-publico {
        min-height: 70px !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 0.25rem;
    }

    .navbar-publico .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding-right: 0.25rem;
        padding-left: 0.25rem;
        flex-wrap: wrap;
    }

    .navbar-publico .navbar-brand {
        font-size: 1rem !important;
    }

    .navbar-publico .navbar-brand img {
        max-height: 55px !important;
    }

    .navbar-publico .navbar-nav .nav-link {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.8rem !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .navbar-publico .navbar-nav.ms-auto {
        flex-shrink: 0 !important;
    }

    .navbar-publico .dropdown-menu {
        min-width: 180px !important;
    }

    .navbar-publico .dropdown-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

/* Responsive - Extra Small Screens */
@media (max-width: 575px) {
    .navbar-publico {
        min-height: 60px !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 0.15rem;
    }

    .navbar-publico .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding-right: 0.15rem;
        padding-left: 0.15rem;
        flex-wrap: wrap;
    }

    .navbar-publico .navbar-brand {
        font-size: 0.9rem !important;
    }

    .navbar-publico .navbar-brand img {
        max-height: 45px !important;
    }

    .navbar-publico .navbar-nav .nav-link {
        padding: 0.25rem 0.35rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    .navbar-publico .navbar-nav.ms-auto {
        flex-shrink: 0 !important;
    }

    .navbar-publico .dropdown-menu {
        min-width: 160px !important;
        margin-left: 0.5rem !important;
    }

    .navbar-publico .dropdown-item {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

/* Focus and accessibility improvements */
.navbar-publico .nav-link:focus,
.navbar-publico .nav-link:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: none;
}

.navbar-publico .dropdown-item:focus,
.navbar-publico .dropdown-item:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

/* Animation for dropdown appearance */
.navbar-publico .dropdown-menu {
    animation: fadeInUp 0.2s ease-out;
}

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

/* Force navbar dropdowns to be above all content */
.navbar-publico .dropdown-menu {
    z-index: 9999 !important;
}

/* Ensure navbar is positioned correctly */
.navbar-publico .navbar-collapse {
    position: static;
}

.navbar-publico .navbar-nav .dropdown-menu {
    position: absolute;
}

/* Fix for specific Bootstrap conflicts */
.navbar-publico .nav-item .dropdown-menu {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.85) 0%, rgba(30, 58, 138, 0.85) 100%), url('/assets/images/fondo_home.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    min-height: 500px;
}

.hero-content {
    color: white;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.hero-main-btn,
.hero-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-main-btn {
    background: #ffffff;
    color: #1e3a8a;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(10, 18, 48, 0.2);
}

.hero-main-btn:hover {
    background: #f8fafc;
    color: #1e3a8a;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(10, 18, 48, 0.24);
}

.hero-ghost-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(6px);
}

.hero-ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 18, 48, 0.2);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.feature-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.feature-chip i {
    font-size: 1rem;
    color: #93c5fd;
    transition: color 0.2s ease;
}

.feature-chip:hover i {
    color: #bfdbfe;
}

.feature-chip--highlight {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

.feature-chip--highlight:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.6);
}

.feature-chip--highlight i {
    color: #86efac;
}

.feature-chip--highlight:hover i {
    color: #bbf7d0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Search Section */
.search-section {
    background: linear-gradient(180deg,
        rgba(45, 90, 39, 0.05) 0%,
        rgba(30, 58, 138, 0.05) 50%,
        #f8f9fa 100%);
    padding: 80px 0;
    position: relative;
}

/* Patrón decorativo sutil */
.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(45, 90, 39, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.search-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header de la tarjeta con gradiente */
.search-card::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #2d5a27 0%, #1e3a8a 100%);
}

.search-card .card-body {
    padding: 2.5rem;
}

.search-card .card-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.search-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2d5a27 0%, #1e3a8a 100%);
    border-radius: 2px;
}

.search-card .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.search-card .form-control,
.search-card .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.15);
    background: #ffffff;
    transform: translateY(-1px);
}

.d-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.d-grid .btn {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-card .btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.search-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
    background: linear-gradient(135deg, #366b2f 0%, #2542a0 100%);
}

.search-card .btn-outline-secondary {
    border-radius: 12px;
    border: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.search-card .btn-outline-secondary:hover {
    border-color: #2d5a27;
    color: #2d5a27;
    background: rgba(45, 90, 39, 0.05);
    transform: translateY(-2px);
}

/* Buscador Compacto en Hero Section */
.search-card-compact {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.search-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.search-card-compact .card-body {
    padding: 1.5rem;
}

.search-card-compact .card-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.search-card-compact .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

.search-card-compact .form-control,
.search-card-compact .form-select {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-card-compact .form-control:focus,
.search-card-compact .form-select:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.search-card-compact .btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-card-compact .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.search-card-compact .btn-outline-secondary {
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-color: #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
}

.search-card-compact .btn-outline-secondary:hover {
    border-color: #2d5a27;
    color: #2d5a27;
    background: rgba(45, 90, 39, 0.05);
    transform: translateY(-1px);
}

/* Ajustes responsive para el buscador compacto */
@media (max-width: 991px) {
    .search-card-compact {
        margin-top: 2rem;
    }
    
    .search-card-compact .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .search-card-compact .card-body {
        padding: 1rem;
    }
    
    .search-card-compact .card-title {
        font-size: 1.1rem;
    }
}

/* Results Section */
.results-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0;
    min-height: 400px;
}

.section-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #2d5a27 0%, #1e3a8a 100%);
    border-radius: 3px;
}

.complejo-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.complejo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Logo del complejo - Compacto */
.complejo-card-img {
    height: 120px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.complejo-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Banner como thumbnail de la tarjeta */
.complejo-card-img.has-banner {
    height: 175px;
    padding: 0;
    background: #1a1a2e;
}

.complejo-card-img.has-banner img {
    width: 100%;
    height: 100%;
    max-width: unset;
    max-height: unset;
    object-fit: cover;
    object-position: center;
}

.complejo-card-img--logo {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.complejo-card-img--logo img {
    width: 80px;
    height: 80px;
    max-width: unset;
    max-height: unset;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.complejo-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.complejo-card-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.complejo-card:hover .complejo-card-title {
    color: #1e3a8a;
}

.complejo-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.complejo-card-rating .rating-score {
    font-weight: 600;
    color: #2d3748;
    margin-left: 0.25rem;
}

.complejo-card-rating .rating-count {
    color: #718096;
    font-size: 0.75rem;
}

.complejo-card-info {
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.4;
}

.complejo-card-info i {
    color: #20c997;
    margin-right: 0.4rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.complejo-card-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.complejo-card-stat {
    text-align: center;
    flex: 1;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.complejo-card-stat:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.complejo-card-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d5a27;
    line-height: 1;
}

.complejo-card-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.complejo-card-footer {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.complejo-card-footer .btn {
    width: 100%;
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.complejo-card-footer .btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
}

.complejo-card-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

/* Animación de entrada para las tarjetas */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.complejo-card {
    animation: cardFadeIn 0.6s ease forwards;
}

.complejo-card:nth-child(1) { animation-delay: 0.1s; }
.complejo-card:nth-child(2) { animation-delay: 0.2s; }
.complejo-card:nth-child(3) { animation-delay: 0.3s; }
.complejo-card:nth-child(4) { animation-delay: 0.4s; }
.complejo-card:nth-child(5) { animation-delay: 0.5s; }
.complejo-card:nth-child(6) { animation-delay: 0.6s; }

/* Alertas mejoradas */
.results-section .alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.results-section .alert-info {
    background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%);
    color: #055160;
}

.results-section .alert i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Featured Section - Oculta por ahora */
.featured-section {
    display: none;
}

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

/* Pagination */
.pagination-container .pagination {
    gap: 4px;
    flex-wrap: wrap;
}

.pagination-container .page-item .page-link {
    margin: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    background-color: white;
    border: 2px solid #dee2e6;
    color: #2d5a27;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pagination-container .page-item .page-link:hover {
    background-color: #2d5a27;
    color: white;
    transform: translateY(-1px);
    border-color: #2d5a27;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.25);
}

.pagination-container .page-item.active .page-link {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
}

.pagination-container .page-item.active .page-link:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
}

.pagination-container .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

@media (max-width: 576px) {
    .pagination-container .page-item .page-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg,
        rgba(248, 249, 250, 0.5) 0%,
        #ffffff 50%,
        rgba(248, 249, 250, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo sutil para FAQ */
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(45, 90, 39, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(30, 58, 138, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.faq-section .section-title {
    text-align: center;
    padding-left: 0;
    margin-bottom: 2rem;
}

.faq-section .section-title::before {
    display: none;
}

.faq-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2d5a27 0%, #1e3a8a 100%);
    border-radius: 2px;
}

/* FAQ Tabs */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.faq-tabs .nav-item {
    flex: 0 0 auto;
}

.faq-tabs .nav-link {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-tabs .nav-link i {
    font-size: 1.1rem;
}

.faq-tabs .nav-link:hover {
    border-color: #2d5a27;
    color: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.15);
}

.faq-tabs .nav-link.active {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-accordion .accordion-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.faq-accordion .accordion-button {
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #2d5a27;
    font-size: 1.05rem;
    gap: 0.75rem;
    box-shadow: none;
}

.faq-accordion .accordion-button i {
    color: #20c997;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05) 0%, rgba(30, 58, 138, 0.05) 100%);
    color: #1e3a8a;
}

.faq-accordion .accordion-button:not(.collapsed) i {
    color: #1e3a8a;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232d5a27'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e3a8a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
    padding: 1rem 1.5rem;
    color: #495057;
    line-height: 1.6;
}

.faq-accordion .accordion-body p {
    margin-bottom: 1rem;
}

.faq-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-body ol,
.faq-accordion .accordion-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-accordion .accordion-body li {
    margin-bottom: 0.5rem;
}

.faq-accordion .accordion-body strong {
    color: #2d5a27;
    font-weight: 600;
}

/* Animación de entrada para las preguntas del acordeón */
@keyframes accordionSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-accordion .accordion-item {
    animation: accordionSlideIn 0.5s ease forwards;
}

.faq-accordion .accordion-item:nth-child(1) { animation-delay: 0.1s; }
.faq-accordion .accordion-item:nth-child(2) { animation-delay: 0.15s; }
.faq-accordion .accordion-item:nth-child(3) { animation-delay: 0.2s; }
.faq-accordion .accordion-item:nth-child(4) { animation-delay: 0.25s; }
.faq-accordion .accordion-item:nth-child(5) { animation-delay: 0.3s; }

/* Responsive - Tablets */
@media (max-width: 991px) {
    .faq-tabs {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .faq-tabs .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .faq-accordion .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-accordion .accordion-body {
        padding: 1.25rem 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .faq-tabs {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .faq-tabs .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .faq-accordion {
        max-width: 100%;
    }
    
    .faq-accordion .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-accordion .accordion-button i {
        font-size: 1rem;
    }
    
    .faq-accordion .accordion-body {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .faq-accordion .accordion-body ol,
    .faq-accordion .accordion-body ul {
        padding-left: 1.25rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.3) 100%);
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: white !important;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.25rem;
}

.social-link i {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* WhatsApp - Gradiente verde */
.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Instagram - Gradiente púrpura-rojo-naranja */
.social-link.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #C13584 0%, #E1306C 50%, #F77737 100%);
}

/* Twitter/X - Gradiente negro */
.social-link.twitter-x {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.social-link.twitter-x:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

/* Facebook - Gradiente azul */
.social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5bbf 100%);
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #0d5bbf 0%, #0a4a9e 100%);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.footer .g-4 {
    --bs-gutter-y: 1.5rem;
}

/* Responsive - Tablets */
@media (max-width: 991px) {
    .search-card .card-body {
        padding: 2rem;
    }
    
    .search-card .card-title {
        font-size: 1.5rem;
    }
    
    .complejo-card-img {
        height: 100px;
    }
    
    .complejo-card-stats {
        gap: 0.5rem;
    }
    
    .complejo-card-stat-value {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .search-section {
        padding: 40px 0;
    }
    
    .search-card .card-body {
        padding: 1.5rem;
    }
    
    .search-card .card-title {
        font-size: 1.25rem;
    }
    
    .d-grid {
        grid-template-columns: 1fr;
    }
    
    .complejo-card-img {
        height: 90px;
    }
    
    .complejo-card-body {
        padding: 1rem;
    }
    
    .complejo-card-title {
        font-size: 1rem;
    }
    
    .complejo-card-info {
        font-size: 0.8rem;
    }
    
    .complejo-card-stats {
        gap: 0.5rem;
    }
    
    .complejo-card-stat-value {
        font-size: 1rem;
    }
    
    .complejo-card-stat-label {
        font-size: 0.7rem;
    }
    
    .complejo-card-footer {
        padding: 0.75rem 1rem;
    }
    
    .complejo-card-footer .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding-left: 1.25rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 767px) {
    .hero-section {
        background: linear-gradient(135deg, rgba(30, 60, 25, 0.6) 0%, rgba(20, 40, 100, 0.6) 100%), url('/assets/images/fondo_home_vertical.webp');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 575px) {
    .hero-section {
        padding: 28px 0 24px;
        min-height: auto;
        background: linear-gradient(135deg, rgba(25, 50, 20, 0.65) 0%, rgba(15, 30, 80, 0.65) 100%), url('/assets/images/fondo_home_vertical.webp');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-eyebrow {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-main-btn {
        width: 100%;
    }

    .hero-ghost-btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.65rem 0.75rem;
    }

    .hero-features {
        gap: 0.4rem;
    }

    .feature-chip {
        padding: 0.35rem 0.7rem;
        font-size: 0.78rem;
    }

    .feature-chip i {
        font-size: 0.9rem;
    }

    .faq-section {
        padding: 2rem 0;
    }

    .faq-section .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .faq-tabs {
        margin-bottom: 1.25rem;
    }

    .faq-accordion .accordion-button {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .faq-accordion .accordion-body {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }

    .search-card .form-control,
    .search-card .form-select {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .search-card .btn-primary,
    .search-card .btn-outline-secondary {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }

    .complejo-card-img {
        height: 80px;
    }

    .complejo-card-body {
        padding: 0.875rem;
    }

    .complejo-card-title {
        font-size: 0.95rem;
    }

    .complejo-card-info {
        font-size: 0.75rem;
    }

    .complejo-card-stats {
        gap: 0.4rem;
    }

    .complejo-card-stat {
        padding: 0.4rem;
    }

    .complejo-card-stat-value {
        font-size: 0.95rem;
    }

    .complejo-card-stat-label {
        font-size: 0.65rem;
    }

    .complejo-card-footer {
        padding: 0.625rem 0.875rem;
    }

    .complejo-card-footer .btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer h5 {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.complejo-card {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2d5a27;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* ============================================
   MICROSITIO DEL COMPLEJO - SIDEBAR
   ============================================ */

/* Clip del banner — recorta la imagen */
.complejo-banner-clip {
    height: 185px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.complejo-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.complejo-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.55), transparent);
}

/* Faja del logo: centrado en el flujo, asoma 60px en el banner y 60px en la card */
.complejo-logo-belt {
    display: flex;
    justify-content: center;
    margin-top: -60px;
    margin-bottom: -60px;
    position: relative;
    z-index: 3;
}

.complejo-logo-belt .complejo-logo-wrapper {
    margin: 0;
}

/* Card Principal del Complejo */
.complejo-main-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease;
}

/* Cuando hay banner: el logo asoma 60px por debajo del clip — la card necesita ese espacio libre arriba */
.complejo-main-card.has-banner {
    padding-top: 72px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.complejo-logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    position: relative;
}

.complejo-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    background: #f8f9fa;
}

.complejo-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.complejo-logo-placeholder i {
    font-size: 3rem;
    color: white;
}

.complejo-nombre {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.complejo-descripcion {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.complejo-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.complejo-rating .rating-score {
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
}

.complejo-rating .rating-count {
    color: #718096;
    font-size: 0.85rem;
}

/* Card de Detalles del Complejo */
.complejo-details-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.complejo-detail-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.complejo-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.complejo-detail-item:first-child {
    padding-top: 0;
}

.complejo-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.complejo-detail-icon i {
    font-size: 1.25rem;
    color: #2d5a27;
}

.complejo-detail-content {
    flex: 1;
    min-width: 0;
}

.complejo-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.complejo-detail-value {
    display: block;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.4;
}

/* Botón de Google Maps */
.btn-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
}

.btn-maps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
    color: white;
    text-decoration: none;
}

.btn-maps:active {
    transform: translateY(0);
}

.btn-maps i {
    font-size: 1.1rem;
}

/* Card de Servicios Adicionales (informativo) - contenido principal */
.complejo-servicios-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    animation: fadeInUp 0.7s ease;
}

.complejo-servicios-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.complejo-servicios-title i {
    margin-right: 0.5rem;
    color: #2d5a27;
    font-size: 1.25rem;
}

.complejo-servicio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.complejo-servicio-item:hover {
    border-color: #2d5a27;
}

.complejo-servicio-item strong {
    font-size: 0.9rem;
    color: #333;
}

.complejo-servicio-precio {
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
    font-size: 0.95rem;
}

.complejo-servicios-disclaimer {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff8e1;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #6d4c00;
    line-height: 1.5;
}

.complejo-servicios-disclaimer i {
    margin-right: 0.35rem;
    color: #f9a825;
}

/* Card de Redes Sociales */
.complejo-social-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    animation: fadeInUp 0.7s ease;
}

.complejo-social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.complejo-social-title i {
    margin-right: 0.5rem;
    color: #2d5a27;
}

.complejo-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.complejo-social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.complejo-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.complejo-social-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.complejo-social-instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
}

.complejo-social-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5bbf 100%);
}

.complejo-social-website {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
}

/* Estilos antiguos - mantener por compatibilidad */
.complejo-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0 0 15px 15px;
}

.complejo-logo {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Información del Complejo */
.complejo-info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.complejo-info-card h5 {
    color: #2d5a27;
    font-weight: 700;
    margin-bottom: 1rem;
}

.complejo-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #495057;
}

.complejo-info-item i {
    color: #20c997;
    margin-right: 0.75rem;
    font-size: 1.25rem;
    width: 25px;
}

.complejo-redes-sociales a {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    color: #2d5a27;
    text-decoration: none;
    transition: color 0.3s ease;
}

.complejo-redes-sociales a:hover {
    color: #20c997;
}

.complejo-redes-sociales i {
    margin-right: 0.5rem;
}

/* Secciones del Micrositio */
.complejo-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.complejo-section h5 {
    color: #2d5a27;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #20c997;
}

/* Tarjetas de Canchas */
.cancha-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.cancha-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.cancha-img {
    height: 180px;
    overflow: hidden;
}

.cancha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cancha-img-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cancha-img-lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cancha-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.cancha-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cancha-lightbox-caption {
    color: #fff;
    font-size: 1rem;
    margin-top: 12px;
    text-align: center;
    opacity: 0.8;
}

.cancha-body {
    padding: 1rem;
}

.cancha-titulo {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cancha-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.cancha-info i {
    color: #20c997;
    margin-right: 0.25rem;
}

.cancha-caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #495057;
}

.cancha-caracteristicas span {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.cancha-caracteristicas i {
    color: #20c997;
    margin-right: 0.25rem;
}

.cancha-caracteristicas .tag-custom {
    background-color: #f3e5f5;
    color: #7b1fa2;
    font-weight: 600;
}

.cancha-footer {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.cancha-footer .btn {
    width: 100%;
}

/* Deportes y Servicios */
.deporte-item,
.servicio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.deporte-item:hover,
.servicio-item:hover {
    background-color: #e9ecef;
}

.deporte-item i,
.servicio-item i {
    color: #20c997;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.deporte-item strong,
.servicio-item strong {
    flex: 1;
    color: #495057;
}

.deporte-item .badge {
    background-color: #2d5a27;
}

.servicio-item span {
    color: #6c757d;
    font-weight: 600;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Error Container */
#error-container {
    display: none;
}

#error-container .alert {
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive para Micrositio */
@media (max-width: 768px) {
    .complejo-banner {
        height: 200px;
    }
    
    .complejo-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .cancha-img {
        height: 150px;
    }
    
    .complejo-section {
        padding: 1rem;
    }
    
    /* Nuevos estilos responsive para sidebar */
    .complejo-banner-clip {
        height: 150px;
    }

    .complejo-logo-belt {
        margin-top: -50px;
        margin-bottom: -50px;
    }

    .complejo-main-card.has-banner {
        padding-top: 60px;
    }
    
    .complejo-main-card {
        padding: 1.5rem 15px 15px;
    }
    
    .complejo-logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .complejo-nombre {
        font-size: 1.25rem;
    }
    
    .complejo-descripcion {
        font-size: 0.85rem;
    }
    
    .complejo-detail-icon {
        width: 36px;
        height: 36px;
    }
    
    .complejo-detail-icon i {
        font-size: 1.1rem;
    }
    
    .complejo-detail-value {
        font-size: 0.9rem;
    }
    
    .complejo-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .complejo-banner {
        height: 150px;
    }
    
    .cancha-img {
        height: 120px;
    }
    
    .cancha-caracteristicas {
        font-size: 0.75rem;
    }
    
    /* Nuevos estilos responsive para sidebar */
    .complejo-banner-clip {
        height: 120px;
    }

    .complejo-logo-belt {
        margin-top: -40px;
        margin-bottom: -40px;
    }

    .complejo-main-card.has-banner {
        padding-top: 48px;
    }
    
    .complejo-main-card {
        padding: 50px 12px 12px;
        border-radius: 12px;
    }
    
    .complejo-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .complejo-logo-img,
    .complejo-logo-placeholder {
        border-width: 3px;
    }
    
    .complejo-logo-placeholder i {
        font-size: 2rem;
    }
    
    .complejo-nombre {
        font-size: 1.1rem;
    }
    
    .complejo-descripcion {
        font-size: 0.8rem;
    }
    
    .complejo-details-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .complejo-detail-item {
        padding: 0.75rem 0;
    }
    
    .complejo-detail-icon {
        width: 32px;
        height: 32px;
        margin-right: 0.75rem;
    }
    
    .complejo-detail-icon i {
        font-size: 1rem;
    }
    
    .complejo-detail-label {
        font-size: 0.7rem;
    }
    
    .complejo-detail-value {
        font-size: 0.85rem;
    }
    
    .complejo-social-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .complejo-social-title {
        font-size: 0.8rem;
    }
    
    .complejo-social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ============================================
   PÁGINA DE REGISTRO
   ============================================ */

.registro-wrapper {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.registro-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.registro-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
}

.registro-aviso-jugadores {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    background-color: #eef6ff;
    border: 1px solid #cde2f7;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #1e3a8a;
    text-align: center;
}

.registro-aviso-jugadores a {
    font-weight: 600;
    text-decoration: underline;
    color: #1e3a8a;
}

.registro-aviso-jugadores a:hover {
    color: #2d5a27;
}

.registro-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.registro-card .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #2d5a27;
}

.registro-card .form-control:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.registro-card .btn-primary {
    background-color: #2d5a27;
    border-color: #2d5a27;
    transition: all 0.3s ease;
}

.registro-card .btn-primary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.registro-card .btn-outline-success {
    border-color: #2d5a27;
    color: #2d5a27;
    transition: all 0.3s ease;
}

.registro-card .btn-outline-success:hover {
    background-color: #2d5a27;
    color: white;
    transform: translateY(-2px);
}

.registro-card .form-check-input:checked {
    background-color: #2d5a27;
    border-color: #2d5a27;
}

@media (max-width: 767.98px) {
    .registro-card .card-body {
        padding: 1.5rem;
    }

    .registro-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .registro-footer .ms-2,
    .registro-footer .ms-3 {
        margin-left: 0 !important;
    }
}

/* ============================================
   PÁGINA DE MIS RESERVAS
   ============================================ */

/* Tarjeta de Reserva */
.reserva-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.reserva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.reserva-card .card-body {
    padding: 1.25rem;
}

.reserva-card .card-title {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.1rem;
}

.reserva-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.reserva-card .card-text i {
    color: #20c997;
    margin-right: 0.5rem;
}

.reserva-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
}

/* Responsive para Mis Reservas */
@media (max-width: 768px) {
    .reserva-card .card-body {
        padding: 1rem;
    }

    .reserva-card .card-footer {
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   Breadcrumb SEO
   ============================================ */
.breadcrumb-seo {
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.breadcrumb-seo .breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border-radius: 0;
    font-size: 0.875rem;
}

.breadcrumb-seo .breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    padding-right: 0.5rem;
    color: #6c757d;
}

.breadcrumb-seo .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-seo .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-seo .breadcrumb-item.active {
    color: #6c757d;
}

@media (max-width: 576px) {
    .breadcrumb-seo .breadcrumb {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   Banner Promocional de Lanzamiento
   ============================================ */

.launch-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    padding: 0.75rem 0;
    position: relative;
    overflow: visible;
    animation: launchBannerSlide 0.5s ease-out;
    z-index: 1020;
}

@keyframes launchBannerSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.launch-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.launch-banner-content {
    flex: 1;
    margin-right: 1.5rem;
}

.launch-banner-offers {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.launch-banner-offer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.launch-banner-offer-free {
    flex: 0 0 auto;
}

.launch-banner-offer-plans {
    flex: 1;
}

.launch-banner-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 1.25rem;
    align-self: stretch;
}

.launch-banner-offer-badge {
    display: inline-block;
    background: #198754;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.launch-banner-offer-badge-launch {
    background: rgba(255, 255, 255, 0.25);
}

.launch-banner-offer-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.launch-banner-offer-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.launch-banner-offer-body strong {
    display: block;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: nowrap;
}

.launch-banner-offer-body span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.3;
}

.launch-banner-offer-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.launch-banner-cta {
    background: #fff;
    color: #ea580c;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.launch-banner-cta:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.launch-banner-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.launch-banner-cta-outline:hover {
    background: #fff;
    color: #ea580c;
}

.launch-banner-cta-free {
    background: #198754;
    color: #fff;
    border: 2px solid #198754;
}

.launch-banner-cta-free:hover {
    background: #157347;
    border-color: #157347;
    color: #fff;
}

.launch-banner-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.launch-banner-close:hover {
    color: #fff;
}

.launch-banner.launch-banner-hidden {
    display: none;
}

@media (max-width: 767px) {
    .launch-banner {
        padding: 0.625rem 0;
    }

    .launch-banner .container {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .launch-banner-offer-body strong {
        font-size: 0.8rem;
    }

    .launch-banner-offer-body span {
        font-size: 0.7rem;
    }

    .launch-banner-cta,
    .launch-banner-cta-free {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .launch-banner-divider {
        margin: 0 0.75rem;
    }
}

@media (max-width: 575px) {
    .launch-banner-offers {
        flex-direction: column;
        gap: 0.5rem;
    }

    .launch-banner-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .launch-banner-offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .launch-banner-offer-body strong {
        font-size: 0.8125rem;
    }

    .launch-banner-offer-body span {
        font-size: 0.6875rem;
    }

    .launch-banner-offer-body strong,
    .launch-banner-offer-body span {
        white-space: normal;
    }

    .launch-banner-offer-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.375rem;
    }

    .launch-banner-cta,
    .launch-banner-cta-outline,
    .launch-banner-cta-free {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   COPYRIGHT OVERLAY PARA IMÁGENES
   ============================================ */

.cf-copyright-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cf-copyright-wrap img {
    display: block;
    width: 100%;
}

.cf-copyright-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
    text-align: right;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    user-select: none;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .cf-copyright-text {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
}
