:root {
    --primary: #17355e;
    --accent: #dba130;
    --accent-hover: #c28f28;
    --danger: #b93536;
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --card-bg: rgba(23, 53, 94, 0.85); /* Fondo oscuro para no perder las imagenes */
    --card-border: #0067bc; /* Borde azul */
    
    --epayco-color: #dba130;
    --epayco-hover: #c28f28;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fondo.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Barra superior tricolor */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, var(--primary) 50%, var(--primary) 75%, var(--danger) 75%, var(--danger) 100%);
    z-index: 9999;
}

/* Sunset Effect Overlay */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(180deg, rgba(115, 184, 240, 0.25) 0%, rgba(0, 103, 188, 0.6) 50%, rgba(0, 43, 92, 0.98) 100%);
    backdrop-filter: blur(4px) brightness(95%);
    pointer-events: none;
}

/* Header */
.header {
    text-align: center;
    padding: 12rem 2rem 2rem;
}



.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6);
}

.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.85) 75%, rgba(255, 255, 255, 0) 100%);
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.logo {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

.header p {
    color: #ffffff;
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 600;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

/* Container & Cards */
.container {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.container-single {
    max-width: 500px;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.donation-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 103, 188, 0.15); /* Sombra azul */
}

.donation-card:hover {
    transform: translateY(-5px);
    border-color: #73b8f0; /* Borde azul al hacer hover */
    box-shadow: 0 15px 40px rgba(0, 103, 188, 0.3); /* Sombra azul */
}

.card-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
}

/* Backgrounds for cities */
.manizales-bg {
    background-image: url('manizales1.jpg');
    background-size: cover;
    background-position: center;
}

.caldas-bg {
    background-image: url('caldas.jpg');
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    inset: 0;
    /* Transicion perfecta al fondo oscuro de la tarjeta, dejando la parte superior transparente para la imagen */
    background: linear-gradient(to top, rgba(23, 53, 94, 1) 0%, rgba(23, 53, 94, 0.5) 40%, transparent 80%);
}

.card-image h2 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 800;
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.donation-options {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.option-label {
    font-size: 0.75rem;
    color: var(--accent); /* Dorado para los textos pequeños */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
    margin-bottom: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    min-height: 3.5rem;
    text-align: center;
    flex: 1;
}

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

.btn-epayco {
    background-color: var(--epayco-color);
    box-shadow: 0 4px 15px rgba(219, 161, 48, 0.3);
}

.btn-epayco:hover {
    background-color: var(--epayco-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(219, 161, 48, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
}

.footer i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.25rem;
    }
    
    .cards-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Payment Methods Logos */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 1.55rem;
    opacity: 0.8;
}

.payment-methods i {
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: help;
}

.payment-methods i:hover,
.payment-methods .pse-logo:hover {
    transform: scale(1.15);
    opacity: 1;
}

.pse-logo {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background: #00A1E0;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: 0.5px;
    cursor: help;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
