/* ===============================================
   Workshops Section - Vibrant Premium Redesign
   =============================================== */

.workshops-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* --- Card Container --- */
.workshop-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.workshop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Status Badge --- */
.status-badge {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    /* Pull it up slightly to overlap the icon box visually but safely */
    margin-bottom: 20px;
    z-index: 10;
}

.status-badge span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
    /* Ensure text is readable */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

/* --- Icon Header --- */
.card-icon-header {
    padding: 40px 20px 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Decorative background glow behind icon */
.card-icon-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.icon-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.workshop-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.workshop-card:hover .icon-box i {
    color: #ffffff !important;
}

/* --- Card Body --- */
.card-body {
    padding: 20px 30px 40px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.taller-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.taller-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* --- Meta Details --- */
.taller-meta {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background 0.3s ease;
}

.workshop-card:hover .taller-meta {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.meta-item div {
    display: flex;
    flex-direction: column;
}

.meta-item small {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.meta-item.cost span.free {
    color: #2e7d32;
    font-weight: 800;
}

/* --- Requirements --- */
.requirements-box {
    margin-top: auto;
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.requirements-box h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.requirements-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-box ul li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.requirements-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ccc;
}


/* ==========================================================================
   COLOR THEMES (Vibrant Gradients per Card)
   ========================================================================== */

/* 1. PHYSICAL ACTIVATION (Red/Pink/Orange) */
.workshops-slide:nth-child(1) .icon-box {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
}

.workshops-slide:nth-child(1) .category-tag {
    color: #FF416C;
}

.workshops-slide:nth-child(1) .meta-item i {
    color: #FF416C;
}

.workshops-slide:nth-child(1) .workshop-card:hover {
    border-bottom: 5px solid #FF416C;
}

/* 2. MANUALIDADES (Purple/Indigo) */
.workshops-slide:nth-child(2) .icon-box {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.3);
}

.workshops-slide:nth-child(2) .category-tag {
    color: #8E2DE2;
}

.workshops-slide:nth-child(2) .meta-item i {
    color: #8E2DE2;
}

.workshops-slide:nth-child(2) .workshop-card:hover {
    border-bottom: 5px solid #8E2DE2;
}

/* 3. COMPOSTAS (Green/Teal) */
.workshops-slide:nth-child(3) .icon-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3);
}

.workshops-slide:nth-child(3) .category-tag {
    color: #11998e;
}

.workshops-slide:nth-child(3) .meta-item i {
    color: #11998e;
}

.workshops-slide:nth-child(3) .workshop-card:hover {
    border-bottom: 5px solid #11998e;
}

/* 4. PLÁTICAS (Blue/Cyan) - Assuming there might be a 4th card based on JS data */
.workshops-slide:nth-child(4) .icon-box {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(33, 147, 176, 0.3);
}

.workshops-slide:nth-child(4) .category-tag {
    color: #2193b0;
}

.workshops-slide:nth-child(4) .meta-item i {
    color: #2193b0;
}

.workshops-slide:nth-child(4) .workshop-card:hover {
    border-bottom: 5px solid #2193b0;
}

/* 5. GENERIC (Purple/Pink - Fallback) */
.workshops-slide:nth-child(5) .icon-box {
    background: linear-gradient(135deg, #da22ff 0%, #9733ee 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(218, 34, 255, 0.3);
}

.workshops-slide:nth-child(5) .category-tag {
    color: #da22ff;
}

.workshops-slide:nth-child(5) .meta-item i {
    color: #da22ff;
}

.workshops-slide:nth-child(5) .workshop-card:hover {
    border-bottom: 5px solid #da22ff;
}


/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.workshops-cta {
    background: white;
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Decorative Circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-1 {
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(214, 0, 70, 0.05) 0%, transparent 70%);
}

.circle-2 {
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
}

.workshops-cta h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}

.workshops-cta p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #d60046 0%, #aa0033 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(214, 0, 70, 0.2);
    display: inline-flex;
    align-items: center;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(214, 0, 70, 0.3);
    color: white;
}

.btn-outline-custom {
    background: white;
    color: #555;
    border: 2px solid #eee;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-custom:hover {
    border-color: #d60046;
    color: #d60046;
    background: #fff;
}

/* Icon */
.cta-icon-wrapper {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(214, 0, 70, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.cta-icon-wrapper i {
    font-size: 60px;
    color: #d60046;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .workshops-cta {
        padding: 40px 30px;
        text-align: center;
    }

    .workshops-cta p {
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }


    .cta-icon-wrapper {
        margin-top: 30px;
    }
}

/* ==========================================================================
   CAROUSEL (Swiper) STYLES - WORKSHOPS
   ========================================================================== */

.workshops-section .swiper {
    padding: 20px 10px 60px 10px;
    /* Space for hover effects and pagination */
    overflow-y: visible;
    /* Allow hover to go outside */
    overflow-x: clip;
    /* Clip horizontal */
}

.workshops-slide {
    height: auto;
    display: flex;
}

/* Use swiper pagination */
.workshops-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 5px !important;
}

.workshops-section .swiper-pagination-bullet-active {
    background-color: #d60046;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(214, 0, 70, 0.3);
}

.workshops-section .swiper-pagination {
    bottom: 0 !important;
}