/* proyectos.css */
@import 'colors.css';

/* === ESPECÍFICO DEL HERO === */
.hero-proyectos {
    background: url('../../../assets/img/hero.jpg') no-repeat center center/cover;
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-proyectos .hero-overlay {
    background: linear-gradient(180deg, rgba(6, 26, 35, 0.7) 0%, var(--bg-color) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-proyectos .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 80px;
}

/* === SECCIONES === */
.section {
    padding: 4rem 0;
}

/* === TARJETAS DE PROYECTOS === */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.proyecto-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.proyecto-card-img {
    width: 100%;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.proyecto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proyecto-card-img ion-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.proyecto-card-body {
    padding: 1.5rem;
    text-align: center;
}

.proyecto-card-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.proyecto-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SECCIÓN DE INFORMACIÓN (Servicio Social / Vinculación) === */
.info-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    line-height: 1.8;
    margin-top: 1.5rem;
}

.info-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.info-content h3:first-child {
    margin-top: 0;
}

.info-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.info-content ul li {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.info-content p {
    margin-bottom: 1rem;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.info-content a:hover {
    color: var(--primary-hover);
}

/* === MODAL DETALLE === */
#detalle-content .detail-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

#detalle-content h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#detalle-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* === LISTA ADMIN (dentro del modal) === */
.admin-lista-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.admin-lista-item:last-child {
    border-bottom: none;
}

.admin-lista-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-lista-item .item-info {
    flex: 1;
}

.admin-lista-item .item-actions {
    display: flex;
    gap: 8px;
}

.admin-lista-item .item-actions button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 35px;
    height: 35px;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.admin-lista-item .item-actions button:hover {
    background: rgba(0, 210, 214, 0.1);
    border-color: var(--primary-color);
}

.admin-lista-item .item-actions button.btn-delete {
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.1);
}

.admin-lista-item .item-actions button.btn-delete:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: #ff4757;
}

/* === RESPONSIVO === */
@media screen and (max-width: 768px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }
}
