* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;

    /* FONDO REPETIDO */
    background-image: url("imagenes/fondo.jpg");
    background-repeat: repeat;
    background-size: auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.login-box img {
    max-width: 180px;
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.login-box label span {
    color: red;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-box input:focus {
    outline: none;
    border-color: #1f7ed0;
}

.login-box button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #eaeaea;
    color: #999;
    font-size: 14px;
    cursor: not-allowed;
}

/* Botón activo */
.login-box button.activo {
    background: #1f7ed0;
    color: #fff;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        margin: 15px;
        padding: 25px 20px;
    }

    .login-box img {
        max-width: 150px;
    }
}
 /* Contenedor contraseña */
.password-box {
    position: relative;
    margin-bottom: 15px;
}

.password-box input {
    width: 100%;
    padding-right: 40px;
}

/* Ícono ojo */
.password-box span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #888;
}

.password-box span:hover {
    color: #1f7ed0;
}
.toggle-text {
    cursor: pointer;
    font-size: 13px;
    color: #1f7ed0;
    margin-left: 8px;
}


.footer-text {
    text-align: center;
    margin-top: 15px; /* Espacio despu��s del bot��n */
    font-size: 13px;
    color: #666;
}

.footer-text a {
    color: #0077b5;
    text-decoration: none;
    font-weight: bold;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* --- RESET Y BASES --- */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
 background-image: url("../imagenes/fondo.jpg");
    background-repeat: repeat;
    background-size: auto;
}

/* --- ESTILO PARA LOGIN (Cuando no estás en el panel) --- */
body:not(.body-panel) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

/* --- NUEVA SECCIÓN: PLANIFICADOR Y AGENDA --- */
.planner-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes para proyectos, 1 para notas */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.planner-box, .agenda-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Planificador de Proyectos */
.planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.day-col { text-align: center; font-size: 0.8rem; font-weight: bold; color: #555; padding-bottom: 10px; }

.project-bar {
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.75rem;
    color: white;
    margin-bottom: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Colores solicitados */
.status-completado { background-color: #28a745; } /* Verde */
.status-proceso { background-color: #f06292; }    /* Rosado */
.status-no-iniciado { background-color: #4fc3f7; } /* Celeste */

/* Agenda Derecha */
.agenda-header { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.time-slot {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    height: 45px;
    border-bottom: 1px solid #f9f9f9;
}
.time-label { font-size: 0.75rem; color: #888; }
.task-input { 
    border: none; 
    background: transparent; 
    font-size: 0.85rem; 
    width: 100%;
    color: #444;
}
.task-input:focus { outline: none; background: #fff9f0; }

@media (max-width: 1024px) {
    .planner-container { grid-template-columns: 1fr; }
}