/* ==========================================
   HOME.CSS - Estilos específicos para la página principal
   ========================================== */

/* ========================================
   CARRUSEL
   ======================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: -40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 50px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.carousel-caption h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-hero {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-hero:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 30px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 10px;
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 102, 69, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 39, 45, 0.4);
}

.btn-primary i {
    margin-left: 8px;
}

.btn-ver-todas {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 102, 69, 0.3);
}

.btn-ver-todas:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 39, 45, 0.4);
}

/* ========================================
   ¿QUÉ HACEMOS?
   ======================================== */
.que-hacemos {
    padding: 60px 0;
    background: white;
}

.about-section {
    padding: 60px 0;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-item i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3,
.feature-item h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   HISTORIAS
   ======================================== */
.historias-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.historias-section .section-header h2,
.historias-section .section-header p {
    color: white;
}

.historias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.historia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.historia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.historia-image,
.historia-media {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.historia-image img,
.historia-image video,
.historia-media img,
.historia-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.historia-card:hover .historia-image img,
.historia-card:hover .historia-image video,
.historia-card:hover .historia-media img,
.historia-card:hover .historia-media video {
    transform: scale(1.1);
}

.historia-image video,
.historia-media video {
    background-color: #000;
}

.historia-content {
    padding: 25px;
    position: relative;
}

.historia-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.historia-badge i {
    margin-right: 5px;
}

.historia-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.historia-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.historia-date {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}

.btn-leer-mas {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-leer-mas:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.btn-leer-mas i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.btn-leer-mas:hover i {
    margin-left: 10px;
}

/* ========================================
   NOTICIAS
   ======================================== */
.noticias-section {
    padding: 60px 0;
    background: white;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.noticia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.noticia-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.noticia-card:hover .noticia-image img {
    transform: scale(1.1);
}

.noticia-fecha {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.noticia-fecha .dia {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.noticia-fecha .mes {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.noticia-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 102, 69, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.noticia-card:hover .noticia-overlay {
    opacity: 1;
}

.btn-ver-mas {
    color: white;
    background: var(--accent-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.noticia-content {
    padding: 25px;
}

.noticia-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.noticia-date i {
    color: var(--accent-color);
}

.noticia-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.noticia-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* ========================================
   EVENTOS
   ======================================== */
.eventos-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.evento-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.evento-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.evento-card:hover .evento-image img {
    transform: scale(1.1);
}

.evento-content {
    padding: 25px;
}

.evento-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 10px;
}

.evento-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.evento-meta i {
    color: var(--green-color);
}

.evento-online {
    color: var(--accent-color) !important;
}

.evento-online i {
    color: var(--accent-color) !important;
}

.evento-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.evento-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-ver-evento {
    display: inline-block;
    background-color: var(--green-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ver-evento:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   CALL TO ACTION
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.cta-section .section-header h2,
.cta-section .section-header p {
    color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.cta-card {
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.cta-donate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.cta-contact {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.cta-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-card p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-donate {
    color: #f5576c;
}

.btn-contact {
    color: #00f2fe;
}

.btn-cta i {
    margin-right: 10px;
}

/* ========================================
   PRODUCTOS DESTACADOS
   ======================================== */
.productos-section {
    padding: 60px 0;
    background: white;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.producto-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.producto-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.producto-card:hover .producto-image img {
    transform: scale(1.1);
}

.producto-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.producto-content {
    padding: 20px;
    text-align: center;
}

.producto-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    min-height: 45px;
}

.producto-precio {
    font-size: 24px;
    color: var(--green-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-ver-producto {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ver-producto:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero-carousel {
        height: 500px;
    }

    .carousel-caption h2 {
        font-size: 36px;
    }

    .carousel-caption p {
        font-size: 18px;
    }

    .features-grid,
    .historias-grid,
    .noticias-grid,
    .eventos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
        margin-top: -40px;
    }

    .carousel-caption {
        padding: 25px 35px;
        bottom: 40px;
    }

    .carousel-caption h2 {
        font-size: 32px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .carousel-control {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .historias-grid,
    .noticias-grid,
    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 35px;
    }

    .que-hacemos,
    .historias-section,
    .noticias-section,
    .eventos-section,
    .productos-section {
        padding: 40px 0;
    }

    .cta-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 350px;
    }

    .carousel-caption {
        padding: 20px 25px;
        bottom: 30px;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .btn-hero {
        padding: 10px 20px;
        font-size: 14px;
    }

    .features-grid,
    .historias-grid,
    .noticias-grid,
    .eventos-grid,
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 16px;
    }

    .cta-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .cta-card h3 {
        font-size: 24px;
    }

    .cta-card p {
        font-size: 14px;
    }
}
/* Intro Video Overlay */
