/* ══════════════════════════════════════════════════════
   Case Cards – Public CSS  v1.0.1
   ══════════════════════════════════════════════════════ */

:root {
    --lfabcc-accent:      #a9f806;
    --lfabcc-radius:      45px;
    --lfabcc-card-h:      520px;
    --lfabcc-panel-bg:    rgba(28, 28, 28, 0.97);
    --lfabcc-transition:  0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.lfabcc-section {
    width: 100%;
}

/* ══════════════════════
   DESKTOP — 2 columnas
   ══════════════════════ */
.lfabcc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lfabcc-card {
    position: relative;
    height: var(--lfabcc-card-h);
    border-radius: var(--lfabcc-radius);
    overflow: hidden;
    background-color: #111;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Overlay gradiente sutil siempre visible */
.lfabcc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.15) 38%,
        rgba(0,0,0,0)    100%
    );
    border-radius: inherit;
    z-index: 1;
    transition: opacity var(--lfabcc-transition);
}
.lfabcc-card:hover .lfabcc-card__overlay {
    opacity: 0.35;
}

.lfabcc-card__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Título que se ve en reposo, sobre la imagen */
.lfabcc-card__title-peek {
    padding: 0 32px 26px;
    transition: opacity var(--lfabcc-transition), transform var(--lfabcc-transition);
}
.lfabcc-card__title-peek-text {
    margin: 0;
    color: #fff;
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.lfabcc-card:hover .lfabcc-card__title-peek {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Panel gris oscuro que sube al hacer hover */
.lfabcc-card__panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lfabcc-panel-bg);
    border-radius: var(--lfabcc-radius);
    transform: translateY(100%);
    transition: transform var(--lfabcc-transition);
    padding: 24px 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}
.lfabcc-card:hover .lfabcc-card__panel {
    transform: translateY(0);
}

.lfabcc-card__title {
    margin: 0;
    color: #fff;
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.lfabcc-card__desc {
    margin: 0;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.55;
}

/* ══════════════════════
   RESULTADOS
   ══════════════════════ */
.lfabcc-results {
    margin-top: 2px;
}

.lfabcc-results__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-bottom: 9px;
}

.lfabcc-metrics {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lfabcc-metric {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.lfabcc-metric__arrow {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: var(--lfabcc-accent);
}

.lfabcc-metric__value {
    font-size: 16px;
    font-weight: 800;
    color: var(--lfabcc-accent);
    letter-spacing: -0.02em;
}

.lfabcc-metric__label {
    font-size: 12px;
    color: rgba(255,255,255,0.58);
    font-weight: 400;
}

.lfabcc-logros {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lfabcc-logros li {
    list-style: none;
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.45;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.lfabcc-logros li::before {
    content: '—';
    flex-shrink: 0;
    color: var(--lfabcc-accent);
    font-size: 11px;
    position: relative;
    left: -10px;
    margin-right: -10px;
}

/* ══════════════════════
   MOBILE SLIDER — carousel con peek
   ══════════════════════ */
.lfabcc-slider {
    display: none;
    overflow: hidden;
    position: relative;
    padding: 0 6%;
    box-sizing: border-box;
}

/* Track flex que se desplaza */
.lfabcc-slider__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Cada slide: 100% del contenedor (ya reducido por padding del slider) + peek del siguiente */
.lfabcc-slide {
    flex: 0 0 100%;
    margin-right: 12px;
    opacity: 0.5;
    transform: scale(0.96);
    transition: opacity 0.38s ease, transform 0.38s ease;
}
.lfabcc-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.lfabcc-slide__inner {
    border-radius: var(--lfabcc-radius);
    overflow: hidden;
    background: #111;
}

.lfabcc-slide__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.lfabcc-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lfabcc-slide__image-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
}

.lfabcc-slide__body {
    padding: 20px 28px 26px;
    background: var(--lfabcc-panel-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lfabcc-slide__title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.lfabcc-slide__desc {
    margin: 0;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.55;
}

/* Nav */
.lfabcc-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.lfabcc-slider__dots {
    display: flex;
    gap: 7px;
}
.lfabcc-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.lfabcc-slider__dot.is-active {
    background: var(--lfabcc-accent);
    transform: scale(1.45);
}

/* Flechas minimalistas: solo < > en acento */
.lfabcc-slider__arrow {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 200;
    line-height: 1;
    color: var(--lfabcc-accent);
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lfabcc-slider__arrow:hover { opacity: 1; transform: scale(1.2); }
.lfabcc-slider__arrow svg { display: none; }
.lfabcc-slider__arrow--prev::before { content: '<'; }
.lfabcc-slider__arrow--next::before { content: '>'; }

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 767px) {
    .lfabcc-grid   { display: none; }
    .lfabcc-slider { display: block; }
}
