/* ===== HERO ===== */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
    overflow: hidden;
    height: 40vh;
    min-height: 300px;
}

.hero .container {
    position: relative;
    z-index: 10;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero h1::after {
    background: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== FEATURES ===== */
.features {
    background: var(--white);
    padding: 80px 0;
}

.features-grid {
    display: flex; /* Cambiamos grid por flex */
    flex-direction: column-reverse; /* Orden inverso (de abajo hacia arriba) */
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    width: 100%;
    padding: 25px;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center; /* Centrado general */
    display: flex;
    flex-direction: column; /* Apila h3 y p verticalmente */
    align-items: center; /* Centra horizontalmente */
}

.feature-card h4 + p {
    text-align: left;
    margin-left: auto; /* Empuja el bloque a la derecha */
    max-width: 100%; /* Opcional: limita el ancho para mejor legibilidad */
    padding-left: 0px;  
}

.feature-card:hover {
    transform: translateX(10px); /* Efecto hover horizontal */
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px; /* Espacio entre ícono y texto */
    flex-shrink: 0;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary);
}

.feature-card p {
    margin: 0;
    color: var(--gray);
    width: 100%;
    text-align: center;
    line-height: 1.5;
}



/* Responsive para móviles */
@media (max-width: 768px) {
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ===== LATEST PUBLICATIONS ===== */
.latest-publications {
    padding: 80px 0;
    background: var(--light);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.publication-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.publication-content {
    padding: 25px;
    flex: 1;
}

.publication-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.publication-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.publication-excerpt {
    margin-bottom: 20px;
    color: var(--gray);
}

/* ===== UPCOMING EVENTS ===== */
.upcoming-events {
    padding: 80px 0;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    display: flex;
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.event-date {
    background: var(--primary);
    color: var(--white);
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.event-content {
    padding: 20px;
    flex: 1;
}

.event-content h3 {
    margin-bottom: 10px;
}

.event-content p {
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

@keyframes wave-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.events-grid .event-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mantén el hover como prefieras */
.events-grid .event-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .publications-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* --- elementos descatacados */

        
.destacados h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.galeria-destacados {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.item-destacado {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.item-destacado:hover {
    transform: translateY(-5px);
}

.item-destacado img {
    width: 100%;
    height: auto;
    display: block;
}

/* OBITUARIO */
/* ===== OBITUARY RIBBON ===== */
.obituary-ribbon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 12px 15px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.obituary-ribbon:hover {
    background-color: #555;
    transform: translateY(-3px);
}

.ribbon-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ribbon-icon {
    font-size: 1.2rem;
    filter: grayscale(100%) brightness(200%);
}

.ribbon-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Modal de obituario */
.obituary-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 15px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .obituary-ribbon {
        bottom: 20px;
        right: 20px;
        padding: 10px 12px;
    }
    
    .ribbon-text {
        font-size: 0.8rem;
    }
}
/* OBITUARIO */