/* ============================================
   GALERÍA CON PESTAÑAS - IA GENERATIVA
   ============================================ */
.ia-gallery-section {
    padding-top: 180px;
    min-height: 100vh;
}

/* Pestañas de navegación */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    color: var(--light-color);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.tab-btn.active {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    border-color: transparent;
    box-shadow: 0 0 20px var(--primary-color);
}

.tab-btn.blocked {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.tab-btn.blocked::after {
    content: 'Próximamente';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn.blocked:hover::after {
    opacity: 1;
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Galería de imágenes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 2rem 0;
}

.gallery-item {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.gallery-info p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Títulos de galería */
.gallery-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.gallery-title i {
    margin-right: 10px;
}

/* Sección vacía para contenido bloqueado */
.blocked-content {
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    border: 2px dashed rgba(255, 0, 128, 0.3);
    margin: 40px 0;
}

.blocked-content i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--accent-color);
}

.blocked-content h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.blocked-content p {
    color: #aaa;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Herramientas de IA */
.tools-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(10, 10, 26, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.tools-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.tools-title i {
    margin-right: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tool-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 0, 128, 0.3);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-color);
}

.tool-card h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.tool-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Lista de aplicaciones */
.ai-list {
    list-style: none;
    margin: 20px 0;
}

.ai-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #ccc;
}

.ai-list li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-section {
        padding: 20px;
    }
    
    .blocked-content {
        padding: 40px 15px;
    }
    
    .blocked-content h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* ============================================
   LIGHTBOX PARA GALERÍA IA GENERATIVA
   ============================================ */

/* Contenedor de imagen con overlay */
.ia-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.ia-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 243, 255, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.ia-image-overlay i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.ia-image-overlay span {
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.gallery-item:hover .ia-image-overlay {
    opacity: 1;
    background: rgba(255, 0, 128, 0.7);
    backdrop-filter: blur(5px);
}

.gallery-item:hover .ia-image-overlay i {
    transform: scale(1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Lightbox (usa el mismo que fullstack) */
.simple-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.simple-lightbox.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(15px);
}

.lightbox-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 15px;
    border: 3px solid var(--accent-color);
    box-shadow: 
        0 0 50px var(--accent-color),
        0 25px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from { 
        transform: translate(-50%, -40%);
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, -50%);
        opacity: 1; 
    }
}

.lightbox-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close-btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: rotate(90deg);
    box-shadow: 0 0 20px var(--accent-color);
}

.lightbox-image-wrapper {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.8);
    padding: 20px;
}

#iaLightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-controls {
    padding: 20px;
    background: rgba(10, 10, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border-top: 1px solid rgba(255, 0, 128, 0.3);
}

.lightbox-prev,
.lightbox-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 128, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
}

#iaImageCounter {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    text-shadow: 0 0 10px var(--accent-color);
}

.lightbox-caption {
    padding: 20px;
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid rgba(255, 0, 128, 0.3);
}

.lightbox-caption h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    text-align: center;
}

.lightbox-caption p {
    color: #ccc;
    text-align: center;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-modal {
        width: 95%;
    }
    
    .lightbox-image-wrapper {
        height: 300px;
        padding: 15px;
    }
    
    .lightbox-controls {
        padding: 15px;
        gap: 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #iaImageCounter {
        font-size: 1rem;
    }
    
    .lightbox-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lightbox-caption {
        padding: 15px;
    }
    
    .lightbox-caption h3 {
        font-size: 1.2rem;
    }
    
    .ia-image-container {
        height: 200px;
    }
}