/* Estilos básicos */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

p {
    text-align: justify;
    margin: 15px;
    color: #333;
    
}

img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* Contenedor principal */
.content2 {
    padding: 0;
    text-align: center;
    border: 8px solid black;
    border-radius: 20px;
    background-color: #ffffff;
}

/* Contenedor noticias */
.notis1 {
    padding: 0;
    text-align: center;
}

/* Texto centrado */
.textocentrado {
    text-align: center;
}

/* Botón general */
.button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    margin: 20px 0;
}

.button:hover {
    background-color: #45a049;
}

/* iframe */
.iframe-style {
    border: none;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

/* Encabezado */
header {
    background-color: #ffffff;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
}

header img {
    max-width: 300px;
}

header a {
    color: #0066cc;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

/* Men�� de navegaci��n */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

nav img {
    max-width: 50px;
}

/* Pie de p��gina */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    text-align: center;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Imagen con pie */
#imageContainer {
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

/* Lista oculta con estilo */
.list-container {
    display: none;
}

.list-container ul {
    list-style-type: none;
    padding: 0;
}

.list-container li:nth-child(odd) {
    background-color: #4DA6FF;
}

.list-container li:nth-child(even) {
    background-color: #0000B2;
}

.list-container li {
    padding: 10px;
    margin: 5px 0;
    transition: background-color 0.3s ease;
}

.list-container li:hover {
    background-color: #ffd700;
}

.list-container a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Botones */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.formulario button {
    width: 150px;
    height: 50px;
}

.formulario input {
    width: 200px;
    height: 50px;
}

/* Contenedor con imagen */
.contenedor {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.contenedor img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
}

/* Contenedor de im��genes */
.image-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.image-container img {
    width: 150px;
    height: 150px;
}

/* Bloque de enlaces con im��genes */
.bloque1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    justify-content: center;
}

.bloque1 a {
    display: inline-block;
    margin: 10px 0;
    width: 150px;
    height: 150px;
}

.bloque1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Barra superior de usuario */
.barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    flex-wrap: wrap;
}

.barra .texto {
    font-weight: bold;
    margin-bottom: 5px;
}

.barra .botones {
    display: flex;
    gap: 10px;
}

.botones a {
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.registrarse {
    background-color: #ccc;
    color: black;
}

.login {
    background-color: #28a745;
    color: white;
}

.salida {
    background-color: red;
    color: black;
}

/* Responsive barra */
@media (min-width: 600px) {
    .barra {
        flex-wrap: nowrap;
    }

    .barra .texto {
        margin-bottom: 0;
    }
}

/* Barra superior derecha de usuario */
.usuario-bar-wrapper {
    width: 100%;
    background-color: #f0f0f0;
    float: right;
}

.usuario-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
}

.usuario-bar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.separador {
    margin: 0 5px;
}

/* Responsive general */
@media (min-width: 768px) {
    .content2 {
        max-width: 900px;
        margin: 0 auto;
    }

    header img {
        max-width: 300px;
    }

    nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
    }

    nav img {
        max-width: 50px;
    }
}