/* 
 * Estilos personalizados para la página home
 * Mejoras de UX para secciones interactivas
 */

/* ============================================
   Sección de Programas - Enlaces Clicables
   ============================================ */

/* Hacer que toda la imagen sea un enlace clicable */
.program-box-items .program-image {
    display: block;
    position: relative;
}

.program-box-items .program-image img {
    width: 100%;
    height: auto;
}

/* Hacer que la descripción sea clicable */
.program-description-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-description-link p {
    margin: 0;
}

/* Asegurar que el título mantenga su estilo de enlace */
.program-content h4 a {
    text-decoration: none;
}

/* ============================================
   Responsive - Ajustes móviles
   ============================================ */

@media (max-width: 768px) {
    .program-box-items {
        margin-bottom: 30px;
    }
}

/* ============================================
   Accesibilidad
   ============================================ */

/* Focus visible para navegación por teclado */
.program-image:focus,
.program-description-link:focus,
.arrow-icon:focus {
    outline: 2px solid var(--theme);
    outline-offset: 2px;
}

/* Mejorar contraste en hover para accesibilidad */
.program-content a:focus-visible {
    outline: 2px solid var(--theme);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Divider entre secciones
   ============================================ */

.section-divider {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.section-divider .divider-line {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border) 15%, 
        var(--theme) 50%, 
        var(--border) 85%, 
        transparent 100%);
    position: relative;
}

.section-divider .divider-line::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--body);
    padding: 0 15px;
    color: var(--theme);
    font-size: 16px;
}

/* Animación sutil para el divider */
@media (prefers-reduced-motion: no-preference) {
    .section-divider .divider-line::before {
        animation: dividerPulse 3s ease-in-out infinite;
    }
}

@keyframes dividerPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-divider {
        padding: 30px 0;
    }
}

/* ============================================
   Sección de Noticias - Home Page
   ============================================ */

/* Contenedor de noticia principal con fondo blanco */
.news-wrapper .news-single-items {
    background-color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
}

/* Contenedor del enlace de imagen con padding */
.news-wrapper .news-single-items a.news-image {
    display: block !important;
    margin: 20px 20px 0 20px !important;
    padding: 0 !important;
    width: calc(100% - 40px) !important;
    height: 350px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    position: relative !important;
}

/* La imagen dentro del contenedor */
.news-wrapper .news-single-items a.news-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}

.news-wrapper .news-single-items a.news-image:hover img {
    transform: scale(1.05) !important;
}

/* Miniaturas de noticias (derecha) */
.news-wrapper .news-right-items a.news-thumb {
    display: block !important;
    width: 180px !important;
    height: 135px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px;
}

.news-wrapper .news-right-items a.news-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.news-wrapper .news-right-items a.news-thumb:hover img {
    transform: scale(1.05);
}

/* Responsive para miniaturas de noticias */
@media (max-width: 767px) {
    .news-wrapper .news-right-items a.news-thumb {
        width: 100% !important;
        height: 180px !important;
    }
    
    .news-wrapper .news-single-items a.news-image img {
        height: 250px !important;
    }
}

/* ============================================
   Wave / shape dividers — zoom responsive
   (section-scoped to avoid breaking decorative
   shapes that share the same class names)
   ============================================ */

/* Hero: ola inferior */
.hero-section .bottom-shape {
    right: 0;
    overflow: hidden;
}
.hero-section .bottom-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sección de Programas: ola superior e inferior */
.program-section .top-shape,
.program-section .bottom-shape {
    right: 0;
    overflow: hidden;
}
.program-section .top-shape img,
.program-section .bottom-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* About: ola inferior */
.about-section .bottom-shape {
    right: 0;
    overflow: hidden;
}
.about-section .bottom-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* CTA section */
.cta-section .top-shape,
.cta-section .bottom-shape {
    right: 0;
    overflow: hidden;
}
.cta-section .top-shape img,
.cta-section .bottom-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   Programas - Price Tag & Cards Centradas
   ============================================ */

/* Badge de precio con aspecto de píldora translúcida */
.price-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 5px 20px;
    margin-bottom: 14px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.price-tag span {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.program-box-items:hover .price-tag {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Cuando no hay precio, mantenemos el mismo margin inferior del párrafo
   para que el espaciado antes del arrow-icon sea visualmente idéntico */
.program-content.no-price p {
    margin-bottom: 30px;
}

