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


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
    overflow-x: hidden;
}

header {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem ;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1f2937;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    
}



.logo-text span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    display: block;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}



/* Navegación */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #fef2f2;
    color: #dc2626;
    transform: translateY(-2px);
}

.nav-links img {
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.nav-links a:hover img {
    filter: grayscale(0%);
}

/* Modal de perfil */
.modal_perfil-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal_perfil-btn:hover {
    background: #fef2f2;
    transform: scale(1.1);
}

.modal_perfil-btn img {
    width: 24px;
    height: 24px;
}

.modal-perfil {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-perfil.active {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.modal-content-perfil {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 80px;
    margin-right: 20px;
}

/* Información del usuario */
.user-info {
    margin-bottom: 2rem;
}

.user-info h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 0.5rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-details p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 10px;
    margin: 0;
    font-size: 0.95rem;
    border-left: 4px solid #dc2626;
}

.user-details p strong {
    color: #374151;
    font-weight: 600;
    min-width: 80px;
}

.user-details p:nth-child(even) {
    background: #fef2f2;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    z-index: 10;
}

.close-btn:hover {
    color: #ffffff;
    background: #dc2626;
    transform: scale(1.1);
}

.btn-logout, .btn-iniciar-sesion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
}

.btn-logout:hover, .btn-iniciar-sesion:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(220, 38, 38, 0.4);
}

.btn-logout img, .btn-iniciar-sesion img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Selects */
select {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #ff8f8f;
    
}


/* Menú móvil (alineado con estilos base) */
.menu-movil { display: none; position: relative; }
.menu-movil button { background: none; border: none; cursor: pointer; padding: 0.5rem; border-radius: 8px; transition: background 0.3s ease; }
.menu-movil button:hover { background: #fef2f2; }
.menu-movil button img { width: 24px; height: 24px; }

.menu-movil .menu-content { display: none; position: absolute; top: 100%; right: 0; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); padding: 0; min-width: 220px; z-index: 2001; margin-top: 0.5rem; }
.menu-movil.active .menu-content { display: block; }
.menu-movil .bar1, .menu-movil .bar2, .menu-movil .bar3 { padding: 0.5rem 0; }
.menu-movil .bar1, .menu-movil .bar2 { border-bottom: 1px solid #e5e7eb; }
.menu-movil a { display: block; padding: 0.75rem 1rem; color: #1f2937; text-decoration: none; border-radius: 8px; transition: all 0.3s ease; margin-bottom: 0.25rem; }
.menu-movil a:hover { background: #fef2f2; color: #dc2626; }

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

/* Título principal */
main h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contenedor del formulario */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Estilos del formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



input[type="text"],
input[type="number"],
input[type="file"] {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

/* Botón de envío */
input[type="submit"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
    margin-top: 1rem;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
}

input[type="submit"]:active {
    transform: translateY(-1px);
}

/* Validación visual */
input:invalid {
    border-color: #ef4444;
}

input:valid {
    border-color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-movil { display: flex; }
    
    main {
        padding: 2rem 1rem;
    }
    
    main h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    input[type="text"],
    input[type="number"],
    input[type="file"] {
        padding: 0.875rem 1rem;
    }
    
    input[type="submit"] {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    main h1 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    form {
        gap: 1.5rem;
    }
}
