/* ===================== GENERAL ===================== */

/* ===================== TEXTOS ARTISTAS ===================== */
.text-artista-fundador {
    color: #d6d0bc;
    position: relative;
    overflow: hidden;
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    width: 100%;
}
.text-artistas {
    color: #eeb914;
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 3rem;
}

.text-artistas span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotate(-10deg);
    animation: graffitear 0.6s forwards;
}
@keyframes graffitear {
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ===================== GRID ARTISTAS ===================== */
.artistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center; /* centra cards si hay pocas */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================== TARJETAS ===================== */
.fundador-card,
.artista-card {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: scale(0.95);
    opacity: 0;
    animation: zoomIn 0.8s forwards;
    background: linear-gradient(145deg, rgba(59,147,68,0.6), rgba(238,185,20,0.6));
    border: 2px solid #3b9344;
}

/* Fundador */
.fundador-card {
    max-width: 475px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Artistas */
.artista-card { 
    aspect-ratio: 3/4;
    max-width: 350px;
    margin: 0 auto;
}

/* Hover efectos */
.fundador-card:hover,
.artista-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(238, 185, 20, 0.9);
}

/* Imágenes */
.fundador-card img,
.artista-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.fundador-card:hover img,
.artista-card:hover img {
    filter: brightness(60%) blur(1.5px);
    transform: scale(1.08) rotate(1deg);
}

/* ===================== INFO ARTISTAS ===================== */
.artista-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.artista-card:hover .artista-info,
.fundador-card:hover .artista-info { 
    opacity: 1; 
    transform: translateY(0); 
}
.artista-info h1 { 
    color: #3b9344; 
    font-size: clamp(1.5rem, 3vw, 2.5rem); 
    margin-bottom: 0.2rem; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.artista-info p.estilos { 
    font-size: clamp(0.9rem, 1.5vw, 1.5rem); 
    margin-bottom: 1rem; 
    color: #eeb914; 
    font-style: italic;
}
.artista-info .btn { 
    margin: 0.3rem; 
    font-size: clamp(0.9rem, 1.5vw, 1.5rem); 
    border-radius: 5px; 
    transition: transform 0.3s, box-shadow 0.3s; 
    padding: 0.5rem 1.2rem;
}
.artista-info .btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.artista-info .instagram a { 
    color: #fff; 
    font-size: clamp(0.9rem, 1.2vw, 1.2rem); 
    margin-top: -5px; 
    margin-bottom: 0.3rem; 
    text-decoration: none; 
    display: inline-block; 
    transition: color 0.3s;
}
.artista-info .instagram a:hover { 
    color: #eeb914;
    text-decoration: none; 
}

/* ===================== ANIMACIONES ===================== */
@keyframes zoomIn { 
    to { 
        transform: scale(1); 
        opacity: 1; 
    } 
}

/* ===================== SECCIÓN FUNDADOR ===================== */
.fundador-section {
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}
.fundador-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===================== MEJORAS ÚLTIMOS TRABAJOS ===================== */
.ultimos-trabajos {
    color: #fff;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(59, 147, 68, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
}

.ultimos-trabajos h2 {
    color: #eeb914;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}
.ultimos-trabajos h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #3b9344, transparent);
}

/* Grid de trabajos */
.ultimos-trabajos .trabajos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.trabajo-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.trabajo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.trabajo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.trabajo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59,147,68,0.8);
}

.trabajo-card:hover img {
    filter: brightness(80%);
    transform: scale(1.08);
}

.trabajo-card:hover::before {
    opacity: 1;
}

/* ===================== MODAL ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalZoomIn 0.3s ease;
}
@keyframes modalZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}
.modal-close,
.modal-nav {
    background: rgba(0,0,0,0.7);
    border: 2px solid #eeb914;
    color: #eeb914;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10000;
}
.modal-close:hover,
.modal-nav:hover {
    background: #eeb914;
    color: #000;
    transform: scale(1.1);
}
.modal-close {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
}
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    cursor: pointer;
}
.modal-prev { left: 25px; }
.modal-next { right: 25px; }
.modal-counter {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #3b9344;
    z-index: 10000;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .fundador-container { grid-template-columns: 1fr; gap: 2rem; }
    .fundador-card { max-width: 100%; }
    .ultimos-trabajos .trabajos-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-nav { width: 50px; height: 50px; font-size: 2rem; }
    .modal-close { width: 50px; height: 50px; font-size: 2rem; }
}
@media (max-width: 768px) {
    .ultimos-trabajos .trabajos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .modal-nav { width: 45px; height: 45px; font-size: 1.8rem; }
    .modal-close { width: 45px; height: 45px; font-size: 1.8rem; top: 15px; right: 15px; }
    .modal-counter { font-size: 1rem; bottom: 15px; }
}
@media (max-width: 576px) {
    .ultimos-trabajos .trabajos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .fundador-section { margin: 1.5rem auto; }
    .ultimos-trabajos { padding: 1rem; }
    .modal-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}
@media (max-width: 400px) {
    .ultimos-trabajos .trabajos-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .modal-nav { width: 35px; height: 35px; font-size: 1.3rem; }
    .modal-close { width: 40px; height: 40px; font-size: 1.5rem; }
}
