/* =========================================
   PROYECTOS.CSS - Página de Proyectos
   ========================================= */

/* Fondo completo naranja/rojo - sin blanco */
html,
body {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 40%, #fb7185 100%);
    min-height: 100vh;
}

main {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 40%, #fb7185 100%);
    min-height: 100vh;
}

#proyectos {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 40%, #fb7185 100%);
    padding-top: 100px;
    min-height: 100vh;
}

/* =========================================
   GRID DE PROYECTOS
   ========================================= */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.project-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #fb7185;
}

/* =========================================
   LAYOUT VIDEO + CONTENIDO
   ========================================= */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.project-video {
    position: relative;
    background: #f3f4f6;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-video iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* =========================================
   CONTENIDO DEL PROYECTO
   ========================================= */
.project-content {
    padding: 1.5rem;
    background: #ffffff;
    overflow-y: auto;
    max-height: 500px;
}

/* Scrollbar personalizada para el contenido */
.project-content::-webkit-scrollbar {
    width: 6px;
}

.project-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.project-content::-webkit-scrollbar-thumb {
    background: #fb7185;
    border-radius: 3px;
}

.project-content::-webkit-scrollbar-thumb:hover {
    background: #f43f5e;
}

/* =========================================
   HEADER DEL PROYECTO CON LOGO
   ========================================= */
.project-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.project-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #111827;
    font-weight: 700;
}

/* =========================================
   TÍTULOS Y TEXTO
   ========================================= */
.project-content h3 {
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.project-content > p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-subtitle {
    font-size: 0.95rem;
    color: #fb7185;
    margin: 1rem 0 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* =========================================
   CARACTERÍSTICAS DEL PROYECTO
   ========================================= */
.project-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.project-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #374151;
    font-size: 0.85rem;
    line-height: 1.4;
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

/* =========================================
   ACCESO ADMINISTRATIVO
   ========================================= */
.project-access {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid #fb7185;
    font-size: 0.85rem;
}

.project-access strong {
    color: #be123c;
    font-weight: 700;
}

.project-access code {
    background: #fb7185;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin: 0 0.2rem;
}

/* =========================================
   TAGS DE TECNOLOGÍAS
   ========================================= */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background: #fff1f2;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    color: #be123c;
    font-weight: 600;
    border: 1px solid #fecdd3;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #ffe4e6;
    border-color: #fb7185;
    transform: translateY(-1px);
}

/* =========================================
   ENLACES DEL PROYECTO
   ========================================= */
.project-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(251, 113, 133, 0.3);
    font-size: 0.85rem;
}

.project-link:hover {
    gap: 0.6rem;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(251, 113, 133, 0.4);
}

/* =========================================
   RESPONSIVE - TABLETS
   ========================================= */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .project-video {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        min-height: 300px;
    }
    
    .project-video iframe {
        min-height: 300px;
    }
    
    .project-content {
        max-height: none;
        overflow-y: visible;
    }
}

/* =========================================
   RESPONSIVE - MÓVILES
   ========================================= */
@media (max-width: 768px) {
    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        justify-content: center;
        width: 100%;
    }
    
    /* Logo responsive */
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-logo {
        width: 40px;
        height: 40px;
    }
    
    .project-header h3 {
        font-size: 1.1rem;
    }
}

