/* ========================================
   DONATE.CSS — Página de Donaciones
   Diseño full-screen con estilo hero2
   ======================================== */

/* ── Layout principal ── */
.donate {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-noche) url('../img/about/bg-blue-top.jpg') center center / cover no-repeat;
    padding: 2rem;
}

/* Overlay oscuro para legibilidad */
.donate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(6, 18, 30, 0.88) 0%,
        rgba(10, 40, 60, 0.6) 40%,
        rgba(6, 18, 30, 0.85) 100%
    );
    z-index: 1;
}

/* ── Botón Volver ── */
.donate__back {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-cuerpo);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-crema);
    background: rgba(6, 18, 30, 0.6);
    border: 1px solid rgba(120, 190, 220, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
    text-decoration: none;
}

.donate__back:hover {
    background: rgba(120, 190, 220, 0.9);
    color: var(--color-noche);
    border-color: rgba(120, 190, 220, 0.9);
    transform: translateX(-3px);
}

.donate__back svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.donate__back:hover svg {
    transform: translateX(-3px);
}

/* ── Contenedor central ── */
.donate__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* ── Encabezado ── */
.donate__header {
    text-align: center;
    animation: donateFadeDown 1s 0.2s ease both;
}

/* Fila superior: logo + título lado a lado */
.donate__header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 0.6rem;
}

.donate__logo {
    display: block;
    width: 90px;
    height: auto;
    flex-shrink: 0;
    animation: donateScaleIn 1s 0.4s ease both;
    filter: brightness(0.6) sepia(1) hue-rotate(160deg) saturate(2) brightness(1.1);
}

.donate__header-text {
    text-align: left;
}

.donate__title {
    font-family: var(--font-titulo);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: #78BEDC;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(120, 190, 220, 0.35), 0 0 40px rgba(120, 190, 220, 0.12);
}

/* ── Edición + slogan ── */
.donate__edition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.4rem;
    animation: donateFadeDown 1s 0.5s ease both;
}

.donate__edition-label {
    font-family: var(--font-subtitulo);
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: var(--color-crema);
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.donate__edition-slogan {
    font-family: var(--font-subtitulo);
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    color: #78BEDC;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.donate__subtitle {
    font-family: var(--font-subtitulo);
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    color: var(--color-crema);
    letter-spacing: 0.05em;
    font-weight: 400;
    opacity: 0.9;
}

.donate__description {
    font-family: var(--font-cuerpo);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: var(--color-crema);
    max-width: 780px;
    margin: 1.2rem auto 0;
    line-height: 1.7;
    opacity: 0.92;
}

/* ── Grid de métodos de pago ── */
.donate__methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    animation: donateFadeUp 1s 0.6s ease both;
}

/* ── Tarjeta de método ── */
.donate__card {
    background: rgba(6, 18, 30, 0.72);
    border: 1.5px solid rgba(120, 190, 220, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(120, 190, 220, 0.06);
}

.donate__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #78BEDC, transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.donate__card:hover {
    border-color: rgba(120, 190, 220, 0.45);
    background: rgba(6, 18, 30, 0.82);
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(120, 190, 220, 0.08), inset 0 1px 0 rgba(120, 190, 220, 0.12);
}

.donate__card:hover::before {
    opacity: 1;
}

.donate__card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #78BEDC;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(120, 190, 220, 0.3));
}

.donate__card-title {
    font-family: var(--font-subtitulo);
    font-size: 1.1rem;
    color: #78BEDC;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(120, 190, 220, 0.2);
}

.donate__card-body {
    font-family: var(--font-cuerpo);
    font-size: 0.92rem;
    color: var(--color-crema);
    line-height: 1.7;
    opacity: 0.95;
}

.donate__card-body strong {
    color: #fff;
    font-weight: 600;
}

/* Línea de dato individual */
.donate__data-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(120, 190, 220, 0.1);
    gap: 0.5rem;
}

.donate__data-line:last-child {
    border-bottom: none;
}

.donate__data-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #78BEDC;
    opacity: 0.7;
    white-space: nowrap;
}

.donate__data-value {
    font-weight: 600;
    color: #fff;
    font-size: 0.92rem;
    text-align: right;
    word-break: break-all;
}

/* ── Botón y enlace dentro de tarjetas ── */
.donate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    margin-top: 1.2rem;
    font-family: var(--font-cuerpo);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid #78BEDC;
    background: #78BEDC;
    color: var(--color-noche);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(120, 190, 220, 0.25);
}

.donate__btn:hover {
    background: #9AD0E8;
    border-color: #9AD0E8;
    color: var(--color-noche);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(120, 190, 220, 0.4);
}

.donate__btn--outline {
    background: transparent;
    color: #78BEDC;
    box-shadow: 0 4px 15px rgba(120, 190, 220, 0.1);
}

.donate__btn--outline:hover {
    background: #78BEDC;
    color: var(--color-noche);
    box-shadow: 0 8px 30px rgba(120, 190, 220, 0.3);
}

/* ── Mensaje motivacional inferior ── */
.donate__footer {
    text-align: center;
    animation: donateFadeUp 1s 0.8s ease both;
    padding-top: 0.5rem;
}

.donate__heart {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: donatePulse 2s ease-in-out infinite;
}

.donate__footer-text {
    font-family: var(--font-cuerpo);
    font-size: 0.9rem;
    color: var(--color-crema);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.donate__footer-text a {
    color: #78BEDC;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.donate__footer-text a:hover {
    color: #fff;
}

/* ── Partículas decorativas (pequeños puntos flotantes) ── */
.donate__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #78BEDC;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
    animation: donateFloat 6s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(120, 190, 220, 0.4);
}

.donate__particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.donate__particle:nth-child(2) { top: 25%; right: 15%; animation-delay: 1s; animation-duration: 8s; }
.donate__particle:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 2s; animation-duration: 7s; }
.donate__particle:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 3s; }
.donate__particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.5s; animation-duration: 9s; }
.donate__particle:nth-child(6) { top: 60%; right: 8%; animation-delay: 2.5s; animation-duration: 7.5s; }

/* ========================================
   KEYFRAMES
   ======================================== */

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

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

@keyframes donateScaleIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes donatePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes donateFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-15px) translateX(5px);
    }
    66% {
        transform: translateY(10px) translateX(-5px);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1023px) {
    .donate {
        padding: 5rem 1.5rem 2rem;
        min-height: 100svh;
    }

    .donate__container {
        gap: 2rem;
    }

    .donate__methods {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .donate__card {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 479px) {
    .donate {
        padding: 4.5rem 1rem 1.5rem;
    }

    .donate__back {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .donate__header-row {
        gap: 1.2rem;
    }

    .donate__logo {
        width: 70px;
    }

    .donate__title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }

    .donate__description {
        max-width: 100%;
    }

    .donate__card {
        padding: 1.2rem 1rem;
    }

    .donate__data-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .donate__data-value {
        text-align: left;
    }
}

/* ── Grupo de botones ── */
.donate__btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.2rem;
}

.donate__btn-group .donate__btn {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 120px;
}

/* Botón Compartir */
.donate__btn--share {
    background: transparent;
    color: var(--color-crema);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.donate__btn--share:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* ── Modal QR — estilos movidos a main.css (compartido) ── */

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .donate {
        min-height: auto;
        padding: 1.5rem 2rem;
    }

    .donate__container {
        gap: 1.5rem;
    }

    .donate__logo {
        max-width: 50px;
        margin-bottom: 0.5rem;
    }
}
