html {
    border: transparent;
}

body {
    position: relative;
    height: auto; /* Cambiado a auto para que crezca con las noticias dinámicas */
    min-height: 190vh;
    border: solid 0px red;
}


.fondo {
    position: absolute;
    height: 100%;
    width: 100%;
}

/*COVER*/

section {
    top: 170px;
    position: absolute;
    background-color: transparent;
    min-height: 83%; /* Altura mínima en lugar de fija */
    height: auto;    /* Permite que crezca con el contenido */
    width: 100%;
    padding-bottom: 100px; /* Espacio extra al final para que no choque con el footer */
}

#secion-izquierda,#secion-derecha {
    position: absolute;
    top: 355px;
    height: 82%;
    width: 26%;
    background-color: rgba(255, 255, 255, 0.575);
    border: none;
 
}

#secion-izquierda {
    left: 0%;
}

#secion-derecha {
    right: 0%;  
}


.Titularnot {
    position: absolute;
    top: 0px;
    height: 185px;
    text-align: center;
    width: 100%;

    background-image: url(../img/lago.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
;
}


.cajatitulo{
    position: absolute;
    top: 0px;
    left: 0px;
    height: 180px;
    width: 80%;
    text-align: center;
}

.cajatitulo h1{
    position: absolute;
    margin: 0px;
    top: 65px;
    font-size: 30px;
    text-align: center;
    color: white;
    width: 100%;
}




#reloj {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20%;
    height: 100%;
}


.widget {
    position: absolute;
    top: 0px;
    height: 100%;
    background-color: transparent;
    width: 100%;
}

.widget p {
    display: inline-block;
    line-height: 1em;
    color: white;
}

.fecha {
    position: absolute;
    top: 0px;
    left: 0px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 0.3125rem;
    border-radius: 8px;
    background: rgba(241, 9, 9, 0.39);
    padding: 0px;
    height: 49%;
    width: 100%;

}

.tiempo {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 49%;
    padding: 0px;
    font-size: 2.5em;
    border-radius: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.267);

}

.tiempo .caja-segundos {
    display: inline-block;

}

.tiempo .segundos,
.tiempo .ampm {
    font-size: 2rem;
    display: block;

}

.horas {
    font-size: 3rem;
}

.minutos {
    font-size: 3rem;
}

/*contenedor del Reloj==========================*/

/* Contenedor del Clima (a la izquierda del reloj) */
#clima-container {
    position: absolute;
    top: 0px;
    right: 20%; /* El reloj ocupa el 20%, así que este empieza donde termina el reloj */
    width: 12%; /* Ancho del contenedor de clima */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semitransparente */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border-right: 1px solid rgba(255,255,255,0.1);
    cursor: help; /* Indica que hay más información */
}

/* Estilos del Tooltip */
.clima-tooltip {
    visibility: hidden;
    width: 140px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 10;
    top: 100%; /* Posicionar justo debajo del contenedor */
    left: 50%;
    margin-left: -70px; /* Centrar horizontalmente */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Mostrar tooltip al pasar el mouse */
#clima-container:hover .clima-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Animación del icono del clima */
@keyframes climaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.clima-icono-anim {
    display: inline-block;
    animation: climaFloat 3s ease-in-out infinite;
}

/* --- Efectos de Clima (Lluvia/Nieve) --- */
.clima-effect-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Detrás del texto */
    pointer-events: none;
    border-radius: inherit;
}

.rain-drop {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    width: 1px;
    height: 10px;
    top: -10px;
    animation: rainFall linear infinite;
}

.snowflake {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    top: -5px;
    animation: snowFall linear infinite;
}

@keyframes rainFall {
    to { transform: translateY(200px); }
}

@keyframes snowFall {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(50px) translateX(5px); }
    50% { transform: translateY(100px) translateX(-5px); }
    75% { transform: translateY(150px) translateX(5px); }
    100% { transform: translateY(200px) translateX(0); }
}

.containernoticias {
    position: absolute;
    width: 100%;
    height: 2660px;
    font-size: 30px;
    background-color: #08ce40a0;

}


#encabezado-noticia {
    position: absolute;
    font-size: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 10px;
    height: 80px;
    width: 100%;
    left: 0px;
    background-color: rgba(220, 220, 220, 0.446);
    border-radius: 8px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.70);
}

/*contenedores de noticias*/
.contcardnot {
    top: 150px;
    position: sticky;
    padding: 20px;
    height: 34%;
    width: 100%;
    left: 0px;
    background-color: transparent;
}

/*noticia 1*/
.cardnoticia-1,
.cardnoticia-2,
.cardnoticia-3,
.cardnoticia-4 {
    position: absolute;
    top: 15px;
    width: 340px;
    height: 370px;
    margin: 20px;
}

.cardnoticia-2,
.cardnoticia-4 {
   top: 400px;
}

.cardnoticia-1,
.cardnoticia-2 {
  margin-left: 9%;
  width: 300px;
}


.cardnoticia-1,
.cardnoticia-2,
.cardnoticia-3,
.cardnoticia-4 {
    left: 11%;
}

.cardnoticia-1 .face,
.cardnoticia-2 .face,
.cardnoticia-3 .face,
.cardnoticia-4 .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: .5s;
}

.cardnoticia-1 .front,
.cardnoticia-2 .front2,
.cardnoticia-3 .front3,
.cardnoticia-4 .front4 {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px 10px #000;
}

.cardnoticia-1 .front img,
.cardnoticia-2 .front2 img,
.cardnoticia-3 .front3 img,
.cardnoticia-4 .front4 img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    object-fit: fill;
    border-radius: 10px;
}

.cardnoticia-1 .front .titulo1n,
.cardnoticia-2 .front2 .titulo1n2,
.cardnoticia-3 .front3 .titulo1n3,
.cardnoticia-4 .front4 .titulo1n4 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: #fff;
    font-size: 15px;
    background: rgba(0, 0, 0, .4);
    text-align: center;
}



.cardnoticia-1 .back,
.cardnoticia-2 .back2,
.cardnoticia-3 .back3,
.cardnoticia-4 .back4 {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(3, 35, 54);
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}


.cardnoticia-1 .back .link,
.cardnoticia-2 .back2 .link,
.cardnoticia-3 .back3 .link,
.cardnoticia-4 .back4 .link {
    position: absolute;
    bottom: 10px;
    border-top: solid 1px #ffffff;
    height: 50px;
    line-height: 50px;
    width: 90%;
}


.cardnoticia-1 .back .link a,
.cardnoticia-2 .back2 .link a,
.cardnoticia-3 .back3 .link a,
.cardnoticia-4 .back4 .link a {
    left: 120px;
    color: #f3f3f3;
}


.cardnoticia-1:hover .front,
.cardnoticia-2:hover .front2,
.cardnoticia-3:hover .front3,
.cardnoticia-4:hover .front4 {
    transform: perspective(600px) rotateY(180deg);
}

.cardnoticia-1:hover .back,
.cardnoticia-2:hover .back2,
.cardnoticia-3:hover .back3,
.cardnoticia-4:hover .back4 {
    transform: perspective(600px) rotateY(360deg);
}

/*noticias 1*/
.cardnoticia-1 .back .titulo2n {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 23px;
    margin-top: 20px;
    letter-spacing: 2px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


.cardnoticia-1 .back .cuerpo1 {
    
    margin-top: 70px;
    letter-spacing: 0px;
    font-size: 13px;
    text-align: justify;
    padding: 5px;
    
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


/*noticia 2*/
.cardnoticia-2 .back2 .titulo2n2 {
    top: 0px;
    left: 0px;
    font-size: 20px;
    margin-top: 20px;
    letter-spacing: 2px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.cardnoticia-2 .back2 .cuerpo2 {
    position: absolute;
    top: 60px;
    left: 0px;
    font-size: 13px;
    text-align: justify;
    padding: 10px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}




/*noticias 3*/

.cardnoticia-3 .back3 .titulo2n3 {
    position: absolute;
    top: 0px;
    left: 5px;
    font-size: 23px;
    margin-top: 20px;
    letter-spacing: 2px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.cardnoticia-3 .back3 .cuerpo3 {
    margin-top: 90px;
    padding: 5px;
    font-size: 14px;
    left: 0px;
    text-align: justify; 
    
}



/*noticias 4*/
.cardnoticia-4 .back4 .titulo2n4 {
    position: absolute;
    top: 0px;
    left: 90px;
    font-size: 28px;
    margin-top: 20px;
    letter-spacing: 2px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.cardnoticia-4 .back4 .cuerpo4 {
    margin-top: 70px;
    font-size: 14px;
    text-align: justify; 
    left: 0px;
}

@media screen and (max-width: 1350px) {

    #reloj {
        right: 0px;
    }

    #clima-container {
        right: 20%;
    }


}

@media screen and (max-width: 1310px) {


    #reloj {
        right: 0px;
        width: 20%;
    }

    #clima-container {
        right: 20%;
    }


    #caja-segundos p{
        font-size: 15px;
    }
}





@media screen and (max-width: 1183px) {


    #reloj {
        right: 0px;
        width: 20%;
    }

    #clima-container {
        right: 20%;
    }


    #tiempo p{
        margin-top: 7px;
        font-size: 40px;
    }

    #caja-segundos p{
        font-size: 15px;
    }
}

@media screen and (max-width: 1177px) {
    .fecha p{
        font-size: 16px;
    }
}



@media screen and (max-width: 1160px) {
    #reloj {
        right: 0px;
    }
    #clima-container {
        right: 20%;
    }


}





@media screen and (max-width: 1024px) {
    #tiempo p{
        margin-top: 8px;
        font-size: 30px;
    } 
    
    #caja-segundos p{
        font-size: 15px;
    }
}

@media screen and (max-width: 1000px) {
    .Titularnot h1 {
        left: 0%;
        width: 69%;
    }

    #caja-titulo{
        left: 0%;
        width: 80%;
    }

    #caja-titulo h1{
        font-size: 22.6px;
        width: 100%;
        
    }

    #reloj {
        right: 0px;
        width: 22%;
    }

    #clima-container {
        right: 22%;
        width: 15%;
    }

}




@media screen and (max-width: 920px) {
    #body-noticias {
        height: 4350px;
    }

    #main-noticias {
        height: 3900px;
    }
}

@media screen and (max-width: 895px) {
    
    #reloj {
        right: 0px;
        width: 25%;
    }

    #clima-container {
        right: 25%;
        width: 18%;
    }
}

@media screen and (max-width: 850px) {
    #caja-titulo{
        top: 0px;
        left: 0%;
        height: 100%;
        width: 80%;
    }

    #caja-titulo h1{
        top: 75px;
        font-size: 22.6px;
        width: 100%;
        
    }

}

@media screen and (max-width: 790px) {
    #reloj {
        right: 0px;
        width: 30%;
    }
    
    #clima-container {
        right: 30%;
        width: 20%;
    }

    #caja-titulo{
        top: 0px;
        left: 0%;
        width: 70%;
    }

    #caja-titulo h1{
        top: 60px;
        font-size: 22.6px;
        width: 100%;
    }
}

@media screen and (max-width: 750px) {
    #caja-titulo{
        left: 0%;
        width: 70%;
    }

    #caja-titulo h1{
        top: 60px;
        font-size: 22.6px;
        width: 100%;
        
    }
}

@media screen and (max-width: 720px) {

    #caja-titulo{
        left: 0%;
        width: 75%;
    }

    
    #reloj{
        right: 0px;
        height: 100%;
        width: 25%;
    }

    #clima-container {
        right: 25%;
        width: 20%;
    }

    .widget{
        right: 0px;
        width: 100%px;
    }


    .fecha p{
        margin-top: 12px;
        font-size: 15px;
    }

    #tiempo p{
        top: 0px;
        font-size: 25px;
    }

    #caja-segundos p{
        font-size: 12px;
    }
}

@media screen and (max-width: 700px) {
    #tiempo p{
        top: 0px;
        font-size: 20px;
    }

    #caja-segundos p{
        font-size: 12px;
    }

}

@media screen and (max-width: 640px) {
    #tiempo p{
        top: 0px;
        font-size: 18px;
    }

    #caja-segundos p{
        font-size: 11px;
    }
}

@media screen and (max-width: 611px) {
    .fecha p{
        margin-top: 9px;
        font-size: 15px;
    }

    #tiempo p{
        top: 0px;
        font-size: 18px;
    }

    #caja-segundos p{
        font-size: 11px;
    }
}


@media screen and (max-width: 599px) {
    .fecha p{
        margin-top: 0px;
        font-size: 15px;
    }

    #tiempo p{
        top: 0px;
        font-size: 18px;
    }

    #caja-segundos p{
        font-size: 11px;
    }
}

@media screen and (max-width: 571px) {

    #tiempo p{
        top: 0px;
        font-size: 18px;
    }

    #caja-segundos p{
        font-size: 10px;
        margin-left: -10px;
    }
}



@media screen and (max-width: 520px) {
    .Titularnot {
        top: 101px;
    }

    #tiempo p{
        top: 0px;
        font-size: 20px;
        margin-left: -6px;
    }

    #caja-segundos p{
        font-size: 12px;
        margin-left: -10px;
    }
}

@media screen and (max-width: 492px) {
    #body-noticias{
        height: 4470px;
    }

    
    .Titularnot{
        top: 100px;
        height: 150px;
        background-color: rgba(0, 0, 0, 0.438);
    }


    #caja-titulo{
        top: 55px;
        left: 0px;
        height: 40px;
        width: 70%;
    }

    #caja-titulo h1{
        left: 0px;
        width: 100%;
        font-size: 14px;
    }

    #reloj{
        right: 0px;
        height: 100%;
        width: 155px;
    }

    #clima-container {
        right: 155px; /* Usamos px porque el reloj usa px aquí */
        width: 80px;
    }

    .widget{
        right: 0px;
        width: 150px;
    }

    .tiempo{
        height: 65px; 
    }

    .fecha p{
        font-size: 12.5px;
    }

    .tiempo p{
        top: 0px;
        font-size: 18px;
    }

    #caja-segundos p{
        font-size: 15px;
    }

    
}

@media screen and (max-width: 412px) {
 

 

    .Titularnot{
        top: 125px;
        height: 150px;
    }

    #caja-titulo{
        top: 0;
        height: 100%;
        left: 25%;
        width: 35%;
        background-color: rgba(0, 217, 255, 0.26);
    }

    #caja-titulo h1{
        position: absolute;
        top: 55px;
        left: 0px;
        width: 100%;
        font-size: 15px;
    }

    #reloj{
        right: 0px;
        width: 40%;
    }

    #clima-container {
        left: 0px;
        
        width: 25%;
    }
    
    .clima-tooltip {
        top: 30%;
        left: 85%;
        margin-left: 13px;
        margin-top: -20px;
    }

    .widget{
        right: 0px;
        width: 100%;
    }

    .tiempo{
        height: 50%;
        width: 100%;
    }

    .fecha{
        height: 49%;
    }

    .fecha p{
        font-size: 12.5px;
    }

    #tiempo p{
        top: 0px;
        font-size: 23px;
    }

    #caja-segundos p{
        font-size: 12px;
    }

    #boton-inicio {
        top: 11px;
        border: solid 3px green;
    }

    #secion-izquierda,#secion-derecha {
        display: none;
    }

    #noticias-dinamicas {
   top: 50px;
}

section {
   
    background-color: transparent;
    /* Espacio extra argba(255, 255, 255, 0.788) con el footer */
}

}

/* --- Contenedor de Noticias en Grid --- */
#noticias-dinamicas {
    display: grid;
    /* CAMBIO: Regresar a 1 columna para dar protagonismo a videos e imágenes */
    grid-template-columns: 1fr;
    gap: 40px; 
    padding: 40px 20px; /* Espacio interno */
    max-width: 800px; /* Ancho contenido para lectura cómoda en una columna */
    margin: 0 auto; /* Centra el grid */
    margin: 300px auto 0 auto; /* Centra el grid y baja el contenido para no tapar el titular */
}

/* --- ESTILOS PARA NOTICIAS DINÁMICAS (Copiados y adaptados de admin.css) --- */

.nueva-publicacion {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
    /* Flexbox para igualar alturas y distribuir contenido */
    display: flex;
    flex-direction: column;
    height: 100%; /* Fuerza a la tarjeta a ocupar toda la altura de la fila del grid */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nueva-publicacion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-wrapper {
    width: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 650px;
}


.encabezado-dinamico {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px 20px 10px 20px;
    background-color: #fff;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08); /* Sombra moderna y difusa */
    z-index: 2; /* Para que la sombra caiga sobre el contenido multimedia */
    border-left: 5px solid #03A64A; /* Borde verde corporativo */
    border-radius: 10px;
}

.encabezado-dinamico a {
    position: relative;
    width: 100%;
    text-decoration: none;
    color: #050505;
    font-weight: bold;
    font-size: 1.1rem;
   
}

.encabezado-dinamico h2 {
    margin: 0;
    font-size: inherit;
}

.caja-texto-dinamico {
    position: relative;
    height: auto;
    padding: 5px 20px 15px 20px;
    overflow-wrap: break-word;
    flex-grow: 1; /* Esto hace que el texto ocupe el espacio disponible, empujando el pie hacia abajo */
    background-color: #fdfdfd; /* Fondo muy sutil */
    box-shadow: inset 0 3px 6px -3px rgba(0,0,0,0.04); /* Sombra interna sutil superior */
}

.caja-texto-dinamico h3 {
    position: relative;
    font-size: 16px;
    color: #333;
    white-space: normal;
}

/* Grid de imágenes */
.galeria-grid { display: grid; width: 100%; height: 350px; gap: 2px; background-color: #fff; overflow: hidden; }
.galeria-grid .img-contenedor { position: relative; width: 100%; height: 100%; overflow: hidden; }
.galeria-grid img, .nueva-publicacion .img-unica { width: 100%; height: 100%; object-fit: cover; display: block; }
.nueva-publicacion .img-unica { height: 350px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-3 .img-contenedor:first-child { grid-row: 1 / 3; }
.grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.more-images::after { content: attr(data-count); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); color: white; display: flex; justify-content: center; align-items: center; font-size: 2rem; font-weight: bold; }

/* Reacciones */
.area-reacciones { display: flex; align-items: center; justify-content: flex-start; padding: 10px 15px; border-top: 1px solid #f0f0f0; background-color: #fff; margin-top: 5px; }
.reaccion-wrapper { position: relative; display: inline-block; width: auto; }
.reacciones-popover { display: none; position: absolute; bottom: 100%; left: 10px; background-color: white; border-radius: 50px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); padding: 5px 10px; gap: 10px; z-index: 100; animation: fadeIn 0.2s ease-out; margin-bottom: 10px; }
.reacciones-popover.visible { display: flex; }
.reaccion-icono { font-size: 1.8rem; cursor: pointer; transition: transform 0.2s; }
.reaccion-icono:hover { transform: scale(1.3); }
.reaccion-btn-principal { background: transparent; border: none; cursor: pointer; font-size: 1rem; color: #606770; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 50px; transition: background-color 0.2s; font-weight: 600; width: auto; justify-content: flex-start; }
.reaccion-btn-principal:hover { background-color: #f2f2f2; }
.resumen-reacciones { margin-left: 10px; display: flex; align-items: center; }
.fecha-noticia { display: block; text-align: right; color: #666; margin-top: 10px; font-size: 0.85rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* Animación de salida (Fade Out) */
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

/* Estilos para Compartir y Comentarios */
.pie-publicacion {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

.area-compartir {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.area-compartir b {
    color: #555;
    font-size: 0.9em;
}

.area-compartir a img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.area-compartir a:hover img {
    transform: scale(1.15);
}

.area-comentarios .titulo-comentarios {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: #333;
}

.lista-comentarios {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.comentario-item {
    background-color: #f1f2f6;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.comentario-item p {
    margin: 0 0 5px 0;
    word-wrap: break-word;
    font-size: 0.95em;
}

.comentario-item small {
    color: #777;
    font-size: 0.8em;
}

.no-comentarios {
    color: #888;
    font-style: italic;
    padding: 10px;
}

.form-comentario {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-comentario .input-comentario {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
}

.form-comentario textarea {
    resize: vertical;
    min-height: 50px;
}

.form-comentario button {
    align-self: flex-end;
    padding: 8px 16px;
    background-color: #03A64A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.form-comentario button:hover {
    background-color: #028a3c;
}


/* --- Estilos Barra de Acciones (Tipo Facebook) --- */
.barra-acciones {
    display: flex;
    justify-content: space-around; /* Distribuye los botones equitativamente */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 0;
    margin: 5px 15px 10px 15px;
}

.btn-accion {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #606770;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.btn-accion:hover {
    background-color: #f2f2f2;
}

.seccion-compartir, .seccion-comentarios {
    padding: 0 15px 15px 15px;
    animation: fadeIn 0.3s ease;
}

/* --- Spinner de Carga --- */
.loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Skeleton Loading (Carga de Esqueleto) --- */
.skeleton-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.skeleton {
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* Animación de brillo */
.skeleton::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    100% { transform: translateX(100%); }
}

.skeleton-header { height: 24px; width: 60%; margin: 10px auto 20px; }
.skeleton-img { width: 100%; height: 300px; margin-bottom: 15px; border-radius: 8px; }
.skeleton-text { height: 16px; width: 90%; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-meta { height: 14px; width: 30%; margin-left: auto; margin-top: 15px; }
.skeleton-actions { 
    height: 40px; 
    width: 100%; 
    margin-top: 15px; 
    border-top: 1px solid #f0f0f0; 
}


/* --- Botones Leer más / Leer menos --- */
.btn-leer-mas, .btn-leer-menos {
    background: none;
    border: none;
    color: #03A64A;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    margin-top: 5px;
    text-decoration: underline;
}

.btn-leer-mas:hover, .btn-leer-menos:hover {
    color: #028a3c;
}

/* --- Notificación Toast (Nueva Noticia) --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #222;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    border-left: 4px solid #03A64A;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
