/* ===== ESTILOS PARA PROYECTOS ===== */

/* ARCHIVE PROYECTOS */
.proyectos-archive-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.proyectos-archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.proyectos-archive-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 3px solid #800000;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.proyectos-archive-description {
    max-width: 600px;
    margin: 1rem auto;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* GRID DE PROYECTOS */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.proyecto-card {
    background: rgba(128, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    height: 480px;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* IMAGEN DEL PROYECTO */
.proyecto-imagen {
    margin-bottom: 1.2rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    height: 200px;
}

.proyecto-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proyecto-imagen-placeholder {
    margin-bottom: 1.2rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.proyecto-imagen-placeholder span {
    font-size: 2rem;
}

/* CONTENIDO DEL PROYECTO */
.proyecto-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 220px;
    overflow: hidden;
}

.proyecto-titulo {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    line-height: 1.3;
    height: 60px;
    overflow: hidden;
}

.proyecto-titulo a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proyecto-extracto {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    height: 72px;
    overflow: hidden;
}

.proyecto-extracto-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* META INFORMATION */
.proyecto-meta {
    margin-top: auto;
    flex-shrink: 0;
}

.proyecto-meta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.proyecto-fecha {
    font-size: 0.8rem;
    color: #666;
}

.proyecto-boton {
    background: #800000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.proyecto-boton:hover {
    background: #600000;
    color: white;
}

/* SINGLE PROYECTO */
.single-proyecto-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.proyecto-single-header {
    margin-bottom: 3rem;
    text-align: center;
}

.proyecto-single-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.proyecto-single-fecha {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.proyecto-single-imagen {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.proyecto-single-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.proyecto-single-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    background: rgba(128, 0, 0, 0.02);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.1);
}

/* ESTILOS PARA EL CONTENIDO DEL PROYECTO */
.proyecto-single-content h2 {
    color: #800000;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #800000;
    padding-left: 1rem;
}

.proyecto-single-content h3 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

.proyecto-single-content blockquote {
    border-left: 4px solid #800000;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
    background: rgba(128, 0, 0, 0.03);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.proyecto-single-content img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* NAVEGACIÓN */
.proyecto-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 0, 0, 0.1);
    text-align: center;
}

.proyecto-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #800000;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.proyecto-volver:hover {
    background: #600000;
    color: white;
}

/* ESTADO VACÍO */
.proyectos-empty {
    text-align: center;
    padding: 4rem;
    background: rgba(128, 0, 0, 0.05);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.proyectos-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.proyectos-empty-title {
    color: #666;
    margin-bottom: 1rem;
}

.proyectos-empty-description {
    color: #888;
}
