* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;           /* Blanco para h1 */
  margin-bottom: 1rem;
  font-family: 'Arial', sans-serif;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: black;           /* Negro para h2 */
  margin-bottom: 0.75rem;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: black;           /* Negro para h3 */
  margin-bottom: 0.5rem;
  font-family: 'Arial', sans-serif;
}
a {
    text-decoration: none;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    padding: 0.5em;
    background-color: orangered;
}

header h3 {
    text-align: center;
}

nav ul {
    margin-top: 1em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

nav ul li a {
    background-color: floralwhite;
    padding: 0.3em;
    border-radius: .25rem;
    color: orangered;
}

main {
    font-family: Arial, Helvetica, sans-serif;
}

.contenedora {
    margin-inline: 1em;
}

.bienvenida {
    position: relative;
    padding: 4rem 1rem;
    background-image: url("../imagenes/imagendecorativa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
}

.bienvenida::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45); /* Opacidad del fondo */
    z-index: 1;
}

.bienvenida h1,
.bienvenida p {
    position: relative;
    z-index: 2;
    color: white;
    margin-bottom: 1rem;
}

/* Quitamos fondo beige a elementos dentro de .bienvenida si los hubiera */
.bienvenida .contenedora {
    background: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.buscador {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.buscador input[type="text"] {
    padding: 0.5em;
    width: 60%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 0.25em;
}

.buscador button {
    padding: 0.5em 1em;
    background-color: orangered;
    color: white;
    border: none;
    border-radius: 0.25em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buscador button:hover {
    background-color: orangered;
}

.debate, .peliculas {
    background-color: blanchedalmond;
    padding-block: 1em;
}

.debate h2, .archivo h2, .peliculas h2 {
    text-transform: uppercase;
}

.debate p, .peliculas p {
    margin-block: 0.5em;
    color: rgb(37, 37, 37);
}

.debate li {
    border-top: 1px solid gray;
}

/* NUEVOS ESTILOS para item de debate */
.debate-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 1em;
    align-items: center;
    padding-block: 1em;
    border-top: 1px solid gray;
}

.debate-item figure {
    margin: 0;
}

.debate-item img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.debate-numero {
    font-weight: bold;
    font-size: 1.2rem;
}

.debate-titulo {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.boton-vermas {
    display: inline-block;
    padding: 0.4em 0.8em;
    background-color: orangered;
    color: white;
    border-radius: 0.25em;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.boton-vermas:hover {
    background-color: orangered;
}
/* FIN nuevos estilos */

.archivo {
    background-color: rgb(44, 44, 44);
    padding-block: 1em;
}

.archivo h2 {
    color: floralwhite;
}

.archivo p {
    color: floralwhite;
    margin-block: 0.5em;
}

footer {
    background-color: orangered;
    padding: 1em;
}

footer p {
    font-size: 0.7rem;
    color: rgb(37, 37, 37);
}

/* Estilos específicos para la página de inicio de sesión */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em 1em;
    background-color: #030303;
}

.login-container {
    background-color: #1a1a1b;
    padding: 2em;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    color: white;
    font-family: Arial, sans-serif;
}

.login-container h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.login-container p {
    font-size: 0.9rem;
    color: #d7dadc;
    margin-bottom: 1.5em;
}

.login-container a {
    color: #0079d3;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

.login-container form input {
    width: 100%;
    padding: 0.6em;
    margin: 0.5em 0;
    border-radius: 5px;
    border: none;
    background-color: #2a2a2b;
    color: white;
}

.login-container .submit-button {
    background-color: #d93a00;
    color: white;
    font-weight: bold;
    padding: 0.7em;
    border: none;
    border-radius: 5px;
    width: 100%;
    margin-top: 1em;
    cursor: pointer;
}

/* Estilos específicos para link de registro */
.registro-link {
    margin-top: 1.5em;
    text-align: center;
}

.registro-link p {
    font-size: 0.85rem;
    color: #d7dadc;
}

.registro-link a {
    color: #0079d3;
    font-weight: bold;
    text-decoration: none;
}

.registro-link a:hover {
    text-decoration: underline;
}

/* Formulario de crear usuario */
.form-crear-usuario {
    background-color: #1a1a1b;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    max-width: 400px;
    margin: 3rem auto;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
    color: #ddd;
    font-family: Arial, sans-serif;
}

.form-crear-usuario h1 {
    color: #ff4500;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-crear-usuario form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-crear-usuario .campo label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #eee;
}

.form-crear-usuario .campo input,
.form-crear-usuario .campo select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #2a2a2b;
    color: #eee;
    font-size: 1rem;
    outline-offset: 2px;
    transition: box-shadow 0.2s ease, border 0.2s ease;
}

.form-crear-usuario .campo input::placeholder {
    color: #888;
}

.form-crear-usuario .campo input:focus,
.form-crear-usuario .campo select:focus {
    box-shadow: 0 0 6px 2px #ff4500;
    outline: none;
}

.form-crear-usuario select {
    cursor: pointer;
}

.form-crear-usuario .btn-crear {
    background-color: #ff4500;
    border: none;
    color: white;
    padding: 0.85rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.form-crear-usuario .btn-crear:hover {
    background-color: #e03d00;
}

.form-crear-usuario .nota {
    font-size: 0.85rem;
    color: #bbb;
    text-align: center;
    margin-top: 1.2rem;
}

.form-crear-usuario .nota a {
    color: #ff4500;
    text-decoration: none;
}

.form-crear-usuario .nota a:hover {
    text-decoration: underline;
}

/* --- Móvil (default): 1 imagen y media con scroll táctil --- */
.slider-horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px;
}

.slider-horizontal .slide {
    flex: 0 0 70%;
    scroll-snap-align: start;
}

.slider-horizontal .slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

img {
    max-width: 100%;
}

/* --- Pantallas medianas (640px o más): 3 imágenes visibles con scroll --- */
@media (min-width: 640px) {
    .slider-horizontal .slide {
        flex: 0 0 calc(100% / 3 - 12px);
    }
}

/* --- Pantallas grandes (1025px o más): DISEÑO EN TARJETA CENTRADO --- */
@media (min-width: 1025px) {
    body {
        background-color: #000;
    }

    .contenedora {
        max-width: 900px;
        margin: 0 auto;
        padding: 2rem;
        background-color: blanchedalmond;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .bienvenida {
        border-radius: 8px 8px 0 0;
        padding-block: 2rem;
        padding-inline: 2rem;
        text-align: center;
    }

    .buscador {
        justify-content: center;
        padding-bottom: 1rem;
    }

    .debate, .peliculas {
        padding-inline: 0;
        background-color: transparent;
    }

    .archivo {
        background-color: #2c2c2c;
        border-radius: 6px;
        padding-inline: 1.5rem;
    }

    footer {
        max-width: 900px;
        margin: 0 auto;
        border-radius: 0 0 8px 8px;
    }

    figure {
        text-align: center;
    }

    .slider-horizontal .slide {
        flex: 0 0 calc(100% / 5 - 12px);
        scroll-snap-align: none;
    }
}


/* --- seccion de debates --- */
.ver-todos-debates {
    text-align: center;
    margin: 15px 0 25px;
}

.ver-todos-debates button {
    background-color: orangered;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ver-todos-debates button:hover {
    background-color: orangered;
}

/*botones peliculas*/
.slider-horizontal button {
    background-color: orangered;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slider-horizontal button:hover {
    background-color: orangered;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.slider-horizontal .slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ver-todas {
    text-align: center;
    margin: 20px 0;
}

.ver-todas a {
    text-decoration: none;
}

.ver-todas button {
    background-color: #222;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ver-todas button:hover {
    background-color: #444;
    transform: scale(1.05);
}

.boton-archivo {
    text-align: center;
    margin-top: 20px;
}

.boton-archivo a {
    text-decoration: none;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-archivo a:hover {
    background-color: #333333;
    transform: scale(1.04);
}
