:root {
    --creatibog-color-primary: var(--wp--preset--color--primary, var(--ast-global-color-0, var(--e-global-color-primary, #FB5F34)));
    --creatibog-color-primary-hover: color-mix(in srgb, var(--creatibog-color-primary), black 10%);
}

/* Container - evita scroll horizontal en móvil (Safari iOS) */
.creatibog-slider-container {
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.creatibog-swiper {
    padding-bottom: 40px !important; /* Space for pagination */
    overflow: visible;
    max-width: 100%;
}

/* Asegurar que los slides tengan altura para mostrar imágenes */
.creatibog-swiper .swiper-slide {
    height: auto;
    min-height: 380px;
}

.creatibog-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Card Wrapper */
.creatibog-card {
    background-color: #fff;
    border-radius: 0.5rem; /* rounded-lg */
    border: 2px solid var(--creatibog-color-primary); /* border-2 border-[#1A2E4F] */
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    color: #1f2937; /* text-card-foreground */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.creatibog-card:hover {
    border-color: var(--creatibog-color-primary-hover); /* hover:border-[#2A3E5F] */
    transform: translateY(-5px); /* hover-lift approximation */
}

/* Image Section */
.creatibog-card-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.creatibog-card .aspect-square {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background-color: rgba(243, 244, 246, 0.3); /* bg-muted/30 */
    width: 100%;
    min-height: 180px;
}

.creatibog-card-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.creatibog-card:hover .creatibog-card-img {
    transform: scale(1.05); /* group-hover:scale-105 */
}

.creatibog-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--creatibog-color-primary), transparent 60%), transparent); /* from-[#1A2E4F]/40 */
    pointer-events: none;
}

/* Badge Icon Top Right */
.absolute { position: absolute; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.bottom-3 { bottom: 0.75rem; }
.left-3 { left: 0.75rem; }

.creatibog-badge-icon {
    background-color: rgba(26, 46, 79, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.25rem;
    border: 1px solid rgba(26, 46, 79, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Card Bottom */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.font-medium { font-weight: 500; }
.text-muted-foreground { color: #6b7280; }

/* Content Section */
.creatibog-card-content {
    padding: 1rem; /* p-4 */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    flex-grow: 1;
}

.creatibog-card-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    transition: color 0.3s;
}

.creatibog-card:hover .creatibog-card-name {
    color: #FB5F34;
}

.creatibog-card-role {
    margin: 0;
    color: #FB5F34;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
}

.creatibog-card-meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem; /* text-xs */
}

.creatibog-card-bio {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem; /* text-xs */
    line-height: 1.625; /* leading-relaxed */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.creatibog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: auto; /* Push to bottom if flex column */
}

.creatibog-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--creatibog-color-primary), transparent 70%);
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    color: var(--creatibog-color-primary);
    background-color: color-mix(in srgb, var(--creatibog-color-primary), transparent 95%);
    border-radius: 0.375rem; /* rounded-md */
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet-active {
    background-color: #1A2E4F !important;
}

/* Shared Tag Style for Slider */
.creativo-sector-tag {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.75em;
    font-weight: 500;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .creatibog-slider-container {
        padding: 16px 12px;
    }
    .creatibog-swiper .swiper-slide {
        min-height: 320px;
    }
    .creatibog-card .aspect-square {
        min-height: 160px;
    }
    .creatibog-card-img {
        min-height: 160px;
    }
}
@media (max-width: 480px) {
    .creatibog-swiper .swiper-slide {
        min-height: 280px;
    }
    .creatibog-card .aspect-square,
    .creatibog-card-img {
        min-height: 140px;
    }
}
