/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f8f8;
    color: #1a1a1a;
    min-height: 100vh; /* Asegura que el contenido ocupe toda la altura */
    display: flex;
    flex-direction: column;
}

/* Estilo del Header */
header {
    background-color: #b22222; /* Color de fondo del header */
    color: white;
    padding: 10px 20px;
    position: sticky; /* El header será fijo en la parte superior */
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.registro a {
    margin-left: 10px;
}

.registro .btn {
    background: white;
    color: #b22222;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.registro .btn:hover {
    background: black;
    color: white;
}

/* Estilo del Nav */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

nav a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

nav a:hover {
    background: white;
    color: #b22222;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Oculta cualquier imagen que sobresalga */
    max-height: 400px; /* Máxima altura del slider */
}

.slider {
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    object-fit: cover; /* Asegura que las imágenes se ajusten bien */
    height: 100%;
}

/* Main */
main {
    padding: 20px;
    flex-grow: 1; /* Hace que el main ocupe el espacio restante */
    text-align: center;
}

section {
    background: white;
    padding: 30px;
    margin: 20px auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #b22222;
    margin-bottom: 15px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

ul li a {
    color: #1a1a1a;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

ul li a:hover {
    color: #b22222;
}

/* Footer */
footer {
    background: #b22222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Esto asegura que el footer siempre quede al final */
    width: 100%;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin-bottom: 10px;
}

footer li {
    font-size: 18px;
    font-weight: bold;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}
