/*
Theme Name: OpenPress Child YoCuido
Theme URI: www.yocuido.cl
Description: Child theme del tema OpenPress
Author: Victoria Orellana
Author URI: (Tu web)
Template: onepress
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: openpress-child
*/

/* Aquí empieza el CSS del hijo */
/* Grid para sección News */
.section-news .col-md-4 {
    margin-bottom: 30px;
}

.section-news .list-article {
    margin-bottom: 0;
}

/* Responsive: en móvil una columna */
@media (max-width: 768px) {
    .section-news .col-sm-6 {
        width: 100%;
    }
}

.grid-news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grid-news-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-news-title {
    padding: 15px 15px 0;
    margin: 0;
    font-size: 1.2rem;
}

.grid-news-title a {
    color: #333;
    text-decoration: none;
}

.grid-news-excerpt {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}


/* Bloques CTA y Newsletter con colores institucionales */

.cta-block {
    background: #fad0fe;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid #670d7f;
}

.cta-block h3 {
    color: #670d7f;
    margin-top: 0;
}

.cta-block p {
    color: #333;
}

.cta-button {
    display: inline-block;
    background: #670d7f;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #00c992;
    color: #670d7f;
}

/* Newsletter */
.newsletter-block {
    background: #affcea;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid #00c992;
}

.newsletter-block h4 {
    color: #670d7f;
    margin-top: 0;
}

.newsletter-block p {
    color: #333;
}

.newsletter-block input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 30px;
    box-sizing: border-box;
}

.newsletter-block button {
    background: #fb7ed9;
    color: #670d7f;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.newsletter-block button:hover {
    background: #00c992;
    color: #670d7f;
}

.newsletter-block small {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #666;
}

hr {
    margin: 30px 0;
    border: 0;
    border-top: 2px solid #fb7ed9;
}