/* =============================================
   About Page — Liam Vercceli
   ============================================= */

/* Anclas del menú (#nosotros, #estadisticas, #valores, #trayectoria) */
.ab-anchor-section,
#nosotros,
#estadisticas,
#valores,
#trayectoria {
    scroll-margin-top: 140px;
}

/* ── Hero ────────────────────────────────── */
.ab-hero {
    position: relative;
    height: 120px;
    max-height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.ab-hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1445205170230-053b83016050?w=1600&q=80') center/cover no-repeat;
    transform: scale(1.08);
    transition: transform 6s ease;
}
.ab-hero__bg.zoomed { transform: scale(1); }
.ab-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(20,20,20,.45) 100%);
}
.ab-hero__content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 0 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .8s ease .2s, transform .8s ease .2s;
}
.ab-hero__content.visible { opacity: 1; transform: translateY(0); }
.ab-hero__tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 6px;
    display: block;
}
.ab-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2.4vw, 24px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 4px;
    letter-spacing: 2px;
}
.ab-hero__title span { color: #e74c3c; }
.ab-hero__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ── Separador decorativo ────────────────── */
.ab-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 50px 0 40px;
}
.ab-divider__line {
    height: 1px;
    width: 80px;
    background: #e0e0e0;
}
.ab-divider__diamond {
    width: 10px;
    height: 10px;
    background: #c0392b;
    transform: rotate(45deg);
}

/* ── Sección genérica ────────────────────── */
.ab-section { padding: 36px 0; }
.ab-section--gray { background: #f8f8f8; }
.ab-section--dark { background: #111; }

.ab-section__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c0392b;
    display: block;
    margin-bottom: 10px;
}
.ab-section__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.ab-section--dark .ab-section__title { color: #fff; }
.ab-section__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    max-width: 540px;
}
.ab-section--dark .ab-section__text { color: rgba(255,255,255,.65); }

/* ── Historia / Story ────────────────────── */
.ab-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ab-story__img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.ab-story__img-wrap img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.ab-story__img-wrap:hover img { transform: scale(1.04); }
.ab-story__img-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #c0392b;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ab-story__list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
.ab-story__list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ab-story__list li i { color: #c0392b; font-size: 12px; }

/* ── Contadores animados ─────────────────── */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.ab-stat {
    text-align: center;
    padding: 50px 20px;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: background .3s;
}
.ab-stat:last-child { border-right: none; }
.ab-stat:hover { background: rgba(255,255,255,.04); }
.ab-stat__num {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #c0392b;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}
.ab-stat__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
}

/* ── Valores ─────────────────────────────── */
.ab-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.ab-value-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 6px;
    padding: 36px 28px;
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: default;
}
.ab-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.09);
    border-color: #c0392b;
}
.ab-value-card__icon {
    width: 62px;
    height: 62px;
    background: #fff0ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #c0392b;
    transition: background .3s;
}
.ab-value-card:hover .ab-value-card__icon { background: #c0392b; color: #fff; }
.ab-value-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.ab-value-card__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.7;
}

/* ── Equipo ──────────────────────────────── */
.ab-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.ab-team-card {
    text-align: center;
    overflow: hidden;
    border-radius: 6px;
}
.ab-team-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.ab-team-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    filter: grayscale(20%);
}
.ab-team-card:hover .ab-team-card__img-wrap img {
    transform: scale(1.06);
    filter: grayscale(0%);
}
.ab-team-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(192,57,43,.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    gap: 12px;
}
.ab-team-card:hover .ab-team-card__overlay { opacity: 1; }
.ab-team-card__overlay a {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s;
}
.ab-team-card__overlay a:hover { background: #fff; color: #c0392b; }
.ab-team-card__info { padding: 14px 8px 0; }
.ab-team-card__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.ab-team-card__role {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #c0392b;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Timeline ────────────────────────────── */
.ab-timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 50px;
}
.ab-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}
.ab-timeline__item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .6s ease, transform .6s ease;
}
.ab-timeline__item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
    transform: translateX(30px);
}
.ab-timeline__item.visible { opacity: 1; transform: translateX(0); }
.ab-timeline__dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #c0392b;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c0392b;
    top: 16px;
}
.ab-timeline__card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 6px;
    padding: 20px 24px;
    max-width: 360px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.ab-timeline__year {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 6px;
}
.ab-timeline__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.ab-timeline__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

/* ── CTA Banner ──────────────────────────── */
.ab-cta {
    background: linear-gradient(135deg, #c0392b 0%, #c0392b 100%);
    padding: 70px 0;
    text-align: center;
}
.ab-cta__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.ab-cta__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin-bottom: 30px;
    line-height: 1.7;
}
.ab-cta__btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #c0392b;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background .2s, color .2s, transform .2s;
}
.ab-cta__btn:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 991px) {
    .ab-story { grid-template-columns: 1fr; gap: 36px; }
    .ab-stats  { grid-template-columns: repeat(2, 1fr); }
    .ab-values { grid-template-columns: repeat(2, 1fr); }
    .ab-team   { grid-template-columns: repeat(2, 1fr); }
    .ab-timeline::before { left: 20px; }
    .ab-timeline__item,
    .ab-timeline__item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
        transform: translateX(-20px);
    }
    .ab-timeline__dot { left: 20px; }
}
@media (max-width: 575px) {
    .ab-hero { height: 100px; max-height: 100px; }
    .ab-stats { grid-template-columns: repeat(2, 1fr); }
    .ab-values { grid-template-columns: 1fr; }
    .ab-team   { grid-template-columns: repeat(2, 1fr); }
}
