/* Estilos generales para la página de inicio */

body {
    background-color: #f8f9fa;
}

/* Header de Proyectos */
.proyectos-header {
    background: #124E91;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.proyectos-header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.proyectos-header p {
    margin: 15px 0 0 0;
    font-size: 1.15em;
    opacity: 0.95;
    font-weight: 300;
}

/* Botón Login */
.btn-login {
    background:  #9CA1A8;
    color: white;
    font-weight: 700;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
}

.btn-login:hover {
    background: #9CA1A8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(165, 127, 44, 0.3);
    text-decoration: none;
}

.btn-login:focus {
    box-shadow: 0 0 0 3px rgba(165, 127, 44, 0.2);
    outline: none;
}

/* Banner de Login */
.login-banner {
    background: linear-gradient(135deg, rgba(165, 127, 44, 0.1), rgba(105, 28, 50, 0.05));
    border-left: 5px solid #9CA1A8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(105, 28, 50, 0.08);
}

.login-banner h4 {
    color: #124E91;
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: 1.3em;
    letter-spacing: 0.5px;
}

.login-banner p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

/* Grid de Proyectos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* === Tarjetas === */
.proyecto-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eae4dc;
    position: relative;
}

.proyecto-card:hover {
    box-shadow: 0 10px 30px rgba(105, 28, 50, 0.14);
    transform: translateY(-4px);
    border-color: #d4a843;
}

/* Barra superior roja */
.proyecto-card-topbar {
    height: 6px;
    background: linear-gradient(90deg, #124E91 0%, #9CA1A8 100%);
}

/* Contenido principal */
.proyecto-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fila superior: badge + área */
.proyecto-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.proyecto-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proyecto-badge.activo {
    background: #e6f4ea;
    color: #1a7431;
}

.proyecto-badge.pausado {
    background: #fff4e5;
    color: #c45000;
}

.proyecto-badge.finalizado {
    background: #f3e8f9;
    color: #6A1B9A;
}

.proyecto-card-area {
    font-size: 0.75em;
    color: #8a6b1e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fdf6e8;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Título grande */
.proyecto-card-title {
    font-size: 1.2em;
    font-weight: 800;
    color: #124E91;
    margin: 0 0 10px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Descripción */
.proyecto-card-desc {
    color: #666;
    font-size: 0.87em;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Info horizontal */
.proyecto-card-stats {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #faf7f2;
    border-radius: 8px;
    overflow: hidden;
}

.proyecto-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    position: relative;
}

.proyecto-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #e8e0d4;
}

.proyecto-stat .stat-icon {
    font-size: 18px;
    color: #124E91;
    margin-bottom: 6px;
}

.proyecto-stat .stat-value {
    font-weight: 800;
    color: #333;
    font-size: 0.95em;
}

.proyecto-stat .stat-label {
    font-size: 0.65em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

/* Botón de Detalles */
.proyecto-card .btn-ver {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #124E91;
    color: white;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    margin-top: auto;
    cursor: pointer;
}

.proyecto-card .btn-ver:hover {
    background: #4a0e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(105, 28, 50, 0.3);
    text-decoration: none;
}

.proyecto-card .btn-ver .arrow-icon {
    transition: transform 0.3s ease;
}

.proyecto-card .btn-ver:hover .arrow-icon {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .proyectos-header {
        padding: 45px 0;
    }

    .proyectos-header h1 {
        font-size: 2.3em;
    }

    .proyectos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .proyectos-header {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .proyectos-header h1 {
        font-size: 1.8em;
    }

    .proyectos-header p {
        font-size: 0.95em;
        margin-top: 10px;
    }

    .login-banner {
        padding: 20px;
        margin-bottom: 30px;
    }

    .login-banner h4 {
        font-size: 1.1em;
    }

    .login-banner p {
        font-size: 0.9em;
    }

    .btn-login {
        padding: 10px 24px;
        font-size: 12px;
    }

    .proyectos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .proyecto-card-content {
        padding: 18px;
    }

    .proyecto-card-title {
        font-size: 1.05em;
    }

    .proyecto-stat {
        padding: 12px 6px;
    }

    .proyecto-stat .stat-icon {
        font-size: 15px;
    }

    .proyecto-stat .stat-value {
        font-size: 0.85em;
    }
}

@media (max-width: 576px) {
    .proyectos-header {
        padding: 30px 12px;
        margin-bottom: 20px;
    }

    .proyectos-header h1 {
        font-size: 1.5em;
    }

    .proyectos-header p {
        font-size: 0.85em;
        margin-top: 8px;
    }

    .login-banner {
        padding: 15px;
        margin-bottom: 20px;
        border-left: 4px solid #9CA1A8;
    }

    .login-banner h4 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .login-banner p {
        font-size: 0.85em;
    }

    .btn-login {
        padding: 10px 20px;
        font-size: 11px;
        width: 100%;
    }

    .container {
        padding: 0 12px;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .proyecto-card-content {
        padding: 16px;
    }

    .proyecto-card-title {
        font-size: 1em;
    }

    .proyecto-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .proyecto-card-area {
        font-size: 0.7em;
        padding: 3px 10px;
    }

    .proyecto-stat .stat-icon {
        font-size: 14px;
    }

    .proyecto-stat .stat-value {
        font-size: 0.82em;
    }

    .proyecto-stat .stat-label {
        font-size: 0.6em;
    }

    .proyecto-card .btn-ver {
        font-size: 12px;
        padding: 12px 20px;
    }
}

@media (max-width: 360px) {
    .proyectos-header h1 {
        font-size: 1.3em;
    }

    .proyectos-header p {
        font-size: 0.8em;
    }

    .login-banner h4 {
        font-size: 0.95em;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 10px;
    }

    .proyecto-card-title {
        font-size: 0.95em;
    }

    .proyecto-card .btn-ver {
        font-size: 11px;
        padding: 11px 16px;
    }
}

/* Estilos generales mejorados */
.container {
    max-width: 1140px;
}

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proyecto-card {
    animation: fadeIn 0.4s ease-out;
}
