.foco-carousel-section {
    padding: 100px 0;
    background-color: #ffffff; /* Light premium background */
    color: #0f172a;
    overflow: hidden;
    font-family: var(--font-sans), sans-serif;
    position: relative;
}

.foco-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.foco-carousel-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.foco-carousel-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ff4500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.foco-carousel-tag::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ff4500;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.foco-carousel-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.foco-carousel-subtitle {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    line-height: 1.6;
}

/* Controls */
.foco-carousel-controls {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.foco-btn-prev, .foco-btn-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: all 0.3s ease;
}

.foco-btn-prev:hover, .foco-btn-next:hover {
    background: #ff4500;
    color: #ffffff;
    transform: scale(1.05);
}

.foco-btn-prev svg, .foco-btn-next svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .foco-carousel-controls {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
}

.foco-carousel-track-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    padding-bottom: 40px;
    margin-right: -24px; /* bleed edge on mobile */
    padding-right: 24px;
    /* Add scroll-snap for mobile perfection */
    scroll-snap-type: x mandatory;
}

/* Remove snap while dragging */
.foco-carousel-track-wrapper.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.foco-carousel-track-wrapper::-webkit-scrollbar { 
    display: none; /* Safari and Chrome */
}

.foco-carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding-left: 2px;
}

.foco-carousel-card {
    width: 400px;
    height: 550px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    /* Snap align */
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .foco-carousel-track {
        gap: 16px;
    }
    .foco-carousel-card {
        width: 85vw;
        height: 500px;
    }
}

.foco-carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 69, 0, 0.2);
}

.foco-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.foco-carousel-card:hover .foco-card-bg {
    transform: scale(1.08);
}

.foco-card-overlay {
    display: none; 
}

.foco-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%; 
    padding: 30px 30px 36px 30px; /* More padding at bottom */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background: #ffffff;
}

.foco-card-step {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff4500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.foco-card-title {
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.foco-carousel-card:hover .foco-card-title {
    color: #ff4500;
}

.foco-card-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: auto;
}

.foco-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, gap 0.3s ease;
    margin-top: 16px;
}

.arrow-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    transition: all 0.3s ease;
}

.foco-carousel-card:hover .foco-card-action {
    color: #ff4500;
    gap: 12px;
}

.foco-carousel-card:hover .arrow-wrap {
    background: #ff4500;
    color: #ffffff;
    transform: translateX(4px);
}

.foco-card-action svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Progress Bar */
.foco-progress-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding-top: 20px;
}

.foco-progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.foco-progress-fill {
    height: 100%;
    background: #ff4500;
    width: 0%;
    transition: width 0.1s linear;
}

/* Scroll Reveal Animations */
.foco-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.foco-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255, 69, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}
