/* ============================================
   PROJECT GLOBAL CSS - Estilo consistente con portfolio
   Mismos colores que index.html e info-personal.html
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #F8F5F2;
    --bg-sage: #E1E8E1;
    --text-primary: #1B3022;
    --gold-matte: #C5A059;
    --accent-color: #C5A059;
    --accent-hover: #D4B06A;
    --text-muted: rgba(27, 48, 34, 0.7);
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-light: rgba(27, 48, 34, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOP BAR - igual que index */
.top-bar {
    background: rgba(248, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-matte);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#quick-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

#quick-contact a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

#quick-contact a i {
    color: var(--gold-matte);
}

#quick-contact a:hover {
    color: var(--gold-matte);
    transform: translateY(-1px);
}

.badge {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold-matte);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--gold-matte);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold-matte);
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--gold-matte);
    padding: 8px 20px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-left: 10px;
}

.btn-back:hover {
    background: var(--gold-matte);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* PROJECT CONTAINER */
.project-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 30px;
    flex: 1;
}

/* PROJECT HEADER */
.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.project-header h3 {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* MAIN IMAGE */
.project-main-image {
    width: 100%;
    height: 380px;
    background: var(--bg-sage);
    border-radius: 0;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--gold-matte);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gold-matte);
}

.image-placeholder i {
    font-size: 4rem;
}

/* DESCRIPTION - igual que info-card */
.project-description {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--gold-matte);
}

.project-description h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.project-description h2 i {
    margin-right: 10px;
    color: var(--gold-matte);
}

.project-description p {
    line-height: 1.8;
}

/* STATS GRID */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px 10px;
    text-align: center;
    border: 1px solid var(--gold-matte);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-hover);
}

.stat-card i {
    font-size: 2rem;
    color: var(--gold-matte);
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DETAILS GRID */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.detail-card {
    background: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--gold-matte);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-matte);
    margin-bottom: 18px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--gold-matte);
    padding-bottom: 10px;
}

.detail-card h3 i {
    margin-right: 8px;
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 2px solid var(--gold-matte);
    font-size: 0.9rem;
}

.detail-card li strong {
    color: var(--text-primary);
}

/* TEAM SECTION */
.team-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    background: var(--bg-sage);
    padding: 18px 25px;
    border: 1px solid var(--gold-matte);
}

.team-mini span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.team-mini strong {
    color: var(--text-primary);
    margin-left: 6px;
    font-weight: 600;
}

.team-mini i {
    color: var(--gold-matte);
    margin-right: 5px;
}

/* RESOURCE LINKS */
.resource-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.resource-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid var(--gold-matte);
    background: rgba(255, 255, 255, 0.5);
}

.resource-link:hover {
    color: var(--gold-matte);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.resource-link i {
    color: var(--gold-matte);
}

/* DOWNLOAD SECTION */
.download-section {
    text-align: center;
    margin: 40px 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-matte);
    color: var(--bg-primary);
    border: none;
    padding: 14px 35px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-download:hover {
    background: transparent;
    border: 1.5px solid var(--gold-matte);
    color: var(--gold-matte);
    transform: translateY(-2px);
}

.btn-download i {
    margin-right: 8px;
}

/* ============================================
   GALERÍA DE IMÁGENES - UNIFORME Y RESPONSIVE
   ============================================ */

/* Título de la galería */
.project-container h2:has(+ #project-gallery) {
    font-family: 'Playfair Display', serif;
    color: var(--gold-matte);
    margin: 40px 0 20px;
    font-size: 1.6rem;
}

/* Contenedor grid - horizontal */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

/* Cada ítem de galería - dimensiones fijas */
.gallery-item {
    width: 100%;
    aspect-ratio: 16 / 10;  /* Proporción fija 16:10 */
    background: var(--bg-sage);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gold-matte);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-hover);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15);
}

/* Imagen dentro - llena el espacio sin deformar */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Placeholder cuando no hay imágenes */
.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-sage);
    border: 1px dashed var(--gold-matte);
    color: var(--text-muted);
}

.gallery-placeholder i {
    font-size: 3rem;
    color: var(--gold-matte);
    margin-bottom: 15px;
    display: block;
}

.gallery-placeholder span {
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.gallery-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Placeholder para imagen individual que falla */
.gallery-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-sage);
    color: var(--text-muted);
    font-size: 0.7rem;
}

.gallery-placeholder-small i {
    font-size: 2rem;
    color: var(--gold-matte);
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE - GALERÍA
   ============================================ */

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 550px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* FOOTER - igual que index */
footer {
    background: var(--text-primary);
    padding: 35px 30px;
    text-align: center;
    border-top: 3px solid var(--gold-matte);
    margin-top: auto;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .top-bar-content {
        padding: 0 20px;
        flex-direction: column;
    }
    
    #quick-contact {
        gap: 1.2rem;
        justify-content: center;
    }
    
    .btn-back {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .project-header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .project-header h3 {
        font-size: 1rem;
    }
    
    .project-main-image {
        height: 250px;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 8px;
    }
    
    .stat-card .value {
        font-size: 1.2rem;
    }
    
    .team-mini {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px 20px;
    }
    
    .resource-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .resource-link {
        width: 100%;
        justify-content: center;
    }
    
    .project-container {
        padding: 0 20px;
        margin: 40px auto;
    }
    
    .project-description, .detail-card {
        padding: 20px;
    }
    
    .project-details-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .project-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .project-header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .project-header h3 {
        font-size: 0.9rem;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .project-main-image {
        height: 200px;
    }
    
    .project-description {
        padding: 15px;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .detail-card h3 {
        font-size: 1.1rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }
}