/* ==========================================================================
   Portada
   ========================================================================== */

/* 1. Banner */
.home-banner img { width: 100%; height: auto; }

/* 2. Donar + pilares */
.home-intro { padding: 55px 0; }
.home-intro-row { display: flex; gap: 40px; min-height: 280px; }

.donate-card {
    flex: 0 0 315px; position: relative; display: flex; align-items: flex-end;
    min-height: 280px; padding: 10px; border-radius: var(--radius); overflow: hidden;
    background-size: cover; background-position: center;
}
.donate-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
    transition: opacity .4s ease;
}
.donate-card:hover::before { opacity: .75; }
.donate-card-content { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 0 6px; }
.donate-card-title { color: #fff; font-size: 20px; font-weight: 600; line-height: 1; }
.donate-card-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 16px; font-weight: 500; line-height: 1; }
.donate-card-btn svg { width: 14px; height: 14px; fill: currentColor; order: 2; transition: transform .3s ease; }
.donate-card:hover .donate-card-btn svg { transform: translateX(4px); }

.pillars {
    flex: 1; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--c-card); border-radius: var(--radius); padding: 26px;
}
.pillar {
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px; border-right: 1px solid var(--c-card-2); border-radius: var(--radius);
    transition: background-color .3s ease;
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: rgba(255, 255, 255, .02); }
.pillar-icon { width: 30px; height: 30px; fill: var(--c-red); margin-bottom: 13px; transition: transform .4s var(--ease); }
.pillar:hover .pillar-icon { transform: translateY(-3px); }
.pillar h3 { color: #fff; font-size: 20px; font-weight: 500; line-height: 24px; margin-bottom: 5px; }
.pillar p { color: var(--c-gray-c6); font-size: 15px; line-height: 1.5; }

/* 3. Keep Latin American Music Alive */
.home-alive-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.home-alive-image { min-height: 250px; border-radius: var(--radius); background-size: cover; background-position: center; }
.home-alive-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }

/* 4. Campaña */
.home-campaign { padding: 30px 0 0; }
.slider--campaign .slider-slide img { height: auto; border-radius: 0; transition: transform .5s ease; }
.slider--campaign .slider-slide { overflow: hidden; }
.slider--campaign .slider-slide:hover img { transform: scale(1.02); }

/* 5. Manuel M. Ponce */
.home-ponce { padding: 30px 0 0; }
.ponce-card {
    display: grid; grid-template-columns: 1.15fr 1fr .72fr; gap: 30px; align-items: center;
    background: var(--c-card); border-radius: var(--radius); padding: 52px;
}
.ponce-years { color: #fff; font-size: 20px; line-height: 1; margin: 14px 0 22px; }
.ponce-image { min-height: 450px; border-radius: var(--radius); background-size: cover; background-position: center top; align-self: stretch; }
.ponce-cards { display: flex; flex-direction: column; justify-content: center; gap: 36px; }

/* 6. Barra Discover */
.home-discover { padding: 30px 0; }
.discover-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--c-card); border-radius: var(--radius); padding: 26px;
}

/* 7. Why do we do it */
.home-why { padding: 30px 0; border-bottom: 1px solid var(--c-card); }
.home-why-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.home-why-left { display: flex; flex-direction: column; gap: 20px; }
.why-card { display: flex; gap: 19px; background: var(--c-card); border-radius: var(--radius); padding: 19px; }
.why-card-image { flex: 0 0 45%; min-height: 288px; border-radius: var(--radius); background-size: cover; background-position: center; }
.why-card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.why-card-btn {
    display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 3px;
    background: var(--c-accent); color: #fff; transition: background-color .3s ease;
}
.why-card-btn svg { width: 20px; height: 20px; fill: currentColor; transition: transform .3s ease; }
.why-card-btn:hover { background: var(--c-red); }
.why-card-btn:hover svg { transform: translateX(4px); }
.why-card-body p { color: #fff; font-size: 16px; line-height: 1.5; }

.stats-card { background: var(--c-card); border-radius: var(--radius); padding: 19px; }
.stats { display: flex; align-items: center; justify-content: space-between; }
.stat { flex: 1; position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 20px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    height: 70%; border-right: 2px dotted #d0c4b8;
}
.stat-number { color: #fff; font-size: 52px; font-weight: 700; line-height: 1; margin-bottom: 8px; white-space: nowrap; }
.stat-label { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }

.home-why-right { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.home-why-right .title-xl { margin-bottom: 4px; }

/* 8. Próximos eventos */
.home-events { padding: 30px 0; }
.home-events-title { margin-bottom: 30px; }
.event-slide { display: flex; gap: 20px; align-items: stretch; }
.event-image { flex: 1; min-width: 0; border-radius: 12px; overflow: hidden; background: #000; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-content {
    flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
    background: #050505; border: 1px solid #1a1a1a; border-radius: 12px; padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .5);
}
.event-date { color: #ef4135; font-size: 18px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.event-desc { color: #e0e0e0; font-size: 16px; line-height: 1.6; font-weight: 300; margin-bottom: 35px; }
.event-btn { align-self: flex-start; padding: 14px 32px; border-radius: 6px; font-weight: 700; }

/* 9. Contacto */
.home-contact { background: var(--c-card); padding: 80px 0; }
.home-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
    .ponce-card { grid-template-columns: 1fr 1fr; padding: 40px; }
    .ponce-cards { grid-column: 1 / -1; flex-direction: row; gap: 20px; }
    .ponce-cards .mini-card { flex: 1; }
}

@media (max-width: 1024px) {
    .home-intro-row { flex-direction: column; }
    .donate-card { flex-basis: auto; min-height: 320px; }
    .home-alive-row, .home-why-row, .home-contact-row { grid-template-columns: 1fr; }
    .home-contact { padding: 60px 0; }
}

@media (max-width: 767px) {
    .home-intro { padding: 30px 0; }
    .pillars { grid-template-columns: 1fr; padding: 10px 16px; }
    .pillar { border-right: 0; border-bottom: 1px solid var(--c-card-2); border-radius: 0; padding: 20px 4px; }
    .pillar:last-child { border-bottom: 0; }
    .ponce-card { grid-template-columns: 1fr; padding: 24px; }
    .ponce-image { min-height: 380px; }
    .ponce-cards { flex-direction: column; gap: 14px; }
    .discover-bar { flex-direction: column; align-items: flex-start; }
    .discover-bar .btn { width: 100%; }
    .why-card { flex-direction: column; }
    .why-card-image { flex-basis: auto; min-height: 260px; }
    .stats { flex-direction: column; gap: 30px; }
    .stat, .stat:first-child, .stat:last-child { padding: 0; width: 100%; align-items: center; text-align: center; }
    .stat:not(:last-child)::after { display: none; }
    .stat-number { font-size: 42px; }
    .stat-label { font-size: 16px; }
    .home-why-right .btn, .home-alive-text .btn { width: 100%; }
    .event-slide { flex-direction: column; gap: 15px; }
    .event-content { padding: 25px; }
    .event-btn { width: 100%; }
    .slider--events { padding-bottom: 60px; }
    .slider--events .slider-arrow { top: auto; bottom: 0; transform: none; width: 40px; height: 40px; font-size: 16px; }
    .slider--events .slider-prev { left: calc(50% - 45px); }
    .slider--events .slider-next { left: calc(50% + 5px); right: auto; }
    .tab-btn { padding: 15px 20px; flex: 1; }
}
