/* ==========================================================================
   MINISTERIO DE JÓVENES - ESTILOS UNIFICADOS
   ========================================================================== */

/* ==========================================================================
   1. Variables y configuración base
   ========================================================================== */
:root {
    --jovenes-color-primario: #1e88e5;        /* Azul brillante */
    --jovenes-color-secundario: #ff8a65;      /* Naranja coral */
    --jovenes-color-acento: #c5e1fd;          /* Azul claro */
    --jovenes-color-oscuro: #0d47a1;          /* Azul oscuro */
    --jovenes-color-texto: #37474f;           /* Gris azulado */
    --jovenes-fuente-titulo: 'Montserrat', sans-serif;
    --jovenes-fuente-texto: 'Poppins', sans-serif;
    --jovenes-transicion: all 0.3s ease-in-out;
}

/* ==========================================================================
   2. Estilos generales
   ========================================================================== */
body {
    font-family: var(--jovenes-fuente-texto);
    color: var(--jovenes-color-texto);
    overflow-x: hidden;
    background-color: #f5f7fa;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jovenes-fuente-titulo);
    color: var(--jovenes-color-oscuro);
    line-height: 1.3;
}

/* Animaciones globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero principal legacy (.hero-jovenes / .hero-texto / .hero-buttons) removido tras migración a hero-min */

/* Hero para artículos */
.hero-container {
    position: relative;
    height: 75vh;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.85), rgba(13, 71, 161, 0.9));
    z-index: -1;
}

.article-title-container {
    text-align: center;
    color: white;
    padding: 0 20px;
    z-index: 1;
    max-width: 850px;
    animation: fadeInUp 1.5s ease-out;
}

.article-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    background-color: rgba(13, 71, 161, 0.8);
    color: white;
    padding: 12px 25px;
    text-align: center;
    font-size: 0.95rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    gap: 25px;
}

.article-meta i {
    color: var(--jovenes-color-secundario);
    margin-right: 8px;
}

/* ==========================================================================
   4. Botones y elementos de acción
   ========================================================================== */
/* Botones héroe y CTA */
.btn-hero, .hero-button, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--jovenes-transicion);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
}

.btn-hero-primary, .hero-button, .btn-primary {
    background-color: var(--jovenes-color-secundario);
    color: white;
    border: 2px solid var(--jovenes-color-secundario);
}

.btn-hero-secondary, .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-primary:hover, .hero-button:hover, .btn-primary:hover, 
.btn-hero-secondary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover, .hero-button:hover, .btn-primary:hover {
    background-color: transparent;
    color: white;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--jovenes-color-primario);
}

/* Botones específicos */
.hero-button {
    margin-top: 30px;
}

/* Botones de compartir */
.share-section {
    margin: 50px 0;
    text-align: center;
}

.share-section h3 {
    color: var(--jovenes-color-oscuro);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-button i {
    margin-right: 8px;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   5. Contenedores de secciones comunes
   ========================================================================== */
/* Estilos comunes para secciones */
.bienvenida, .pilares, .lideres, .articulos-recientes,
.eventos, .testimonios, .galeria, .recursos, .contacto {
    padding: 70px 0;
}

.bienvenida, .lideres, .eventos, .contacto {
    background-color: white;
}

.pilares, .articulos-recientes, .testimonios, .recursos {
    background-color: var(--jovenes-color-acento);
}

/* Contenedor común para secciones */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Estilos para títulos de secciones */
.bienvenida h2, .pilares h2, .lideres h2, .articulos-recientes h2,
.eventos h2, .testimonios h2, .galeria h2, .recursos h2, .contacto h2,
.related-events h3 {
    color: var(--jovenes-color-primario);
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.bienvenida h2::after, .pilares h2::after, .lideres h2::after, 
.articulos-recientes h2::after, .eventos h2::after, .testimonios h2::after, 
.galeria h2::after, .recursos h2::after, .contacto h2::after,
.related-events h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--jovenes-color-primario);
}

.galeria h2::after, .contacto h2::after {
    background-color: var(--jovenes-color-secundario);
}

/* Separador y cortes */
.bienvenida::before, .eventos::before, .contacto::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
}

.bienvenida::before {
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.eventos::before {
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

.contacto::before {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.recursos::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--jovenes-color-acento);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
}

/* Estilos para grids */
.pilares-grid, .lideres-grid, .eventos-grid, .galeria-grid, 
.recursos-grid, .related-events-grid {
    display: grid;
    gap: 30px;
}

.pilares-grid, .recursos-grid, .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.lideres-grid, .eventos-grid, .related-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================================================
   6. Artículos y contenido
   ========================================================================== */
/* Contenedor de artículo */
.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 25px;
}

.article-lead {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 50px;
    color: var(--jovenes-color-oscuro);
    border-left: 4px solid var(--jovenes-color-primario);
    background-color: rgba(197, 225, 253, 0.2);
    padding: 25px 25px 25px 30px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

/* Secciones del artículo */
.article-section {
    margin: 60px 0;
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--jovenes-color-primario);
}

.section-title {
    color: var(--jovenes-color-primario);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--jovenes-color-acento);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--jovenes-color-primario);
}

.section-subtitle {
    color: var(--jovenes-color-oscuro);
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 18px;
    font-weight: 600;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--jovenes-color-secundario);
    border-radius: 3px;
}

.emphasis {
    color: var(--jovenes-color-primario);
    font-weight: 700;
}

/* Tarjetas de artículos */
.articulo {
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--jovenes-transicion);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.articulo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--jovenes-color-primario);
}

.articulo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.articulo-img, .article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.articulo-img img, .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.articulo:hover .articulo-img img,
.article-card:hover .article-image img {
    transform: scale(1.05);
}

.articulo-contenido, .article-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.articulo-fecha {
    font-size: 0.9rem;
    color: var(--jovenes-color-primario);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.articulo-fecha i {
    margin-right: 5px;
}

.articulo h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.articulo h3 a {
    color: var(--jovenes-color-oscuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.articulo h3 a:hover {
    color: var(--jovenes-color-primario);
}

.articulo p, .article-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.articulo-link, .read-more {
    margin-top: auto;
    display: inline-block;
    color: var(--jovenes-color-primario);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.articulo-link::after, .article-card:hover .read-more {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--jovenes-color-primario);
    transition: width 0.3s ease;
}

.articulo-link:hover::after {
    width: 100%;
}

.articulo-link i, .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.articulo:hover .articulo-link i, 
.article-card:hover .read-more i {
    transform: translateX(3px);
}

/* Estilos para versículos bíblicos */
.bible-verse {
    background-color: var(--jovenes-color-acento);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.bible-verse:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.verse-reference {
    display: inline-block;
    font-weight: 600;
    color: var(--jovenes-color-primario);
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 1px dotted var(--jovenes-color-primario);
    position: relative;
    padding: 3px 0;
    transition: all 0.2s ease;
}

.verse-reference:hover {
    color: var (--jovenes-color-oscuro);
}

/* Tooltip para versículos bíblicos */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: white;
    color: var(--jovenes-color-texto);
    text-align: left;
    border-radius: 10px;
    padding: 15px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    font-weight: normal;
    font-style: italic;
    font-size: 0.95rem;
    border-left: 4px solid var(--jovenes-color-primario);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}

/* Estilos para verse-reference en conclusión-section */
.conclusion-section .bible-verse {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.conclusion-section .verse-reference {
    color: white;
    border-color: white;
}

/* ==========================================================================
   7. Sección de tarjetas (Ministros, Eventos, Recursos)
   ========================================================================== */
/* Base para todas las tarjetas */
.pilar-card, .lider-card, .evento-card, .recurso-card,
.mision-vision-card, .article-card, .event-card, .key-point,
.bible-example, .application-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pilar-card:hover, .lider-card:hover, .evento-card:hover, 
.recurso-card:hover, .mision-vision-card:hover, .article-card:hover, 
.event-card:hover, .key-point:hover, .bible-example:hover, 
.application-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Tarjetas de líderes */
.lider-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 25px auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.lider-info {
    padding: 25px;
}

.lider-info h3 {
    font-size: 1.3rem;
    color: var(--jovenes-color-primario);
    margin-bottom: 10px;
    font-weight: 600;
}

.lider-info h4 {
    font-size: 1rem;
    color: var(--jovenes-color-texto);
    margin-bottom: 15px;
    font-style: italic;
}

.lider-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.lider-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--jovenes-color-acento);
    color: var(--jovenes-color-primario);
    transition: all 0.3s ease;
}

.lider-social a:hover {
    background-color: var(--jovenes-color-primario);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tarjetas de eventos */
.evento-fecha {
    background-color: var(--jovenes-color-primario);
    color: white;
    text-align: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.evento-fecha .dia {
    font-size: 2rem;
    font-weight: bold;
}

.evento-fecha .mes {
    font-size: 1.2rem;
}

.evento-contenido {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.evento-contenido h3 {
    font-size: 1.3rem;
    color: var(--jovenes-color-oscuro);
    margin-bottom: 15px;
    font-weight: 600;
}

.evento-contenido .evento-hora-lugar {
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evento-hora-lugar div {
    display: flex;
    align-items: center;
}

.evento-hora-lugar i {
    color: var(--jovenes-color-primario);
    margin-right: 8px;
    font-size: 1.1rem;
}

.evento-accion {
    text-align: center;
    margin-top: 15px;
}

.evento-accion .btn-evento {
    display: inline-block;
    background-color: var(--jovenes-color-secundario);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--jovenes-transicion);
    border: 2px solid var(--jovenes-color-secundario);
}

.evento-accion .btn-evento:hover {
    background-color: transparent;
    color: var(--jovenes-color-secundario);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tarjetas relacionadas */
.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-date {
    font-size: 0.9rem;
    color: var(--jovenes-color-primario);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.event-date i {
    margin-right: 5px;
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--jovenes-color-oscuro);
}

.event-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-link {
    display: inline-block;
    color: var(--jovenes-color-primario);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.event-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--jovenes-color-primario);
    transition: width 0.3s ease;
}

.event-link:hover::after {
    width: 100%;
}

/* Puntos clave, ejemplos bíblicos */
.key-point, .bible-example {
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--jovenes-color-secundario);
}

.key-point:hover {
    transform: translateX(5px);
}

.key-point h3, .bible-example h3 {
    color: var(--jovenes-color-primario);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ==========================================================================
   8. Secciones especiales (Misión/Visión, Pilares, Testimonios, Galería)
   ========================================================================== */
/* Misión Visión */
.mision-vision {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.mision-vision-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    padding: 30px;
    position: relative;
}

.mision-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--jovenes-color-primario);
}

.mision-vision-card i {
    font-size: 2.5rem;
    color: var(--jovenes-color-primario);
    margin-bottom: 20px;
}

.mision-vision-card h3 {
    font-size: 1.5rem;
    color: var(--jovenes-color-oscuro);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Pilares */
.pilar-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pilar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--jovenes-color-primario);
}

.pilar-icon {
    color: var(--jovenes-color-primario);
    padding: 25px 0;
    font-size: 2.5rem;
}

.pilar-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pilar-info h3 {
    font-size: 1.3rem;
    color: var(--jovenes-color-primario);
    margin-bottom: 15px;
    font-weight: 600;
}

.pilar-verse {
    font-style: italic;
    color: var(--jovenes-color-texto);
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    background-color: var(--jovenes-color-acento);
    padding: 15px;
    border-radius: 8px;
}

/* Testimonios */
.testimonios-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonio {
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--jovenes-transicion);
}

.testimonio:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--jovenes-color-primario);
}

.testimonio-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
}

.testimonio-texto::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -40px;
    left: -10px;
    color: var(--jovenes-color-acento);
    opacity: 0.8;
}

.testimonio-autor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonio-autor img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonio-autor h4 {
    font-size: 1.1rem;
    color: var(--jovenes-color-primario);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonio-autor p {
    font-size: 0.9rem;
    color: var(--jovenes-color-texto);
    font-style: italic;
}

/* Galería */
.galeria-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--jovenes-transicion);
}

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

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 136, 229, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.galeria-overlay p {
    font-size: 1rem;
    padding: 0 15px;
    text-align: center;
}

/* Recursos */
.recurso-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.recurso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--jovenes-color-secundario);
}

.recurso-card i {
    font-size: 3rem;
    color: var(--jovenes-color-primario);
    margin: 30px 0 20px;
}

.recurso-contenido {
    padding: 0 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recurso-contenido h3 {
    font-size: 1.3rem;
    color: var(--jovenes-color-oscuro);
    margin-bottom: 15px;
    font-weight: 600;
}

.recurso-contenido a {
    margin-top: auto;
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    background-color: var(--jovenes-color-primario);
    border-radius: 50px;
    transition: var(--jovenes-transicion);
}

.recurso-contenido a:hover {
    background-color: var(--jovenes-color-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   9. Componentes de artículos
   ========================================================================== */
/* Sección de puntos clave */
.key-points {
    margin: 30px 0;
}

/* Sección de aplicación práctica */
.application-section {
    background: linear-gradient(135deg, var(--jovenes-color-acento), #e3f2fd);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

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

/* Sección de reflexión */
.reflection-point {
    background-color: var(--jovenes-color-acento);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.reflection-point h3 {
    color: var(--jovenes-color-primario);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.reflection-point ul {
    list-style-type: none;
    padding-left: 0;
}

.reflection-point ul li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.reflection-point ul li::before {
    content: "\f138";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--jovenes-color-primario);
}

/* Pasos prácticos */
.steps-container {
    margin: 40px 0;
}

.step-item {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.step-number {
    background-color: var(--jovenes-color-primario);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    padding: 20px;
    flex-grow: 1;
}

.step-content h3 {
    color: var(--jovenes-color-oscuro);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Sección de conclusión y CTA */
.conclusion-section {
    background: linear-gradient(rgba(30, 136, 229, 0.9), rgba(13, 71, 161, 0.9)), 
                 url('/images/ministerios/jovenes/conclusion-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 50px 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.conclusion-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
}

.conclusion-content {
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Sección de oración */
.prayer-section {
    background-color: var(--jovenes-color-acento);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.prayer-section h2 {
    color: var(--jovenes-color-primario);
    margin-bottom: 20px;
}

.prayer-content {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Sección especial de gracia */
.grace-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.grace-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--jovenes-color-acento), transparent);
    border-radius: 0 0 0 150px;
    opacity: 0.5;
}

.grace-section h2 {
    color: var(--jovenes-color-primario);
    margin-bottom: 20px;
}

.grace-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   10. Llamado a la acción (CTA)
   ========================================================================== */
.cta {
    padding: 70px 0;
    background: linear-gradient(rgba(30, 136, 229, 0.9), rgba(13, 71, 161, 0.9)),
              url('../../../images/ministerios/jovenes/cta-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta .contenedor {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ==========================================================================
   11. Carruseles y sliders
   ========================================================================== */
/* Carrusel común */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
    padding-bottom: 50px; /* Espacio para los indicadores */
}

.carousel-track, .carousel-articles {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
}

.carousel-item {
    min-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Botones de navegación */
.carousel-button, .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--jovenes-color-primario);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-button:hover, .carousel-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.prev-button, .carousel-control.prev {
    left: 15px;
}

.next-button, .carousel-control.next {
    right: 15px;
}

.carousel-control.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Indicadores */
.carousel-indicators, .indicator-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    justify-content: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--jovenes-color-primario);
    transform: scale(1.2);
}

/* ==========================================================================
   12. Formularios y contacto
   ========================================================================== */
.contacto-form {
    background-color: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contacto-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--jovenes-color-primario);
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: var(--jovenes-color-texto);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: var(--jovenes-fuente-texto);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--jovenes-color-primario);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    grid-column: 1 / -1;
    background-color: var(--jovenes-color-primario);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jovenes-transicion);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: var(--jovenes-color-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (min-width: 768px) {
    .carousel-item {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
    
    .carousel-control {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 1200px) {
    .carousel-item {
        min-width: calc(33.333% - 14px);
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .hero-texto h1,
    .article-title {
        font-size: 2.5rem;
    }
    
    .hero-texto p,
    .article-subtitle {
        font-size: 1.2rem;
    }
    
    .mision-vision {
        flex-direction: column;
        align-items: center;
    }
    
    .mision-vision-card {
        max-width: 100%;
    }
    
    .contacto-form {
        grid-template-columns: 1fr;
    }
    
    .carousel-button,
    .carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .application-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
    }
    
    .step-number {
        min-width: 100%;
        padding: 12px;
    }
    
    .cta-buttons {
        flex-direction: column;
        max-width: 280px;
        margin: 30px auto 0;
    }
    
    .tooltip .tooltip-text {
        width: 250px;
        margin-left: -125px;
    }
    
    .hero-container {
        height: 65vh;
    }
}

@media (max-width: 480px) {
    .hero-texto h1,
    .article-title {
        font-size: 2rem;
    }
    
    .hero-texto p,
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-texto .btn-hero {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-texto .hero-buttons {
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}
