:root {
    --card-transition: transform 0.3s ease;
    --overlay-color: rgba(0, 0, 0, 0.5);
    --card-border-color: #1F4690;
    --hover-offset: -5px;
    --border-radius-pill: 50rem;
    --shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-normal: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-enhanced: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background-image: url('/assets/img/banner.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 30px 0;
}

.hero-section .display-4 {
    font-size: 2rem;
}

.hero-section .lead {
    font-size: 1rem;
}

.hero-section .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
}

/* Card Components */
.stats-card,
.need-card,
.hover-card {
    transition: var(--card-transition), box-shadow 0.3s ease;
    box-shadow: var(--shadow-normal);
}

.stats-card:hover,
.need-card:hover,
.hover-card:hover {
    transform: none;
    box-shadow: var(--shadow-hover) !important;
}

.hover-card .card-body {
    transition: transform 0.3s ease;
}

.hover-card:hover .card-body {
    transform: translateY(var(--hover-offset));
}

/* Need Cards específicos */
.need-card {
    position: relative;
    height: 100%;
    border-left: 4px solid var(--card-border-color) !important;
}

.need-card .card-body {
    padding-top: 2.5rem;
}

.need-card.border-danger {
    border-left-color: var(--bs-danger) !important;
}

.need-card.border-warning {
    border-left-color: var(--bs-warning) !important;
}

.need-card.border-info {
    border-left-color: var(--bs-info) !important;
}

.needs-title {
    display: flex;
    align-items: flex-start;
    min-height: 3rem;
    margin-right: 60px;
}

.needs-title i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.needs-title-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.need-card .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    z-index: 2;
}

.need-card .card-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Progress Components */
.progress {
    background-color: #f8f9fa;
    border-radius: 1rem;
    margin-top: 1rem;
}

.progress-bar {
    border-radius: 1rem;
}

/* Badge & Button Components */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 1em;
}

.btn-pill {
    border-radius: var(--border-radius-pill);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.btn-pill:not(.active):hover {
    transform: translateY(-2px);
}

/* Map & Location Components */
.point-map {
    min-height: 200px;
    border-radius: 0 0.375rem 0.375rem 0;
    z-index: 1;
    position: relative;
    background-color: #f8f9fa;
}

.point-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.point-card.hidden {
    display: none;
}

/* Link Styles */
.map-link {
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
}

.map-link:hover,
.contact-link:hover {
    color: var(--bs-primary);
}

.maps-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75em;
    color: #666;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-top: 0.25rem;
}

.map-link:hover .maps-badge {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.address-text {
    border-bottom: 1px dashed #dee2e6;
    display: inline-block;
}

.map-link:hover .address-text,
.contact-link:hover {
    border-bottom-color: var(--bs-primary);
}

.contact-link {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
    border-bottom: 1px dashed #dee2e6;
}

/* Row y Column Layouts */
.row.g-4 {
    height: 100%;
}

.col-md-4 {
    display: flex;
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.min-vh-50 {
    min-height: 50vh;
}

/* Media Queries */
@media (min-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.25rem;
    }

    .min-vh-50 {
        min-height: 35vh;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section .display-4 {
        font-size: 3.5rem;
    }

    .min-vh-50 {
        min-height: 50vh;
    }
}

@media (max-width: 767.98px) {
    .point-map {
        height: 200px;
        border-radius: 0 0 0.375rem 0.375rem;
    }

    .city-filter {
        gap: 0.5rem !important;
    }

    .btn-pill {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .maps-badge {
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .address-text {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .needs-title {
        margin-right: 45px;
    }

    .need-card .card-body {
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem;
    }

    .city-filter .btn-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Grid y Layout Específicos */
.card.need-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card.need-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card.need-card .progress {
    margin-top: auto;
}

/* Estilos específicos por prioridad */
.need-card.border-danger .needs-title i {
    color: var(--bs-danger);
}

.need-card.border-warning .needs-title i {
    color: var(--bs-warning);
}

.need-card.border-info .needs-title i {
    color: var(--bs-info);
}

/* Ajustes adicionales para la sección de necesidades */
#necesidades .card {
    margin-bottom: 1rem;
}

#necesidades .row {
    margin-bottom: -1rem;
}

/* Ajustes para los filtros de ciudad */
.city-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.city-filter .btn {
    flex: 0 0 auto;
}

.footer {
    font-size: 0.9375rem;
}

.footer h6 {
    font-weight: 600;
    color: #2c3e50;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1F4690;
}

.alert-soft-primary {
    background-color: rgba(31, 70, 144, 0.1);
    border: none;
    color: #1F4690;
}

.alert-soft-primary .alert-link {
    color: #1F4690;
    text-decoration: underline;
}

.alert-soft-primary .alert-link:hover {
    color: #CD2038;
}

@media (max-width: 991.98px) {
    .footer .row>div {
        text-align: center;
    }

    .footer .d-flex {
        justify-content: center;
    }
}



/* Dana help */
.dana-help {
    position: relative;
    z-index: 10;
}

.dana-help .card {
    transition: all 0.2s ease;
}

.dana-help .bg-gradient-to-r {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.dana-help .btn {
    border: none;
    transition: all 0.2s ease;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.dana-help .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.dana-help .btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.dana-help .fs-7 {
    font-size: 0.85rem;
}

.dana-help .list-unstyled li {
    line-height: 1.3;
    font-size: 0.8rem;
}

.dana-help .alert {
    position: relative;
    padding: 0.5rem 1rem;
}

.dana-help .btn-close-sm {
    padding: 0.25rem;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .dana-help {
        margin-top: -1rem;
    }

    .dana-help .card-body {
        padding: 0.75rem !important;
    }

    .dana-help .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .dana-help .alert {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}


.emergency-phone {
    font-size: 1.1rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .emergency-phone {
        font-size: 0.9rem;
    }

    .emergency-phone .btn {
        padding: 0.25rem 0.5rem;
    }
}


.point-card {
    transition: all 0.3s ease-in-out;
}

.point-card.hidden {
    display: none;
}

.city-filter .btn-pill {
    transition: all 0.3s ease;
}

.city-filter .btn-pill.active {
    transform: scale(1.05);
}
