body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    /* Un gris claro para el fondo general */
}

.header {
    background: rgba(34, 32, 54, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100vw;
    top: 0;
    z-index: 100;
}

.logo {
    min-width: 160px;
    max-width: 200px;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0)), url('hero.jpg') no-repeat center -130px;
    background-size: cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

#hero h1 {
    font-size: 2.5rem;
    /* Ajustado para mobile */
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

#hero .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    /* Redondeo solo a la izquierda */
}

#hero .btn-primary, #cta-subscribe .btn-primary {
    border-radius: 0 0.375rem 0.375rem 0;
    /* Redondeo solo a la derecha */
    background-color: #80c443;
    color: #222036;
    border-color: #80c443;
    font-weight: 600;
}

.input-group .form-control:focus {
    box-shadow: none;
    /* Quitar el glow azul de Bootstrap al hacer focus */
}

.input-group .btn {
    z-index: 2;
    /* Para que el botón se superponga correctamente al input */
}

.input-group-text {
    background-color: #fff;
    border-right: 0;
}


/* --- Sections --- */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #343a40;
}

/* --- Destacado Section --- */
#destacado .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
}

#destacado .card-img-top {
    height: 200px;
    /* Altura fija para la imagen destacada */
    object-fit: cover;
}

#destacado .card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #212529;
}

#destacado .card-text {
    color: #495057;
}

.tag-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.tag-link:hover {
    text-decoration: underline;
}

/* --- Últimas Noticias Section --- */
#ultimas-noticias .news-item {
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .07);
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* Para que el rounded afecte a la imagen */
}

#ultimas-noticias .news-item img {
    width: 100%;
    /* En mobile ocupa todo el ancho */
    height: 150px;
    object-fit: cover;
}

#ultimas-noticias .news-item-content {
    padding: 1rem;
}

#ultimas-noticias .news-item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.5rem;
}

#ultimas-noticias .news-item-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
}


/* --- CTA Subscribe Section --- */
#cta-subscribe {
    background-color: #121212;
    padding: 40px 0;
}

#cta-subscribe h2{
    color: #e0e0e0;;
}

#cta-subscribe p{
    color: #a0a0a0;
}

#cta-subscribe .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

/* --- Footer --- */
footer {
    background-color: #1e1e1e;
    /* Dark footer */
    color: #adb5bd;
    /* Light gray text */
    padding: 30px 0;
    font-size: 0.9rem;
}

footer a {
    color: #ced4da;
    /* Slightly lighter gray for links */
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer .social-icons a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {

    /* Tablet and up */
    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.25rem;
    }

    #hero .input-group {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    #destacado .card-img-top {
        height: 250px;
    }

    #ultimas-noticias .news-item img {
        width: 120px;
        /* Ancho fijo para la imagen en tablet/desktop */
        height: 100px;
        /* Altura fija para la imagen en tablet/desktop */
        object-fit: cover;
    }

    #ultimas-noticias .news-item-content {
        padding-left: 1.5rem;
        /* Espacio entre imagen y texto */
    }
}

@media (min-width: 992px) {

    /* Desktop and up */
    #hero h1 {
        font-size: 3rem;
    }

    #destacado .card-img-top {
        height: 300px;
    }

    #ultimas-noticias .news-item img {
        width: 150px;
        height: 120px;
    }
}

@media (max-width: 992px) {
    #hero {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0)), url('hero.jpg') no-repeat 0px 0px;
    }
}