/* Contenedor de las cards */
.box-news {
    margin-bottom: 200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* alineadas a la izquierda */
    gap: 20px;                   /* espacio uniforme entre cards */
}

/* FCards */
.fcard {
    margin: 10px;
    position: relative;
    width: 250px;          /* ancho fijo */
    height: 300px;         /* alto fijo */
    background-color: #f2f2f2;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    box-shadow: 0 0 0 3px #ffffff80;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.fcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* recorta proporcionalmente */
    border-radius: 8px;
}

.fcard:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

/* Contenido oculto que aparece en hover */
.fcard__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fcard:hover .fcard__content {
    transform: translateY(0);
}

.fcard__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.fcard__description {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

/* Overlay para carrusel */
.foverlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* Popup del carrusel */
.fpopup {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    background: #000;
    border-radius: 8px;
    padding: 10px;
}

/* Contenedor del carrusel */
.fotos-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.fotos {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.fotos-item {
    min-width: 100%;
}

.fotos-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Flechas grandes y visibles */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;       /* tamaño aumentado */
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 10000;
}
.prev { left: 20px; }
.next { right: 20px; }

/* Botón de cierre */
.fclose {
    color: #fff;
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* Modal de imagen grande */
.big-image {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}
.big-image-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}
