/* Fuente y estilos base */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f8fc;
    color: #2c3e50;
    height: 100%;
}

/* Layout general */
.contenedor {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Barra lateral izquierda */
.barra-lateral {
    width: 180px;
    background-color: #dceefc; /* Azul claro */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
}

.barra-lateral .logo {
    font-size: 1.4em;
    font-weight: bold;
    color: #0a4a7b;
    margin-bottom: 30px;
}

.barra-lateral ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.barra-lateral ul li {
    margin-bottom: 15px;
}

.barra-lateral ul li a {
    text-decoration: none;
    color: #0a4a7b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.barra-lateral ul li a:hover {
    color: #005f99;
}

/* Contenido principal */
.contenido-principal {
    flex-grow: 1;
    margin-left: 220px; /* ancho de la barra lateral */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
    padding: 0; /* sin padding aquí, se usa en las secciones */
}

/* Encabezado */
.encabezado {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #dde9f3;
}

.botones .btn {
    background-color: #0a4a7b;
    color: white;
    border: none;
    padding: 10px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.botones .btn:hover {
    background-color: #0074b3;
}

/* Sección de bienvenida */
.bienvenida {
    padding: 40px;
    text-align: center;
}

.bienvenida h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.bienvenida p {
    font-size: 1.1em;
    color: #555;
}

/* Scroll suave para anclas */
html {
    scroll-behavior: smooth;
}

/* Animación al hacer scroll (fade-in) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bienvenida {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Añadir retardo para cada sección (opcional) */
#inicio {
    animation-delay: 0.2s;
}

#sistema {
    animation-delay: 0.4s;
}

#nosotros {
    animation-delay: 0.6s;
}

/* Hover suave en enlaces de menú */
.barra-lateral ul li a {
    transition: color 0.3s ease, transform 0.2s ease;
}

.barra-lateral ul li a:hover {
    color: #0074b3;
    transform: translateX(5px);
}

/* Hover para botones de sesión */
.botones .btn {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.botones .btn:hover {
    background-color: #005f99;
    transform: scale(1.05);
}


/* Imágenes adaptables para secciones */
.img-responsive {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 20px;
}


/* Botón de menú hamburguesa oculto por defecto */
.btn-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #0a4a7b;
    cursor: pointer;
    margin-right: auto;
}

/* En móviles: oculta barra lateral y muestra botón hamburguesa */
@media (max-width: 768px) {
    .barra-lateral {
        position: fixed;
        left: -220px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .barra-lateral.visible {
        left: 0;
    }

    .contenido-principal {
        margin-left: 0;
    }

    .btn-menu {
        display: block;
    }
}

/* Tarjeta estándar del sistema */
.tarjeta {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}

/* Títulos internos */
.titulo-seccion {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a4a7b;
}

/* Layout de dos columnas */
.fila-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.columna {
    display: flex;
    flex-direction: column;
}

/* Botón azul del sistema */
.btn-azul {
    background-color: #0a4a7b;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-azul:hover {
    background-color: #005f99;
}

/* Botón verde (guardar) */
.btn-verde {
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-verde:hover {
    background-color: #27ae60;
}

/* Ajustes de margen */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }
.textarea-descripcion {
    width: 100%;
    min-height: 140px;   /* puedes aumentar este valor */
    resize: vertical;    /* permite estirar manualmente */
}