/* =============================================
   CONFIGURACIÓN DEL PORTAFOLIO TINGO
   ============================================= */
.portfolio-tingo {
    background-color: #052316; /* Verde Tingo */
    padding: 100px 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

.portfolio-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #c5a059; /* Dorado */
    margin-bottom: 10px;
}

.line-gold {
    width: 60px;
    height: 3px;
    background: #c5a059;
    margin: 20px auto;
}

/* GRID MASONRY (El Collage) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC */
    grid-auto-rows: 200px; /* Altura base de cada celda */
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ESTILO DE CADA FOTO */
.masonry-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.6s ease;
}

/* Efecto Hover */
.masonry-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
}

.masonry-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* INFO SOBRE LA FOTO (Glassmorphism) */
.photo-info {
    position: absolute;
    bottom: -100%; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(5, 35, 22, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.masonry-item:hover .photo-info {
    bottom: 0;
}

.photo-info h3 {
    color: #c5a059;
    margin: 0;
    font-size: 1rem;
}

.photo-info span {
    color: #fff;
    font-size: 0.8rem;
}

/* VARIANTES DE TAMAÑO (Para el efecto collage) */
.item-big { grid-column: span 2; grid-row: span 2; }
.item-tall { grid-row: span 2; }
.item-wide { grid-column: span 2; }

/* =============================================
   RESPONSIVE (MÓVIL) - DISEÑO COMPACTO
   ============================================= */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en Tablet */
    }
}

@media (max-width: 768px) {
    .portfolio-header h2 { font-size: 1.8rem; }
    
    .masonry-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil para que luzcan las fotos */
        grid-auto-rows: 250px;
        gap: 15px;
    }

    .item-big, .item-tall, .item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .photo-info {
        bottom: 0; /* Siempre visible en móvil para accesibilidad */
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
}

/* ANIMACIÓN DE ENTRADA JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}