* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e5e5e5;
    color: #222;
}

/* ENCABEZADO */
header {
    background-color: #151515;
    color: white;
    text-align: center;
    padding: 25px 15px;
}

.logo-container{
    margin-bottom: 5px
}

.logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
}

header h1 {
    color: #e63946;
    font-size: 38px;
    letter-spacing: 3px;
}

header p {
    color: #aaa;
    font-size: 12px;
    margin: 8px 0 20px;
    letter-spacing: 2px;
}

/* MENU */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #e63946;
}

.link-logout {
    color: #ff6b6b !important;
}

/* PORTADA */
.inicio {
    background: linear-gradient(135deg, #171717, #454545);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.contenido-inicio h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: white;
}

.contenido-inicio p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 35px;
}

.boton {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.boton:hover {
    background-color: #b92735;
    transform: scale(1.05);
}

/* CONTENIDO */
main {
    max-width: 950px;
    margin: auto;
    padding: 30px 20px;
}

.seccion {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 5px solid #e63946;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.seccion:hover {
    transform: translateY(-3px);
}

.seccion h2 {
    color: #e63946;
    font-size: 25px;
    margin-bottom: 12px;
}

.seccion p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* FORMULARIOS */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    background-color: #f7f7f7;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #e63946;
    background-color: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* BOTONES */
button {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #b92735;
}

/* LOGIN Y REGISTRO */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top: 5px solid #e63946;
    text-align: center;
}

.auth-container h1 {
    color: #e63946;
    letter-spacing: 2px;
}

.auth-container h2 {
    color: #222;
    margin-bottom: 15px;
    font-size: 22px;
}

.auth-container p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.alerta-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.switch-auth {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.switch-auth a {
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* PIE DE PAGINA */
footer {
    background-color: #151515;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

footer h2 {
    color: #e63946;
    font-size: 28px;
    margin-bottom: 10px;
}

footer p {
    color: #aaa;
    margin: 8px;
}

/* DISEÑO RESPONSIVE */
@media (max-width: 600px) {
    header h1 {
        font-size: 30px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .inicio {
        padding: 65px 15px;
    }

    .contenido-inicio h2 {
        font-size: 28px;
    }

    .contenido-inicio p {
        font-size: 16px;
    }

    .seccion {
        padding: 20px;
    }

    .auth-container {
        margin: 40px 15px;
        padding: 25px;
    }
}