/* ===== CONTENIDO GENERAL ===== */
.content {
    flex: 1;
    padding: 40px;
    background: #f2f4f8;
}

/* Cada bloque como tarjeta */
.content section {
    background: #ffffff;
    padding: 30px 35px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Títulos de sección */
.content section h2 {
    margin-bottom: 20px;
    color: #1a1f36;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

/* Texto general */
.content section p {
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: justify;
}

/* Separadores */
hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Utilidades */
.center {
    text-align: center;
}

.small-text {
    font-size: 0.9rem;
}

/* Logos */
.logo {
    width: 400px;
    max-width: 100%;
    margin: 15px auto;
}

.logo-small {
    width: 300px;
    max-width: 100%;
    margin: 15px auto;
}

/* ===== PROYECTOS ===== */
#proyectos p strong {
    color: #1a1f36;
}

/* Espacio entre proyectos */
#proyectos p {
    margin-bottom: 6px;
}

/* ===== CONTACTO ===== */
#contactar ul {
    list-style: none;
    padding-left: 0;
}

#contactar li {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* ===== FORMULARIO ACCESO ===== */
#acceso form {
    margin-top: 20px;
}

#acceso table {
    width: 100%;
}

#acceso input[type="text"],
#acceso input[type="password"] {
    width: 95%;
    padding: 6px;
    margin-top: 5px;
}

#acceso input[type="submit"] {
    padding: 6px 14px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background: #1a1f36;
    color: white;
    cursor: pointer;
}

#acceso input[type="submit"]:hover {
    background: #313a59;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    .content section {
        padding: 20px;
    }
}

/* ===== TARJETAS GRID ===== */
.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== TARJETA ===== */


.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.tarjeta h3 {
    margin-bottom: 10px;
    color: #1a1f36;
}

.tarjeta p {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Opcional: botón o link dentro de tarjeta */
.tarjeta a {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #1a1f36;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tarjeta a:hover {
    background: #313a59;
}


/* ===== LISTADOS SIN BULLETS ===== */
.listado {
    list-style-type: none; /* elimina bullets */
    padding-left: 0;       /* quita el margen izquierdo */
    margin-top: 10px;
}

.listado li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Opcional: hover para resaltar item */
.listado li:hover {
    background: #f9f9f9;
    padding-left: 5px;
    transition: all 0.2s;
}


.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* Estilo base de la tarjeta */
.tarjeta {
    padding: 18px;
    border-radius: 8px;
    background: #f5f5f5; /* fallback */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* COLUMNA 1 */
.tarjetas-grid .tarjeta:nth-child(3n + 1) {
    background-color: #eef4fb; /* azul claro */
    border-left: 5px solid #2f6fa5;
}

/* COLUMNA 2 */
.tarjetas-grid .tarjeta:nth-child(3n + 2) {
    background-color: #f2f8f1; /* verde claro */
    border-left: 5px solid #3b7f4f;
}

/* COLUMNA 3 */
.tarjetas-grid .tarjeta:nth-child(3n + 3) {
    background-color: #fdf4ec; /* naranja claro */
    border-left: 5px solid #c46a1c;
}

@media (max-width: 900px) {
    .tarjetas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarjetas-grid .tarjeta:nth-child(2n + 1) {
        background-color: #eef4fb;
        border-left: 5px solid #2f6fa5;
    }

    .tarjetas-grid .tarjeta:nth-child(2n + 2) {
        background-color: #f2f8f1;
        border-left: 5px solid #3b7f4f;
    }
}

@media (max-width: 600px) {
    .tarjetas-grid {
        grid-template-columns: 1fr;
    }

    .tarjeta {
        background-color: #f5f5f5;
        border-left: 5px solid #999;
    }
}


.tarjeta {
    padding: 18px;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* COLUMNA 1 */
.tarjetas-grid .tarjeta:nth-child(3n + 1) {
    background-color: #eef4fb;
    border-left: 5px solid #2f6fa5;
}

/* COLUMNA 2 */
.tarjetas-grid .tarjeta:nth-child(3n + 2) {
    background-color: #f2f8f1;
    border-left: 5px solid #3b7f4f;
}

/* COLUMNA 3 */
.tarjetas-grid .tarjeta:nth-child(3n + 3) {
    background-color: #fdf4ec;
    border-left: 5px solid #c46a1c;
}

/* Hover columna 1 */
.tarjetas-grid .tarjeta:nth-child(3n + 1):hover {
    background-color: #dbe9f6;
    transform: translateY(-5px);
}

/* Hover columna 2 */
.tarjetas-grid .tarjeta:nth-child(3n + 2):hover {
    background-color: #dff0e2;
    transform: translateY(-5px);
}

/* Hover columna 3 */
.tarjetas-grid .tarjeta:nth-child(3n + 3):hover {
    background-color: #f9e2cf;
    transform: translateY(-5px);
}


.tarjeta h3 {
    transition: color 0.3s ease;
}

.tarjetas-grid .tarjeta:hover h3 {
    color: #000;
}

main section {
    padding: 40px 50px;
    margin-bottom: 50px;
    border-radius: 10px;
    background-color: #f9fafb; /* gris muy suave por defecto */
}

main section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    font-size: 1.6rem;
    border-bottom: 3px solid #2f6fa5;
    color: #2f6fa5;
}

#inicio {
    background-color: #f5f8fc; /* azul muy claro */
}

#presentacion {
    background-color: #f6fbf8; /* verde muy claro */
}

#equipo {
    background-color: #fbf9f6; /* beige */
}

#proyectos {
    background-color: #f8f6fb; /* lila muy claro */
}

#publicaciones {
    background-color: #f6f7f9; /* gris frío */
}

#software {
    background-color: #f7fbfd; /* azul hielo */
}

#congresos {
    background-color: #fdf7f3; /* naranja suave */
}

#contactar {
    background-color: #f6faf9;
}

#acceso {
    background-color: #f9f9f9;
}


main section {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.menu a:hover {
    background-color: #f0f4f8;
}

.menu a.activo {
    background-color: #e6eef7;
    border-left: 3px solid #2f6fa5;
    font-weight: bold;
}


.btn-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2f6fa5;
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background-color 0.3s ease;
}

.btn-flotante:hover {
    background-color: #1e4f78;
}

/* Sidebar fijo */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px; /* ancho del menú */
    height: 100%;
    overflow-y: auto;
    background-color: #f4f4f4;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
}

/* Contenido principal */
.content {
    margin-left: 240px; /* deja espacio para el menú */
    padding: 30px;
}


/* Botón flotante solo móvil */
@media (max-width: 768px) {
    .btn-flotante {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #2f6fa5;
        color: #fff;
        padding: 12px 16px;
        border-radius: 50px;
        text-decoration: none;
        font-size: 18px;
        z-index: 101;
    }
}

@media (min-width: 769px) {
    .btn-flotante {
        display: none;
    }
}


html {
    scroll-behavior: smooth;
}