.item-news{
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.5;
    padding-top: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 2px solid #989898;
}
#news{
    padding-top: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 5);
}


.primero{
    
    padding-top: calc(var(--spacing-unit) * 1)!important;
    
}
.item-news .title{
    font-size: large;
    font-weight: 700;
}


.item-news .fecha{
    margin-left: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: black;

}
.item-news .hora{
    margin-left: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: black;

}
.item-news .fecha::before {
    /* Propiedades clave para que funcione Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 400; /* Necesario para los iconos sólidos (fas) */
    content: "\f073"; /* Código Unicode para el icono "calendar-alt" */

    /* Estilos adicionales para apariencia y espaciado */
    display: inline-block; /* Opcional, para mejor control */
    color: black;
    font-size: 12px; /* Tamaño del icono */
    margin-right: 10px; /* Espacio entre el icono y el texto */
    vertical-align: middle; /* Para alinear verticalmente con el texto */
}
.item-news .hora::before {
        /* Propiedades clave para que funcione Font Awesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 400; /* Necesario para los iconos sólidos (fas) */
        content: "\f017"; /* Código Unicode para el icono "calendar-alt" */

        /* Estilos adicionales para apariencia y espaciado */
        display: inline-block; /* Opcional, para mejor control */
        color: black;
        font-size: 12px; /* Tamaño del icono */
        margin-right: 10px; /* Espacio entre el icono y el texto */
        vertical-align: middle; /* Para alinear verticalmente con el texto */
}
    
.item-news .cuerpo{
    display: flex;
    gap: 20px;
}
.item-news .cuerpo.izquierda{
    flex-direction: row-reverse;
}
.item-news .cuerpo.derecha{
    flex-direction: row;
}
    
.item-news .cuerpo .imagen{
    position: relative;
    width: 40%;
}
.item-news .cuerpo .texto{
    width: 60%;
}
h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin-left: 0px;
    margin-right: auto;
    margin-bottom: var(--spacing-unit);
    line-height: 1.3;
    text-align: left;
    color: var(--secondary-color);
    font-weight: 300;
    font-family: 'EB Garamond', serif;
}
.breve_news{
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 12px;
    color: white;
    font-weight: 700;
}

.breve_news.tipo2{
    background: #ffbc05;
}

.breve_news.tipo1{
    background: #ff0d0d;
}

.item-news .cuerpo .texto{
    color: black;
}

/* Responsive adjustments */
@media (max-width: 669px) {
    #news{
        padding-top: calc(var(--spacing-unit) * 1);
        padding-bottom: calc(var(--spacing-unit) * 5);
    }

    .item-news .cuerpo{
        flex-direction: column !important;
    }
        
    .item-news .cuerpo .imagen{
        width: 100%;
    }

    .item-news .cuerpo .texto {
        width: 100% !important;
        margin-top: 10px;
        padding-left: 0 !important;
    }
}

/* Stay Informed Button */
.stay-informed-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6E6A19, #8a8e4b);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stay-informed-btn:hover {
    background: linear-gradient(135deg, #8a8e4b, #6E6A19);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.stay-informed-link {
    margin: 40px 0 !important;
}

/* Separación específica para Stay Informed en whats-new */
.all-news {
    display: block;
    margin-top: 20px !important;
    margin-bottom: 50px;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}
#whats-new a[href="news.html"] {
    font-size: 18px;
    /* color: #4A90E2; */
    text-decoration: none;
    font-weight: 500;
}

#whats-new a[href="news.html"]:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .stay-informed-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .stay-informed-link {
        margin: 25px 0 !important;
    }
    
    #whats-new a[href="news.html"] {
        margin-top: 40px !important;
        margin-bottom: 20px;
        font-size: 16px;
    }
}

/* User Reviews Section */
#user-reviews {
    padding-top: calc(var(--spacing-unit) * 1);
    padding-bottom: calc(var(--spacing-unit) * 3);
}

:root {
    --spacing-unit: 1rem;
}

#user-reviews p {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

#user-reviews p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: calc(var(--spacing-unit) * 2);
    justify-items: center;
}

.review-card {
    background: #00355F;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid white;
    width: 350px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stars {
    margin-bottom: 5px;
}

.stars i {
    color: white;
    font-size: 1rem;
    margin: 0 1px;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.25;
    color: white;
    margin-bottom: 0;
    font-style: italic;
    text-align: center;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.reviewer-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 3px;
    text-align: left;
}

@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}




@media (max-width: 768px) {

    #user-reviews p.review-text {
        font-size: 0.9rem;
    }


    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: calc(var(--spacing-unit) * 1.5);
    }
    
    .review-card {
        padding: 15px;
        width: 350px;
        height: 130px;
    }
    
    .stars i {
        font-size: 0.9rem;
    }
    
    .reviewer-name {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    .review-text {
        font-size: 0.85rem;
        line-height: 1.2;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

#user-reviews p a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .reviews-grid {
        /* padding: 0 var(--spacing-unit); */
        margin-top: var(--spacing-unit);
        gap: 12px;
    }
    
    .review-card {
        width: 320px;
        height: 120px;
        padding: 12px;
    }
    
    .stars {
        margin-bottom: 4px;
    }
    
    .stars i {
        font-size: 0.8rem;
    }
    
    .reviewer-name {
        margin-bottom: 2px;
        font-size: 0.8rem;
    }
    
    .review-text {
        font-size: 0.8rem;
        line-height: 1.15;
        margin: 0;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Match h1 size with other pages on mobile */
@media (max-width: 650px) {
    h1 { 
        font-size: 2rem;
    }
}

body.dark-theme .logo,
body.dark-theme .logo-desktop,
body.dark-theme .logo-mobile,
body.dark-theme .social-logo {
    filter: invert(1) brightness(2);
}

body.dark-theme .item-news a {
    color: #bb86fc !important;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}
