html {
    scroll-behavior: smooth;
}

/* =========================================================
   NAVEGACIÓN
========================================================= */

.nav-active {
    color: #b88a44;
}


/* =========================================================
   HERO
========================================================= */

.about-hero {
    position: relative;
    min-height: 78vh;

    display: flex;
    align-items: center;

    background-image: url("../img/banner/nosotros.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero-content {
    max-width: 780px;
    color: white;
}

.about-hero h1 {
    margin: 25px 0;
    font-size: 64px;
    line-height: 1.08;
}

.about-hero p {
    max-width: 700px;
    margin-bottom: 42px;
    font-size: 19px;
    line-height: 1.8;
}


/* =========================================================
   SECCIONES GENERALES
========================================================= */

.about-introduction,
.history-section,
.timeline-section,
.identity-section {
    padding: 120px 0;
}

.about-introduction,
.timeline-section {
    background: white;
}

.history-section,
.identity-section {
    background: #f8f8f8;
}

.about-introduction h2,
.history-section > .container > h2,
.timeline-section h2,
.identity-section > .container > h2 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 46px;
    color: #2f2f2f;
}

.section-description {
    width: 70%;
    margin: 0 auto 70px;
    text-align: center;
    font-size: 20px;
    line-height: 1.8;
    color: #666;
}


/* =========================================================
   PRESENTACIÓN DE LAS EMPRESAS
========================================================= */

.company-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.company-summary-card,
.history-card,
.identity-company {
    background: white;
    border: 1px solid #ececec;
    border-radius: 20px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.company-summary-card {
    position: relative;
    overflow: hidden;
    padding: 45px 40px;
}

.company-summary-card::before,
.identity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #d8b37d;
    transition: width 0.35s ease;
}

.company-summary-card:hover::before,
.identity-card:hover::before {
    width: 100%;
}

.company-summary-card:hover,
.history-card:hover,
.identity-company:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.summary-number,
.identity-number {
    margin-bottom: 30px;
    font-size: 52px;
    font-weight: 700;
    color: #d8b37d;
}

.company-summary-card h3 {
    margin-bottom: 18px;
    font-size: 32px;
    color: #2f2f2f;
}

.company-summary-card p {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.text-link {
    display: inline-flex;
    color: #8b7355;
    font-weight: 600;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.text-link:hover {
    color: #b88a44;
    transform: translateX(6px);
}


/* =========================================================
   HISTORIA
========================================================= */

.history-card {
    padding: 55px;
    margin-bottom: 45px;
}

.history-card:last-child {
    margin-bottom: 0;
}

.history-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 45px;
    padding-bottom: 28px;
    margin-bottom: 35px;
    border-bottom: 1px solid #ececec;
}

.history-label,
.identity-heading span,
.timeline-content > span {
    display: block;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
}

.history-card-heading h3,
.identity-heading h3 {
    margin-top: 10px;
    font-size: 42px;
    color: #2f2f2f;
}

.history-card-heading > p {
    max-width: 430px;
    line-height: 1.8;
    color: #666;
}

.history-text {
    columns: 2;
    column-gap: 55px;
}

.history-text p {
    break-inside: avoid;
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.9;
    color: #666;
    text-align: justify;
}

.history-text strong {
    color: #2f2f2f;
}


/* =========================================================
   LÍNEA DE TIEMPO
========================================================= */

.timeline {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

/*
    La línea queda ubicada en el centro de la segunda columna.
    115 px de año + 70 px de columna central.
    115 + 35 = 150 px.
*/

.timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 150px;
    width: 1px;
    background: #d8b37d;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 115px 70px 1fr;
    align-items: start;
    min-height: 145px;
}

/* Etiqueta pequeña del año */

.timeline-year {
    width: 95px;
    min-height: 44px;
    padding: 8px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    justify-self: start;

    background: #fffaf4;
    border: 1px solid #d8b37d;
    border-radius: 30px;

    color: #3d342b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

/* Columna que contiene el círculo */

.timeline-marker {
    position: relative;
    z-index: 2;

    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculo de la línea */

.timeline-marker span {
    width: 18px;
    height: 18px;

    background: white;
    border: 2px solid #d8b37d;
    border-radius: 50%;

    box-shadow: 0 0 0 6px white;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

/* Texto de cada acontecimiento */

.timeline-content {
    max-width: 720px;
    padding: 0 0 45px 15px;
}

.timeline-content > span {
    margin-bottom: 7px;
    font-size: 11px;
    letter-spacing: 2.5px;
}

.timeline-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
    color: #2f2f2f;
}

.timeline-content p {
    max-width: 680px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Hover discreto */

.timeline-item:hover .timeline-year {
    background: #8b7355;
    border-color: #8b7355;
    color: white;
    transform: translateY(-2px);
}

.timeline-item:hover .timeline-marker span {
    background: #d8b37d;
    transform: scale(1.1);
}

/* Actualidad */

.timeline-current .timeline-year {
    width: auto;
    min-width: 105px;
    padding: 8px 16px;
    background: #8b7355;
    border-color: #8b7355;
    color: white;
    font-size: 14px;
}

.timeline-current .timeline-marker span {
    background: #d8b37d;
}


/* =========================================================
   MISIÓN, VISIÓN Y VALORES
========================================================= */

.identity-company {
    padding: 45px;
    margin-bottom: 45px;
}

.identity-company:last-child {
    margin-bottom: 0;
}

.identity-heading {
    margin-bottom: 35px;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.identity-card {
    position: relative;
    overflow: hidden;
    padding: 38px 32px;
    background: white;
    border: 1px solid #ececec;
    border-radius: 20px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.identity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.identity-number {
    margin-bottom: 25px;
}

.identity-card h4 {
    margin-bottom: 18px;
    font-size: 26px;
    color: #2f2f2f;
}

.identity-card p,
.identity-card li {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.identity-card ul {
    padding-left: 20px;
    list-style: disc;
}

.identity-card li + li {
    margin-top: 7px;
}


/* =========================================================
   SECCIÓN FINAL
========================================================= */

.about-closing {
    padding: 110px 0;
    background: #2f2f2f;
    text-align: center;
    color: white;
}

.about-closing h2 {
    max-width: 820px;
    margin: 25px auto;
    font-size: 48px;
    line-height: 1.2;
}

.about-closing p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #ddd;
}

.closing-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.btn-outline {
    display: inline-block;
    padding: 18px 42px;

    border: 2px solid white;
    border-radius: 40px;

    color: white;
    font-weight: 600;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #222;
    transform: translateY(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    header .container {
        height: auto;
        min-height: 90px;
        padding: 18px 0;
        gap: 20px;
        flex-wrap: wrap;
    }

    .company-summary-grid,
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .history-text {
        columns: 1;
    }

    .timeline {
        max-width: 850px;
    }

    .timeline::before {
        left: 130px;
    }

    .timeline-item {
        grid-template-columns: 100px 60px 1fr;
    }

    .timeline-year {
        width: 88px;
        min-height: 42px;
        font-size: 17px;
    }

    .timeline-content {
        padding-left: 12px;
    }
}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 700px) {

    header .container {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .about-hero {
        min-height: 680px;
    }

    .about-hero h1 {
        font-size: 43px;
    }

    .about-hero p {
        font-size: 17px;
    }

    .about-introduction,
    .history-section,
    .timeline-section,
    .identity-section {
        padding: 80px 0;
    }

    .about-introduction h2,
    .history-section > .container > h2,
    .timeline-section h2,
    .identity-section > .container > h2 {
        font-size: 36px;
    }

    .section-description {
        width: 100%;
        margin-bottom: 50px;
        font-size: 17px;
    }

    .company-summary-card,
    .history-card,
    .identity-company,
    .identity-card {
        padding: 28px 24px;
    }

    .history-card-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .history-card-heading h3,
    .identity-heading h3 {
        font-size: 34px;
    }

    /*
        En celular la línea queda a la izquierda.
        La fecha y el contenido aparecen a su derecha.
    */

    .timeline {
        padding-left: 35px;
    }

    .timeline::before {
        top: 18px;
        bottom: 18px;
        left: 9px;
    }

    .timeline-item {
        display: block;
        min-height: auto;
        margin-bottom: 45px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-year {
        width: fit-content;
        min-width: 82px;
        min-height: 38px;
        margin-bottom: 16px;
        padding: 7px 14px;

        border-radius: 25px;

        font-size: 16px;
    }

    .timeline-current .timeline-year {
        min-width: 100px;
        font-size: 13px;
    }

    .timeline-marker {
        position: absolute;
        top: 11px;
        left: -35px;
        min-height: 0;
    }

    .timeline-marker span {
        width: 17px;
        height: 17px;
        border-width: 2px;
        box-shadow: 0 0 0 5px white;
    }

    .timeline-content {
        max-width: none;
        padding: 0;
    }

    .timeline-content h3 {
        font-size: 22px;
    }

    .timeline-content p {
        font-size: 15px;
        line-height: 1.75;
    }

    .about-closing h2 {
        font-size: 38px;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 430px) {

    .about-hero h1 {
        font-size: 36px;
    }

    .about-introduction h2,
    .history-section > .container > h2,
    .timeline-section h2,
    .identity-section > .container > h2 {
        font-size: 31px;
    }

    .history-card-heading h3,
    .identity-heading h3 {
        font-size: 30px;
    }

    .timeline-content h3 {
        font-size: 20px;
    }

    .about-closing h2 {
        font-size: 32px;
    }
}