/* =========================================================
   AYS OBRAS — CONÓCENOS
   ========================================================= */


/* =========================================================
   SECCIÓN
   ========================================================= */

.ays-about {
    position: relative;
    z-index: 60;

    width: 100%;
    min-height: 100dvh;

    margin: 0;
    margin-top: 25dvh;
    padding: 12dvh 5vw 0;

    box-sizing: border-box;

    overflow: hidden;
    background: #FFFFFF;
}




/* =========================================================
   GUÍA AMARILLA — CONTINUIDAD ENTRE SECCIONES
   ========================================================= */

.ays-about-guide {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ays-about-line-entry,
.ays-about-line-drop,
.ays-about-line-exit {
    position: absolute;
    display: block;
    width: 3px;
    background: #FEEAAF;
    will-change: transform;
}

.ays-about-line-horizontal {
    position: absolute;
    display: block;
    width: 35%;
    height: 3px;
    background: #FEEAAF;
    will-change: transform;
}

.ays-about-line-entry {
    top: 0;
    left: 15%;
    height: 7dvh;
    transform: scaleY(1);
    transform-origin: top center;
}

.ays-about-line-horizontal {
    top: 7dvh;
    left: 15%;
    transform: scaleX(1);
    transform-origin: left center;
}

.ays-about-line-drop {
    top: 7dvh;
    left: 50%;
    height: 20dvh;
    transform: scaleY(1);
    transform-origin: top center;
}

.ays-about-line-exit {
    bottom: 0;
    left: 15%;
    height: 22dvh;
    transform: scaleY(1);
    transform-origin: top center;
}


/* =========================================================
   CABECERA
   ========================================================= */

.ays-about-header {
    display: flex;
    justify-content: flex-end;

    padding-right: 4vw;

    position: relative;
    z-index: 3;

    box-sizing: border-box;
}


.ays-about-header h2 {
    margin: 0;
    padding: 0;

    color: #102B3F;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(56px, 6.2vw, 100px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.01em;
}


/* =========================================================
   BLOQUE PRINCIPAL
   ========================================================= */

.ays-about-card {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns: 35% 65%;

    width: 100%;
    min-height: 56dvh;

    margin-top: 6dvh;

    background: #F3F3F3;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.ays-about-image {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #ADB2B8;
}


.ays-about-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;

    margin: 0;
    padding: 0;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.ays-about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(36px, 4.8vw, 82px);

    box-sizing: border-box;
}


.ays-about-content h3 {
    margin: 0;
    padding: 0;

    color: #373737;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(48px, 4.9vw, 84px);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: 0.02em;
}


.ays-about-content h3 span {
    color: #FEEAAF;
}

.ays-about-description {
    max-width: 720px;
    margin: clamp(20px, 2.5dvh, 30px) 0 0;

    color: #55606a;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.5;
}

.ays-about-machinery {
    max-width: 690px;
    margin: clamp(18px, 2.2dvh, 28px) 0 0;
    padding-left: 18px;

    border-left: 3px solid #FEEAAF;

    color: #102B3F;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(20px, 1.55vw, 28px);
    font-weight: 400;
    letter-spacing: .035em;
    line-height: 1.06;
}


/* =========================================================
   DATOS / ESTADÍSTICAS
   ========================================================= */

.ays-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin-top: clamp(28px, 4dvh, 52px);
}


.ays-about-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 8px;

    min-height: 84px;

    padding: 0 clamp(12px, 1.6vw, 28px);

    box-sizing: border-box;

    color: #373737;
    text-align: center;
}


.ays-about-stat:first-child {
    padding-left: clamp(12px, 1.6vw, 28px);
}


.ays-about-stat + .ays-about-stat {
    border-left: 3px solid #FEEAAF;
}


.ays-about-stat strong {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(40px, 3.1vw, 56px);
    font-weight: 400;
    line-height: 0.8;
}


.ays-about-stat span {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(17px, 1.35vw, 23px);
    font-weight: 400;
    line-height: 1.05;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    .ays-about {
        height: 100dvh;
        min-height: 640px;

        padding: 9dvh 6vw 0;
    }

    .ays-about-header {
        justify-content: flex-start;
        padding-right: 0;
    }

    .ays-about-header h2 {
        font-size: clamp(42px, 11vw, 52px);
    }

    .ays-about-card {
        grid-template-columns: 1fr;
        grid-template-rows: 22dvh minmax(0, 1fr);

        min-height: 72dvh;

        margin-top: 2.5dvh;
    }

    .ays-about-image {
        height: 22dvh;
    }

    .ays-about-content {
        justify-content: flex-start;

        padding: clamp(20px, 3.2dvh, 28px) 20px 18px;
    }

    .ays-about-content h3 {
        font-size: clamp(32px, 10.2vw, 42px);
        line-height: 0.9;
    }

    .ays-about-description {
        display: -webkit-box;

        max-width: none;
        max-height: 5.4em;

        margin: 12px 0 0;

        overflow: hidden;

        color: #55606A;

        font-size: clamp(14px, 3.6vw, 16px);
        line-height: 1.35;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .ays-about-machinery {
        display: none;
    }

    .ays-about-stats {
        grid-template-columns: repeat(2, 1fr);

        gap: 0;

        margin-top: clamp(13px, 2dvh, 18px);

        border-top: 1px solid rgba(16, 43, 63, 0.15);
    }

    .ays-about-stat {
        position: relative;

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

        gap: 2px;

        min-height: clamp(78px, 11.5dvh, 96px);

        padding: 12px;

        color: #102B3F;
        text-align: left;
    }

    .ays-about-stat + .ays-about-stat {
        border-left: 1px solid #FEEAAF;
    }

    .ays-about-stat:nth-child(3),
    .ays-about-stat:nth-child(4) {
        border-top: 1px solid rgba(16, 43, 63, 0.15);
    }

    .ays-about-stat:nth-child(3) {
        border-left: 0;
    }

    .ays-about-stat::before {
        position: absolute;
        top: 12px;
        right: 10px;
        bottom: auto;
        left: auto;

        width: 21px;
        height: 21px;

        content: '';

        background-color: #102B3F;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .ays-about-stat:nth-child(1)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102B3F' stroke-width='1.7'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='1.5'/%3E%3Cpath d='M7.5 3.5v4M16.5 3.5v4M3.5 10h17M8 14h.01M12 14h.01M16 14h.01M8 17h.01M12 17h.01'/%3E%3C/svg%3E");
        background-color: transparent;
    }

    .ays-about-stat:nth-child(2)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102B3F' stroke-width='1.7'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.2'/%3E%3Cpath d='M3.5 20c.4-3.6 2.4-5.5 5.5-5.5s5.1 1.9 5.5 5.5M14 15.2c3.5-.1 5.7 1.5 6.2 4.8'/%3E%3C/svg%3E");
        background-color: transparent;
    }

    .ays-about-stat:nth-child(3)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102B3F' stroke-width='1.7'%3E%3Cpath d='M3 18.5h18M5 18.5v-4h6l2-5h3.5l1.5 5H20v4M8 14.5V11h3M14.5 9.5V6.5h3M6.5 21h.01M18 21h.01'/%3E%3C/svg%3E");
        background-color: transparent;
    }

    .ays-about-stat:nth-child(4)::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102B3F' stroke-width='1.7'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
        background-color: transparent;
    }

    .ays-about-stat strong {
        font-size: clamp(32px, 8.2vw, 40px);
        line-height: 0.86;
    }

    .ays-about-stat span {
        font-size: clamp(16px, 4.2vw, 18px);
        line-height: 1;
    }

    .ays-about-stat:not(:first-child) span::first-line {
        font-size: clamp(20px, 5.2vw, 24px);
        line-height: 0.9;
    }

}
