/* ==========================
   Reset y box-sizing
========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================
   Barra de Busqueda
========================== */
.Barra {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgb(0, 115, 255);
    padding: 18px;
    border: 2px solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
}

.Barra a {
    color: white;
    text-decoration: none;
    margin: 10px;
    font-size: 20px;
}

.Barra a:hover {
    color: rgb(255, 0, 0);
}

.Logo {
    border: 3px solid white;
    border-radius: 1000px;
    background-image: url("img/Fanthor.jpeg");
    background-position: center;
    background-size: cover;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

/* ==========================
   Fondo
========================== */
body {
    min-height: 100vh;
    margin-top: 100px;
    background-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Bungee', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

/* ==========================
   Contenido principal
========================== */
.Noticiero {
    font-size: 15vw; /* tamaño relativo */
    color: white;
    margin: 1px 0;
    text-align: center;
}

.Titulo {
    background-color: rgb(0, 115, 255);
    color: white;
    width: 100%;
    font-size: 4vw;
    height: 250px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.Titulo2 {
    background-color: rgb(0, 115, 255);
    color: white;
    width: 100%;
    font-size: 4vw;
    height: 250px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.Titulo3 {
    background-color: rgb(0, 115, 255);
    color: white;
    width: 100%;
    font-size: 4vw;
    height: 250px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.Titulo4 {
    background-color: rgb(0, 115, 255);
    color: white;
    width: 100%;
    font-size: 4vw;
    height: 250px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.Titulo5 {
    background-color: rgb(0, 115, 255);
    color: white;
    width: 100%;
    font-size: 4vw;
    height: 250px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ==========================
   Contenedor de noticias
========================== */
.Noticias {
    display: flex;
    flex-direction: row; /* horizontal en PC */
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap; /* baja a otra fila si es necesario */
    margin: 20px 0 50px 40px;
}

.Noticias2 {
    display: flex;
    flex-direction: row; /* horizontal en PC */
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap; /* baja a otra fila si es necesario */
    margin: 20px 0 50px 40px;
}
.Noticias3 {
    display: flex;
    flex-direction: row; /* horizontal en PC */
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap; /* baja a otra fila si es necesario */
    margin: 20px 0 50px 40px;
}
.Noticias4 {
    display: flex;
    flex-direction: row; /* horizontal en PC */
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap; /* baja a otra fila si es necesario */
    margin: 20px 0 50px 40px;
}
.Noticias5 {
    display: flex;
    flex-direction: row; /* horizontal en PC */
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap; /* baja a otra fila si es necesario */
    margin: 20px 0 50px 40px;
}

/* ==========================
   Contenido individual
========================== */
.Contenido {
    display: none; /* por defecto ocultas */
    flex-direction: column; /* contenido vertical dentro de cada noticia */
    align-items: center;
    width: 260px;
    border-radius: 50px;
    padding: 20px;
    background-color: rgb(0, 115, 255);
    border: 3px solid black;
    margin-bottom: 20px;
}

.Contenido.activa {
    display: flex;
}

.Contenido2 {
    display: none; /* por defecto ocultas */
    flex-direction: column; /* contenido vertical dentro de cada noticia */
    align-items: center;
    width: 260px;
    border-radius: 50px;
    padding: 20px;
    background-color: rgb(0, 115, 255);
    border: 3px solid black;
    margin-bottom: 20px;
}

.Contenido2.activa {
    display: flex;
}

.Contenido3 {
    display: none; /* por defecto ocultas */
    flex-direction: column; /* contenido vertical dentro de cada noticia */
    align-items: center;
    width: 260px;
    border-radius: 50px;
    padding: 20px;
    background-color: rgb(0, 115, 255);
    border: 3px solid black;
    margin-bottom: 20px;
}

.Contenido3.activa {
    display: flex;
}

.Contenido4 {
    display: none; /* por defecto ocultas */
    flex-direction: column; /* contenido vertical dentro de cada noticia */
    align-items: center;
    width: 260px;
    border-radius: 50px;
    padding: 20px;
    background-color: rgb(0, 115, 255);
    border: 3px solid black;
    margin-bottom: 20px;
}

.Contenido4.activa {
    display: flex;
}
.Contenido5 {
    display: none; /* por defecto ocultas */
    flex-direction: column; /* contenido vertical dentro de cada noticia */
    align-items: center;
    width: 260px;
    border-radius: 50px;
    padding: 20px;
    background-color: rgb(0, 115, 255);
    border: 3px solid black;
    margin-bottom: 20px;
}

.Contenido5.activa {
    display: flex;
}

/* ==========================
   Diseños de las portadas
========================== */



.Portada {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 2px solid white;
    border-radius: 25px;
}

.Texto {
    text-align: center;
}

p {
    font-family: Arial, Helvetica, sans-serif;
}

/* ==========================
   Slider
========================== */
.Slider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.izquierda {
    left: 10px;
}

.derecha {
    right: 10px;
}

.flecha:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ==========================
   Flechas MÓVIL - derecha arriba y abajo
========================== */
@media screen and (max-width: 768px) {
    .izquierda {
        left: 50%;           /* centrar horizontal */
        top: -40px;          /* encima del slider */
        transform: translateX(-10%);
    }

    .derecha {
        right: 50%;             /* punto medio desde la derecha */
        bottom: -20px;          /* debajo del slider */
        top: auto;              /* importante para quitar el top */
        transform: translateX(10%); /* compensa hacia la derecha */
    }
}

/* ==========================
   Botones
========================== */
.Button {
    background-color: rgb(4, 255, 0);
    width: 90%;
    max-width: 150px;
    text-align: center;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 10px 0;
}

.Button:hover {
    background-color: rgb(27, 156, 10);
}

/* ==========================
   Copyright
========================== */
.Copyright {
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

/* ==========================
   Media Queries - Móvil
========================== */
@media screen and (max-width: 768px) {
    /* Barra flexible */
    .Barra {
        flex-direction: column;
        padding: 10px;
    }

    .Barra a {
        font-size: 16px;
        margin: 5px 0;
    }

    .Noticiero {
        font-size: 8vw;
    }

    .Titulo {
        font-size: 6vw;
        height: auto;
        padding: 10px 0;
    }

    /* Noticias verticales en móvil */
    .Noticias {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }

    /* Flechas del slider */
    .derecha {
        right: 5px;
    }

    .izquierda {
        left: 5px;
    }

    /* Contenido se adapta al ancho */
    .Contenido {
        width: 90%;
        max-width: 260px;
    }

    .Button {
        width: 90%;
    }
}