/* css/sections/taller.css */

.lsp-inner--taller {
    padding-bottom: 3rem;
}

/* Hero block */
.taller-hero {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-glass);
}
.taller-hero-bg {
    position: absolute;
    inset: 0;
}
.taller-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 16s ease-out;
    filter: grayscale(8%);
}
.taller-hero:hover .taller-hero-bg img {
    transform: scale(1.04);
    filter: grayscale(0%);
}
.taller-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,8,5,0.65) 0%,
        rgba(10,8,5,0.2) 60%,
        rgba(10,8,5,0.0) 100%
    );
}
/* Location eyebrow — bottom-left accent only */
.taller-hero-loc {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    z-index: 2;
}
.taller-hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(198,156,86,0.9);
}

/* Program cards */
.taller-programs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.taller-prog-card {
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}
.taller-prog-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium), 0 12px 40px rgba(0,0,0,0.18);
}
.taller-prog-artwork {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0a0805;
}
.taller-prog-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
    filter: grayscale(10%);
}
.taller-prog-card:hover .taller-prog-artwork img {
    transform: scale(1.06);
    filter: grayscale(0%);
}
.taller-prog-body {
    padding: 1.75rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}
.taller-prog-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--border-glass);
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    letter-spacing: -1px;
    pointer-events: none;
    transition: color 0.3s ease;
}
.taller-prog-card:hover .taller-prog-num {
    color: var(--accent-glow);
}
.taller-prog-title {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-glass);
}
.taller-prog-text {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.taller-prog-schedule {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Taller practical info bar */
.taller-info-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    background: var(--bg-card);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-premium);
}
.taller-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.25rem 1.75rem;
}
.taller-info-sep {
    width: 1px;
    align-self: stretch;
    background: var(--border-glass);
    flex-shrink: 0;
}
.taller-info-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.taller-info-value {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
}
.taller-info-tel {
    text-decoration: none;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}
.taller-info-tel:hover {
    opacity: 0.75;
}
/* Subtitle & Lead styles for Taller section */
.taller-section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-top: 3.5rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.taller-section-subtitle::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background-color: var(--accent);
}
.taller-section-lead {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 800px;
}

/* El Espacio (Two levels grid) */
.taller-space-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}
.taller-space-card {
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}
.taller-space-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium), 0 10px 30px rgba(0,0,0,0.15);
}
.taller-space-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #000;
}
.taller-space-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
    filter: grayscale(12%);
}
.taller-space-card:hover .taller-space-img img {
    transform: scale(1.05);
    filter: grayscale(0%);
}
.taller-space-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.taller-space-card-title {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}
.taller-space-card-text {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Talleres Anuales layout wrap */
.taller-annual-section {
    margin-bottom: 3rem;
}

/* Activities Columns Grid */
.taller-activities-section {
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}
.taller-activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.taller-activities-col {
    display: flex;
    flex-direction: column;
}
.taller-activities-col .taller-section-subtitle {
    margin-top: 0;
}
.taller-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.taller-activity-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
}
.taller-activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.taller-activity-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-premium), 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.taller-activity-card:hover::before {
    background-color: var(--accent);
}
.taller-activity-media {
    width: 100%;
    height: 100%;
    min-height: 130px;
    overflow: hidden;
    position: relative;
    background: #000;
}
.taller-activity-media:has(.lightbox-trigger) {
    cursor: pointer;
}
.taller-activity-media img,
.taller-activity-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
    filter: grayscale(12%);
}
.taller-activity-card:hover .taller-activity-media img {
    transform: scale(1.06);
    filter: grayscale(0%);
}
.taller-inline-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.taller-activity-body {
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}
.taller-badge {
    align-self: flex-start;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background-color: var(--border-glass);
    color: var(--text-secondary);
}
.taller-badge--talk {
    background-color: rgba(198,156,86,0.15);
    color: var(--accent);
}
body.dark-theme .taller-badge--talk {
    color: #e6c587;
}
.taller-badge--event {
    background-color: rgba(40,116,240,0.15);
    color: var(--text-primary);
}
.taller-badge--workshop {
    background-color: rgba(220,100,80,0.15);
    color: var(--text-primary);
}
.taller-activity-title {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}
.taller-activity-text {
    font-family: var(--font-serif);
    font-size: 0.90rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Milagros CTA */
.taller-milagros-cta {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    border: 1px dashed var(--border-glass);
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.taller-milagros-cta-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
}
.taller-milagros-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}
.taller-milagros-btn:hover {
    background-color: transparent;
    color: var(--text-primary);
}
.taller-milagros-btn-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .taller-hero { height: 140px; }
    .taller-programs { grid-template-columns: 1fr; gap: 1.25rem; }
    .taller-prog-body { padding: 1.25rem 1.25rem 1.25rem; }
    .taller-info-bar { flex-direction: column; }
    .taller-info-item { padding: 1rem 1.25rem; }
    .taller-info-sep { width: 100%; height: 1px; align-self: auto; }
    
    /* New space, activities responsive overrides */
    .taller-space-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .taller-activities-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .taller-activity-card { grid-template-columns: 90px 1fr; }
    .taller-activity-media { min-height: 110px; }
}

/* Studio Taller Historical Gallery */
.taller-gallery-section {
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2.5rem;
}

.taller-gallery-title {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.taller-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.taller-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: #000;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.taller-gallery-item--featured {
    grid-column: span 2;
}

.taller-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(18%) grayscale(10%);
    transition: var(--transition-smooth);
}

.taller-gallery-overlay-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 6, 3, 0.85) 0%, rgba(8, 6, 3, 0.3) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.1rem;
    transition: opacity 0.4s ease;
}

.taller-gallery-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.35;
    text-align: left;
}

.taller-gallery-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: var(--shadow-premium), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.taller-gallery-item:hover img {
    filter: grayscale(0%) sepia(0%);
}

.taller-gallery-item:hover .taller-gallery-overlay-hover {
    opacity: 1;
}

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

@media (max-width: 600px) {
    .taller-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .taller-gallery-item--featured {
        grid-column: span 1;
    }
    .taller-gallery-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
    
    /* Mobile overrides for space and activities */
    .taller-section-subtitle { font-size: 0.88rem; margin-top: 2.5rem; }
    .taller-section-lead { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .taller-activity-card { grid-template-columns: 1fr; }
    .taller-activity-media { aspect-ratio: 16/10; min-height: 0; }
    .taller-space-img { aspect-ratio: 16/10; }
    .taller-milagros-cta { padding: 1rem 1.1rem; }
    .taller-milagros-btn { font-size: 0.68rem; padding: 0.55rem 0.85rem; }
}

/* Workshop Slideshow Styles */
.taller-activity-slideshow {
    position: relative;
}
.taller-activity-slideshow .slideshow-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    animation: fadeSlideshow 12s infinite;
}
.taller-activity-slideshow .slideshow-img.img-1 {
    animation-delay: 0s;
}
.taller-activity-slideshow .slideshow-img.img-2 {
    animation-delay: 4s;
}
.taller-activity-slideshow .slideshow-img.img-3 {
    animation-delay: 8s;
}

@keyframes fadeSlideshow {
    0% { opacity: 0; pointer-events: none; }
    8.33% { opacity: 1; pointer-events: auto; }
    33.33% { opacity: 1; pointer-events: auto; }
    41.67% { opacity: 0; pointer-events: none; }
    100% { opacity: 0; pointer-events: none; }
}

/* Taller Hero Light/Dark theme display */
.taller-hero-bg .hero-img-dark {
    display: none;
}
.taller-hero-bg .hero-img-light {
    display: block;
}
body.dark-theme .taller-hero-bg .hero-img-dark {
    display: block;
}
body.dark-theme .taller-hero-bg .hero-img-light {
    display: none;
}
.taller-hero.lightbox-trigger {
    cursor: pointer;
}

/* 4-Image Slideshow (Planta Alta) */
.taller-space-slideshow-4 {
    position: relative;
    width: 100%;
    height: 100%;
}
.taller-space-slideshow-4 .slideshow-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    animation: fadeSlideshow4 16s infinite;
}
.taller-space-slideshow-4 .slideshow-img.img-1 { animation-delay: 0s; }
.taller-space-slideshow-4 .slideshow-img.img-2 { animation-delay: 4s; }
.taller-space-slideshow-4 .slideshow-img.img-3 { animation-delay: 8s; }
.taller-space-slideshow-4 .slideshow-img.img-4 { animation-delay: 12s; }

@keyframes fadeSlideshow4 {
    0% { opacity: 0; pointer-events: none; }
    6.25% { opacity: 1; pointer-events: auto; }
    25% { opacity: 1; pointer-events: auto; }
    31.25% { opacity: 0; pointer-events: none; }
    100% { opacity: 0; pointer-events: none; }
}

/* 7-Image Slideshow (Planta Baja) */
.taller-space-slideshow-7 {
    position: relative;
    width: 100%;
    height: 100%;
}
.taller-space-slideshow-7 .slideshow-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    animation: fadeSlideshow7 28s infinite;
}
.taller-space-slideshow-7 .slideshow-img.img-1 { animation-delay: 0s; }
.taller-space-slideshow-7 .slideshow-img.img-2 { animation-delay: 4s; }
.taller-space-slideshow-7 .slideshow-img.img-3 { animation-delay: 8s; }
.taller-space-slideshow-7 .slideshow-img.img-4 { animation-delay: 12s; }
.taller-space-slideshow-7 .slideshow-img.img-5 { animation-delay: 16s; }
.taller-space-slideshow-7 .slideshow-img.img-6 { animation-delay: 20s; }
.taller-space-slideshow-7 .slideshow-img.img-7 { animation-delay: 24s; }

@keyframes fadeSlideshow7 {
    0% { opacity: 0; pointer-events: none; }
    3.57% { opacity: 1; pointer-events: auto; }
    14.28% { opacity: 1; pointer-events: auto; }
    17.85% { opacity: 0; pointer-events: none; }
    100% { opacity: 0; pointer-events: none; }
}





