:root{
    --color-main:#b08b3c;
    --color-light2:#d8cfb7;
    --color-text:#1d1d1d;
    --color-muted:#777;
}

/* =========================
   WRAPPER
========================= */

.timeline-wrapper{
    width:100%;
}

/* =========================
   HEADER GENERAL
========================= */

.timeline-header{
    display:flex;
    align-items:center;
    justify-content: center;
    gap:20px;
    margin-bottom:40px;
}

.timeline-header .arrow{
    width:18px;
    height:18px;
    border-top:4px solid var(--color-main);
    border-right:4px solid var(--color-main);
    cursor:pointer;
    flex:0 0 auto;
}

.timeline-header .prev{
    transform:rotate(-135deg);
}

.timeline-header .next{
    transform:rotate(45deg);
}

.timeline-header .title{
    font-size:34px;
    font-weight:bold;
    line-height:1;
}

.timeline-header .subtitle{
    font-size:20px;
    font-weight:700;
    line-height:1;
}

/* =========================
   TIMELINE CONTAINER
========================= */

.timeline{
    position:relative;
    margin-left:40px;
}

/* línea vertical */
.timeline::before{
    content:"";
    position:absolute;

    left:23px;
    top:23px;
    bottom:23px;

    width:3px;

    background:var(--color-main);
}

/* =========================
   ITEM
========================= */

.timeline-item{
    display:grid;
    grid-template-columns:60px 1fr;
    column-gap:20px;

    align-items:start;

    margin-bottom:12px;
    position:relative;
}

/* =========================
   NODO SVG
========================= */

.timeline-number{
    width:46px;
    height:46px;

    background:var(--color-light2);

    -webkit-mask-image:url("/svg/mascara.svg");
    mask-image:url("/svg/mascara.svg");

    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;

    -webkit-mask-position:center;
    mask-position:center;

    -webkit-mask-size:46px 46px;
    mask-size:46px 46px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;
    font-size:22px;
    font-weight:bold;

    justify-self:start;

    transition:
        transform .25s ease,
        background .25s ease;

    transform-origin:center center;
}

/* activo */

.timeline-item.active .timeline-number{
    background:var(--color-main);
    transform:scale(1.22);
}

/* =========================
   BLOQUE DERECHO
========================= */

.timeline-body{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

/* =========================
   HEADER DEL ITEM
========================= */

.timeline-header-row{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content: center;
    min-height:46px;
}

/* =========================
   BLOQUE TITULO
========================= */

.timeline-title-block{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

/* título */

.timeline-title{
    margin:0;

    font-size:26px;
    line-height:1;

    font-weight:800;

    cursor:pointer;
    user-select:none;

    transition:
        color .2s ease,
        font-size .2s ease;
}

.timeline-item:not(.active) .timeline-title{
    font-size:22px;
    color:#7d7d7d;
}

/* régimen */

.timeline-regimen{
    font-size:14px;
    font-weight:700;
    color:var(--color-main);

    white-space:nowrap;
    opacity:.9;

    line-height:1;
}

/* =========================
   CONTENIDO
========================= */

.timeline-content{
    overflow:hidden;
    width: 100%;
    max-height:0;
    opacity:0;

    transition:
        max-height .35s ease,
        opacity .25s ease;

    min-width:0;
}

.timeline-item.active .timeline-content{
    opacity:1;
}

/* texto */

.timeline-content p{
    margin:0;

    font-size:18px;
    line-height:1.4;

    color:var(--color-text);
}

.timeline-item:not(.active) .timeline-content p{
    color:var(--color-muted);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:980px){

    .timeline-header-row{
        grid-template-columns:1fr;
        gap:10px;
    }

    .timeline-title-block{
        flex-wrap:wrap;
    }
}

@media(max-width:768px){

    .timeline{
        margin-left:0;
    }

    .timeline::before{
        left:20px;
    }

    .timeline-header{
        gap:12px;
    }

    .timeline-header .title{
        font-size:26px;
    }

    .timeline-header .subtitle{
        font-size:16px;
    }

    .timeline-item{
        grid-template-columns:50px 1fr;
        column-gap:16px;
    }

    .timeline-number{
        width:40px;
        height:40px;

        -webkit-mask-size:40px 40px;
        mask-size:40px 40px;

        font-size:18px;
    }

    .timeline-header-row{
        gap:12px;
        min-height:auto;
    }

    .timeline-title{
        font-size:32px;
    }

    .timeline-item:not(.active) .timeline-title{
        font-size:22px;
    }

    .timeline-content p{
        font-size:16px;
    }
}

