/* =========================================================
   IMEXA — CSS PRINCIPAL
   Estructura limpia
   ========================================================= */


/* =========================================================
   01. VARIABLES / RESET
   ========================================================= */

:root {
    --beige: #F3EDE2;
    --beige-light: #FAF8F4;
    --beige-dark: #E5DCCF;

    --blue: #1F618B;
    --blue-dark: #174A69;
    --blue-soft: #5F8EAA;

    --gray: #6B6B63;
    --gray-light: #8A8982;
    --gray-dark: #4F575B;

    --text: #26333C;
    --white: #FFFFFF;

    --glass: rgba(255,255,255,.17);
    --glass-hover: rgba(255,255,255,.30);
    --glass-border: rgba(255,255,255,.42);

    --shadow:
        0 15px 45px rgba(39,50,58,.055);

    --shadow-hover:
        0 25px 60px rgba(39,50,58,.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(31,97,139,.10),
            transparent 42%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(31,97,139,.07),
            transparent 40%
        ),
        var(--beige-light);

    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   02. NAVBAR
   ========================================================= */

#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 80px);
    max-width: 1400px;
    min-height: 74px;

    padding: 12px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,.55);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(0,0,0,.45);
    border-radius: 18px;

    box-shadow:
        0 12px 40px rgba(39,50,58,.055);

    z-index: 999;
}

.logo {
    line-height: 1;
}

.logo span {
    display: block;

    color: var(--blue-dark);

    font-size: 26px;
    font-weight: 800;

    letter-spacing: 3px;
}

.logo small {
    display: block;

    margin-top: 5px;

    color: var(--gray-dark);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    position: relative;

    padding: 11px 17px;

    color: var(--blue-dark);

    font-size: 14px;
    font-weight: 700;

    border-radius: 10px;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

nav a:hover {
    color: var(--white);
    background: var(--blue);
}


/* =========================================================
   03. HERO
   ========================================================= */

#hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;
}

/* =========================================================
   VIDEO DE FONDO DEL HERO
========================================================= */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    /* Mejora visual sutil */
    filter:
        contrast(1.10)
        saturate(1.08)
        brightness(0.96);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(15,30,45,.68) 0%,
            rgba(15,30,45,.48) 28%,
            rgba(15,30,45,.20) 50%,
            rgba(15,30,45,0) 72%
        ),
        linear-gradient(
            180deg,
            rgba(15,30,45,.30) 0%,
            rgba(15,30,45,0) 25%,
            rgba(15,30,45,0) 70%,
            rgba(15,30,45,.30) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    margin-left: 90px;

    width: min(640px, calc(100% - 120px));
}

.hero-content h1 {
    margin: 28px 0;

    color: var(--white);

    font-family: 'Libre Baskerville', serif;

    line-height: .92;
    font-weight: 400;

    letter-spacing: -2px;
}

.hero-top {
    display: block;

    font-size: clamp(42px,3.8vw,52px);
    font-weight: 400;

    letter-spacing: 1px;
    line-height: 1.1;

    margin-bottom: 4px;

    text-shadow:
        2px 2px 0 rgba(95,142,170,.35),
        4px 4px 0 rgba(31,97,139,.16);
}

.hero-center {
    display: block;

    font-size: clamp(100px,9vw,136px);
    font-weight: 700;

    letter-spacing: -3px;
    line-height: .88;

    text-shadow:
        3px 3px 0 rgba(95,142,170,.45),
        6px 6px 0 rgba(31,97,139,.20);
}

.hero-bottom {
    display: block;

    font-size: clamp(36px,3.4vw,46px);
    font-weight: 400;
    font-style: italic;

    text-transform: lowercase;

    letter-spacing: 1px;
    line-height: 1.1;

    margin-top: 8px;

    text-shadow:
        2px 2px 0 rgba(95,142,170,.35),
        4px 4px 0 rgba(31,97,139,.16);
}

.hero-content p {
    width: 620px;
    max-width: 100%;

    margin-top: 20px;

    color: rgba(255,255,255,.92);

    font-size: 17px;
    font-weight: 500;

    line-height: 1.7;

    text-shadow:
        1px 2px 4px rgba(0,0,0,.25);
}

.hero-location {
    position: absolute;

    right: 40px;
    bottom: 28px;

    z-index: 3;

    color: rgba(255,255,255,.78);

    font-family: 'Cormorant Garamond', serif;

    font-size: 25px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    text-shadow:
        0 1px 4px rgba(0,0,0,.35);
}


/* =========================================================
   04. BOTONES
   ========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;

    padding: 20px 34px;

    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;

    transition: all .3s ease;
}

.btn-primary {
    color: var(--white);

    background: var(--blue);

    border: 1px solid var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(31,97,139,.20);
}

.btn-secondary {
    color: var(--text);

    background: rgba(255,255,255,.50);

    border: 1px solid rgba(38,51,60,.26);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.65);

    transform: translateY(-3px);
}


/* =========================================================
   05. SECCIONES GENERALES
   ========================================================= */

.page {
    position: relative;

    padding: 120px 90px;
}

.page h2 {
    color: var(--blue);

    font-size: 48px;
    line-height: 1.5;

    margin-bottom: 30px;

    letter-spacing: -1.5px;
}

.section-tag {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 18px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 3px;
    text-transform: uppercase;

    white-space: nowrap;
}

.section-tag span {
    display: block;

    width: 55px;
    height: 1px;

    background: rgba(31,97,139,.45);
}

.section-description {
    max-width: 700px;

    color: var(--gray);

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   06. COTAS / ELEMENTOS DE PLANO
   ========================================================= */

.cota {
    display: flex;
    align-items: center;

    gap: 18px;

    width: min(620px,100%);

    margin: 0 auto 30px;
}

.cota-tick {
    width: 1px;
    height: 14px;

    flex-shrink: 0;

    background: var(--blue);
}

.cota-line {
    flex: 1;

    height: 1px;

    background: var(--blue);

    opacity: .55;
}

.cota-text {
    color: var(--blue);

    font-family: 'Cormorant Garamond', serif;

    font-size: 30px;
    font-weight: 800;

    letter-spacing: 4px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   07. INTRO / QUIÉNES SOMOS
   ========================================================= */

.intro-section {
    position: relative;

    text-align: center;

    overflow: hidden;

    background-image:

        radial-gradient(
            circle at 8% 18%,
            transparent 0,
            transparent 42px,
            rgba(31,97,139,.12) 43px,
            rgba(31,97,139,.12) 44px,
            transparent 45px
        ),

        radial-gradient(
            circle at 91% 42%,
            transparent 0,
            transparent 22px,
            rgba(31,97,139,.14) 23px,
            rgba(31,97,139,.14) 24px,
            transparent 25px
        ),

        radial-gradient(
            circle at 78% 88%,
            transparent 0,
            transparent 32px,
            rgba(31,97,139,.10) 33px,
            rgba(31,97,139,.10) 34px,
            transparent 35px
        ),

        linear-gradient(
            90deg,
            transparent 0%,
            transparent 18%,
            rgba(31,97,139,.11) 18%,
            rgba(31,97,139,.11) 18.1%,
            transparent 18.1%
        ),

        linear-gradient(
            180deg,
            transparent 0%,
            transparent 63%,
            rgba(31,97,139,.11) 63%,
            rgba(31,97,139,.11) 63.1%,
            transparent 63.1%
        ),

        radial-gradient(
            rgba(31,97,139,.22) 1px,
            transparent 1.5px
        );

    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        90px 90px;

    background-position:
        center,
        center,
        center,
        center,
        center,
        48% 8%;

    background-repeat: no-repeat;
}

.intro-section::before {
    content: "";

    position: absolute;

    top: 10px;
    right: 60px;

    width: 130px;
    height: 130px;

    border:
        1px solid rgba(31,97,139,.22);

    border-radius: 50%;

    background:
        linear-gradient(
            rgba(31,97,139,.22),
            rgba(31,97,139,.22)
        )
        center / 100% 1px no-repeat,

        linear-gradient(
            rgba(31,97,139,.22),
            rgba(31,97,139,.22)
        )
        center / 1px 100% no-repeat;

    pointer-events: none;
}

.intro-section::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 30px;

    width: 170px;
    height: 170px;

    background-image:
        radial-gradient(
            rgba(31,97,139,.35) 1px,
            transparent 1.5px
        );

    background-size: 18px 18px;

    -webkit-mask-image:
        radial-gradient(
            circle,
            black 30%,
            transparent 72%
        );

    mask-image:
        radial-gradient(
            circle,
            black 30%,
            transparent 72%
        );

    pointer-events: none;
}

.intro-title-container {
    width: 100%;

    text-align: center;

    margin-bottom: 40px;
}

.intro-title-container h2 {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(34px, 3.2vw, 48px);
}

@media (max-width: 700px) {

    .intro-title-container h2 {
        white-space: normal;
    }

}

.intro-card {
    position: relative;

    width: min(720px,100%);

    margin: 40px auto 0;

    padding: 44px 48px;

    background: rgba(255,255,255,.17);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,.42);

    border-radius: 18px;

    box-shadow: var(--shadow);

    transition: all .35s ease;
}

.intro-card::before,
.intro-card::after {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    border:
        1.5px solid var(--blue);

    opacity: .5;

    pointer-events: none;
}

.intro-card::before {
    top: -10px;
    left: -10px;

    border-right: none;
    border-bottom: none;
}

.intro-card::after {
    bottom: -10px;
    right: -10px;

    border-left: none;
    border-top: none;
}

.intro-card:hover {
    transform: translateY(-6px);

    background: rgba(255,255,255,.30);

    border-color:
        rgba(31,97,139,.22);

    box-shadow: var(--shadow-hover);
}

.intro-card p {
    color: var(--gray);

    font-size: 18px;

    line-height: 1.8;

    text-align: justify;
}


/* =========================================================
   08. ESTADÍSTICAS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 25px;
}

.stats div {
    width: 100%;
    max-width: 190px;

    aspect-ratio: 1 / 1;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 50%;

    box-shadow:
        0 12px 40px rgba(39,50,58,.055);

    transition: all .3s ease;
}

.stats div:hover {
    transform:
        translateY(-7px)
        scale(1.03);

    background:
        rgba(255,255,255,.22);

    box-shadow:
        0 18px 45px rgba(39,50,58,.10);
}

.stats h2 {
    margin-bottom: 8px;

    color: var(--blue);

    font-family: 'Libre Baskerville', serif;

    font-size: 48px;
    font-weight: 400;

    letter-spacing: -1px;
}

.stats span {
    color: var(--gray);

    font-size: 14px;
}

.stats.stats-dark div {
    background:
        rgba(31,97,139,.16);
}

.stats.stats-dark div:hover {
    background:
        rgba(31,97,139,.26);
}

.stats.stats-dark h2 {
    color: var(--blue-dark);
}


/* =========================================================
   09. MISIÓN / VISIÓN
   ========================================================= */

#mission-vision {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    text-align: justify;
}

#mission-vision::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url('../img/Fondo4.png');

    background-size: cover;
    background-position: center;

    filter:
        contrast(1.06)
        saturate(1.12)
        brightness(1.02);

    z-index: 0;
}

.mv-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(15,30,45,.58),
            rgba(15,30,45,.40)
        );
}

.mv-grid {
    position: relative;

    z-index: 2;

    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;

    padding: 100px 90px;
}

.mv-card {
    width: 100%;
    max-width: 300px;

    margin: 0 auto;

    padding: 32px;

    background:
        rgba(255,255,255,.14);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,.35);

    border-radius: 18px;

    transition: all .35s ease;
}

.mv-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255,255,255,.22);
}

.mv-card .section-tag {
    display: block;

    text-align: center;

    color:
        rgba(255,255,255,.85);
}

.mv-card h3 {
    margin: 14px 0 16px;

    color: var(--white);

    font-family: 'Libre Baskerville', serif;

    font-size: 28px;

    text-align: center;
}

.mv-card p {
    color:
        rgba(255,255,255,.88);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   10. TARJETAS GENERALES
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 30px;

    margin-top: 50px;
}

.card {
    position: relative;

    padding: 38px;

    background:
        rgba(255,255,255,.17);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,.42);

    border-radius: 18px;

    box-shadow: var(--shadow);

    transition: all .35s ease;

    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);

    background:
        rgba(255,255,255,.30);

    border-color:
        rgba(31,97,139,.22);

    box-shadow: var(--shadow-hover);
}

.card h3 {
    margin-bottom: 15px;

    color: var(--text);

    font-size: 22px;
}

.card p {
    color: var(--gray);

    line-height: 1.8;
}


/* =========================================================
   11. SUPERVISIÓN
   ========================================================= */

.supervision-page {
    position: relative;

    overflow: hidden;
}

.supervision-header {
    width: min(850px,100%);

    margin: 0 auto 100px;

    text-align: center;
}

.supervision-header h1 {
    margin-bottom: 28px;

    color: var(--blue);

    font-family: 'Libre Baskerville', serif;

    font-size: clamp(52px,6vw,80px);

    font-weight: 400;

    line-height: 1;

    letter-spacing: -2px;
}

.supervision-header p {
    width: min(680px,100%);

    margin: 0 auto;

    color: var(--gray);

    font-size: 17px;

    line-height: 1.8;
}

.supervision-section {
    position: relative;

    width: min(1050px,100%);

    margin: 0 auto 110px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: stretch;

    gap: 45px;

    text-align: justify;
}

.supervision-image {
    position: relative;

    padding: 7px;

    border:
        1px solid rgba(31,97,139,.35);

    background:
        rgba(255,255,255,.20);
}

.supervision-image img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 360px;

    object-fit: cover;

    filter:
        saturate(.88)
        contrast(1.04);
}

.supervision-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 45px;

    background:
        rgba(255,255,255,.17);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,.42);

    border-radius: 18px;

    box-shadow: var(--shadow);

    transition: all .35s ease;
}

.supervision-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255,255,255,.30);

    box-shadow: var(--shadow-hover);
}

.supervision-card h2 {
    margin-bottom: 25px;

    color: var(--text);

    font-family: 'Libre Baskerville', serif;

    font-size: 30px;
    font-weight: 400;

    line-height: 1.3;

    text-align: center;
}

.supervision-card h3 {
    margin-bottom: 12px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.supervision-card p {
    margin-bottom: 30px;

    color: var(--gray);

    font-size: 16px;

    line-height: 1.8;
}

.supervision-card .btn-primary {
    align-self: flex-start;

    padding: 13px 22px;

    font-size: 13px;
}


/* =========================================================
   12. PROYECTOS / TRABAJOS RELEVANTES
   ========================================================= */

.projects-page,
.projects-main-page {
    position: relative;

    overflow: hidden;
}

.projects-header,
.projects-main-header {
    width: min(850px,100%);

    margin: 0 auto 90px;

    text-align: center;
}

.projects-header h1,
.projects-main-header h1 {
    margin-bottom: 28px;

    color: var(--blue);

    font-family: 'Libre Baskerville', serif;

    font-size: clamp(48px,6vw,76px);

    font-weight: 400;

    line-height: 1;

    letter-spacing: -2px;
}

.projects-header p,
.projects-main-header p {
    width: min(680px,100%);

    margin: 0 auto;

    color: var(--gray);

    font-size: 17px;

    line-height: 1.8;
}

.projects-grid {
    width: min(1100px,100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 60px 40px;
}

.project-item {
    position: relative;
}

.project-image {
    position: relative;

    padding: 6px;

    overflow: hidden;

    border:
        1px solid rgba(31,97,139,.30);

    background:
        rgba(255,255,255,.20);
}

.project-image img {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    filter:
        grayscale(100%)
        contrast(1.05);

    transition:
        filter .6s ease,
        transform .6s ease;
}

.project-item:hover .project-image img {
    filter:
        grayscale(0%)
        contrast(1);

    transform: scale(1.025);
}

.project-description {
    position: absolute;

    inset: 6px;

    display: flex;
    align-items: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(15,30,45,0) 25%,
            rgba(15,30,45,.78) 100%
        );

    opacity: 0;

    transition: opacity .4s ease;

    pointer-events: none;
}

.project-description p {
    max-width: 420px;

    margin: 0;

    color: var(--white);

    font-size: 14px;

    line-height: 1.7;

    transform: translateY(15px);

    transition:
        transform .4s ease;
}

.project-item:hover .project-description {
    opacity: 1;
}

.project-item:hover .project-description p {
    transform: translateY(0);
}

.project-info {
    display: flex;

    justify-content: space-between;
    align-items: baseline;

    gap: 20px;

    padding-top: 17px;
}

.project-info h2 {
    margin: 0;

    color: var(--text);

    font-family: 'Manrope', sans-serif;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.4;
}

.project-info span {
    color: var(--gray);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.5px;

    white-space: nowrap;
}

.project-item::before {
    content: "";

    position: absolute;

    top: -10px;
    left: -10px;

    width: 28px;
    height: 28px;

    border-top:
        1px solid rgba(31,97,139,.35);

    border-left:
        1px solid rgba(31,97,139,.35);

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   13. PROYECTOS DE INGENIERÍA
   ========================================================= */

.project-category {
    position: relative;
    width: min(1050px, 100%);
    margin: 0 auto 110px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    align-items: stretch;
    gap: 45px;
}

.project-category > * {
    min-width: 0;
}


.project-category-image {
    position: relative;

    padding: 7px;

    border:
        1px solid rgba(31,97,139,.35);

    background:
        rgba(255,255,255,.20);
}

.project-category-image img {
    display: block;

    width: 100%;
    height: 450px;

    object-fit: cover;

    filter:
        saturate(.88)
        contrast(1.04);

    transition:
        transform .6s ease,
        filter .6s ease;
}


.project-category-image:hover img {
    transform: scale(1.025);

    filter:
        saturate(1)
        contrast(1);
}

.project-category-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 45px;

    background:
        rgba(255,255,255,.17);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,.42);

    border-radius: 18px;

    box-shadow: var(--shadow);

    transition: all .35s ease;
}

.project-category-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255,255,255,.30);

    box-shadow: var(--shadow-hover);
}

.project-category-reverse .project-category-card {
    margin-left: 0;
    margin-right: -55px;
}

.project-category-card::before,
.project-category-card::after {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    border:
        1.5px solid var(--blue);

    opacity: .45;

    pointer-events: none;
}

.project-category-card::before {
    top: -10px;
    left: -10px;

    border-right: none;
    border-bottom: none;
}

.project-category-card::after {
    bottom: -10px;
    right: -10px;

    border-left: none;
    border-top: none;
}

.project-category-card .section-tag {
    display: block;

    margin-bottom: 20px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.project-category-card h2 {
    margin-bottom: 25px;

    color: var(--text);

    font-family: 'Libre Baskerville', serif;

    font-size: 30px;
    font-weight: 400;

    line-height: 1.3;
}

.project-category-card h3 {
    margin-bottom: 12px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.project-category-card p {
    margin-bottom: 30px;

    color: var(--gray);

    font-size: 16px;

    line-height: 1.8;
}

.project-category-card .btn-primary {
    align-self: flex-start;

    padding: 13px 22px;

    font-size: 13px;
}

    /* =========================================================
    14. ESTUDIOS AMBIENTALES
    ========================================================= */

    .environmental-page.specialty-page,
    .waste-page.specialty-page,
    .engineering-page.specialty-page {

        position: relative;
        min-height: 100vh;
        padding: 105px 7vw 110px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .environmental-page.specialty-page > *,
    .waste-page.specialty-page > *,
    .engineering-page.specialty-page > * {
        position: relative;
        z-index: 1;
    }


    /* ---------------------------------------------------------
    HEADER GENERAL DE ESPECIALIDADES
    --------------------------------------------------------- */

    .environmental-page .specialty-header,
    .waste-page .specialty-header,
    .engineering-page .specialty-header {

        width: min(1100px, 100%);
        margin: 0 auto 80px;
        text-align: center;
    }

    .environmental-page .specialty-header .cota,
    .waste-page .specialty-header .cota,
    .engineering-page .specialty-header .cota {

        margin-bottom: 28px;
    }

    .environmental-page .specialty-header h1,
    .waste-page .specialty-header h1,
    .engineering-page .specialty-header h1 {

        margin-bottom: 24px;
        color: var(--blue);

        font-family: 'Libre Baskerville', serif;
        font-size: clamp(42px, 5vw, 68px);
        font-weight: 400;
        line-height: 1;
        letter-spacing: -1.5px;
    }

    .environmental-page .specialty-header > p,
    .waste-page .specialty-header > p,
    .engineering-page .specialty-header > p {

        width: min(720px, 100%);
        margin: 0 auto;

        color: var(--gray-dark);
        font-size: 17px;
        line-height: 1.7;
    }


    /* =========================================================
    15. ESTUDIOS AMBIENTALES
    ========================================================= */

    /* ---------- HERO AMBIENTAL ---------- */

    .environmental-page .specialty-hero-detail {

        position: relative;

        width: min(1120px, 100%);
        min-height: 460px;

        margin: 0 auto 115px;

        display: grid;
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(360px, .85fr);

        align-items: center;
    }

    .environmental-page .specialty-image-frame {

        position: relative;

        width: 100%;
        height: 430px;

        padding: 7px;

        border: 1px solid rgba(31, 97, 139, .28);
        background: rgba(255, 255, 255, .65);
    }

    .environmental-page .specialty-image-frame img {

        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;

        filter:
            saturate(.85)
            contrast(.97);
    }

    .environmental-page .specialty-image-frame::before {

        content: "";

        position: absolute;
        inset: -10px -10px 10px 10px;

        border: 1px solid rgba(31, 97, 139, .17);

        pointer-events: none;
    }

    .environmental-page .specialty-image-frame::after {

        content: "";

        position: absolute;

        top: -28px;
        right: -28px;

        width: 55px;
        height: 55px;

        border-top: 1px solid rgba(31, 97, 139, .25);
        border-right: 1px solid rgba(31, 97, 139, .25);

        pointer-events: none;
    }

    .environmental-page .technical-corner {

        position: absolute;

        width: 26px;
        height: 26px;

        z-index: 3;

        pointer-events: none;
    }

    .environmental-page .corner-top {

        top: -9px;
        right: -9px;

        border-top: 1px solid var(--blue);
        border-right: 1px solid var(--blue);
    }

    .environmental-page .corner-bottom {

        bottom: -9px;
        left: -9px;

        border-bottom: 1px solid var(--blue);
        border-left: 1px solid var(--blue);
    }


    /* ---------- TARJETA AMBIENTAL ---------- */

    .environmental-page .specialty-floating-card {

        position: relative;
        z-index: 5;

        margin-left: -60px;
        padding: 48px;

        background: rgba(255, 255, 255, .97);

        border: 1px solid rgba(31, 97, 139, .08);

        box-shadow:
            0 18px 40px rgba(30, 55, 70, .045);
    }

    .environmental-page .specialty-floating-card .process-label {

        display: block;

        margin-bottom: 18px;

        color: var(--blue);

        font-size: 10px;
        font-weight: 700;

        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .environmental-page .specialty-floating-card h2 {

        max-width: 450px;

        margin-bottom: 20px;

        color: var(--blue-dark);

        font-family: Georgia, "Times New Roman", serif;

        font-size: clamp(31px, 3vw, 43px);
        font-weight: 400;

        line-height: 1.08;
        letter-spacing: -1px;
    }

    .environmental-page .specialty-floating-card > p {

        max-width: 460px;

        margin-bottom: 30px;

        color: var(--gray-dark);

        font-size: 14px;
        line-height: 1.7;
    }

    .environmental-page .specialty-mini-process {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 20px;

        padding-top: 23px;

        border-top:
            1px solid rgba(31, 97, 139, .15);
    }

    .environmental-page .specialty-mini-process div {

        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .environmental-page .specialty-mini-process span {

        color: var(--blue);

        font-size: 9px;
        font-weight: 700;

        letter-spacing: 2px;
    }

    .environmental-page .specialty-mini-process strong {

        color: var(--blue-dark);

        font-size: 13px;
        font-weight: 600;
    }


    /* ---------- PROCESO AMBIENTAL ---------- */

    .environmental-process-detail {

        width: min(1120px, 100%);

        margin: 0 auto 110px;

        padding-top: 65px;

        display: grid;

        grid-template-columns:
            .75fr
            1.25fr;

        gap: 80px;

        border-top:
            1px solid rgba(31, 97, 139, .15);
    }

    .environmental-process-intro {

        padding-top: 4px;
    }

    .environmental-process-intro .process-label {

        display: block;

        margin-bottom: 18px;

        color: var(--blue);

        font-size: 10px;
        font-weight: 700;

        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .environmental-process-intro h2 {

        max-width: 430px;

        color: var(--blue-dark);

        font-family: Georgia, "Times New Roman", serif;

        font-size: clamp(30px, 3vw, 40px);
        font-weight: 400;

        line-height: 1.12;
    }

    .environmental-process-list {

        width: 100%;

        border-top:
            1px solid rgba(31, 97, 139, .12);
    }

    .environmental-process-item {

        display: grid;

        grid-template-columns:
            45px
            minmax(0, 1fr);

        gap: 20px;

        padding: 23px 0;

        border-bottom:
            1px solid rgba(31, 97, 139, .12);
    }

    .environmental-process-number {

        padding-top: 4px;

        color: var(--blue);

        font-size: 9px;
        font-weight: 700;

        letter-spacing: 2px;
    }

    .environmental-process-item h3 {

        margin-bottom: 8px;

        color: var(--blue-dark);

        font-size: 21px;
        font-weight: 600;
    }

    .environmental-process-item p {

        max-width: 550px;

        color: var(--gray-dark);

        font-size: 14px;
        line-height: 1.65;
    }


    /* ---------- ÁREAS AMBIENTALES ---------- */

    .environmental-page .specialty-areas {

        width: min(1120px, 100%);

        margin: 0 auto;

        padding-top: 42px;

        border-top:
            1px solid rgba(31, 97, 139, .16);
    }

    .environmental-page .areas-header {

        display: grid;

        grid-template-columns:
            180px
            minmax(0, 1fr);

        gap: 25px;

        align-items: baseline;

        margin-bottom: 25px;
    }

    .environmental-page .areas-header > span {

        color: var(--blue);

        font-size: 10px;
        font-weight: 700;

        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .environmental-page .areas-header h2 {

        margin: 0;

        color: var(--blue-dark);

        font-size: 27px;
    }

    .environmental-page .areas-list {

        display: flex;
        flex-wrap: wrap;

        gap: 0;

        padding-left: 205px;
    }

    .environmental-page .areas-list span {

        position: relative;

        margin:
            0 24px 12px 0;

        color: var(--gray-dark);

        font-size: 14px;
    }

    .environmental-page .areas-list span:not(:last-child)::after {

        content: "·";

        position: absolute;

        right: -15px;

        color: var(--blue);
    }


    /* =========================================================
    16. PROYECTOS DE INGENIERÍA
    ========================================================= 

    .engineering-page .engineering-section {

        width: min(1350px, 100%);
        max-width: none;
        margin: 0 auto;
    }
    

    /* ---------- GRID 

    .engineering-page .engineering-grid {

        position: relative;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 75px 80px;

        padding-top: 20px;
        
        width: 100%;
    }---------- */


    /* ---------- DISCIPLINA 

    .engineering-discipline {

        position: relative;

        padding:
            32px 0 0 35px;

        border-top:
            1px solid rgba(31, 97, 139, .16);
    }

    .engineering-discipline::before {

        content: "";

        position: absolute;

        left: 0;
        top: 0;
        bottom: 0;

        width: 1px;

        background:
            rgba(31, 97, 139, .22);
    }

    .engineering-discipline .process-number {

        position: absolute;

        left: -9px;
        top: -9px;

        width: 18px;
        height: 18px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--blue);

        background: var(--white);

        font-size: 9px;
        font-weight: 700;

        border:
            1px solid var(--blue);

        border-radius: 50%;
    }

    .engineering-discipline .discipline-line {

        width: 55px;
        height: 1px;

        margin-bottom: 18px;

        background: var(--blue);
    }

    .engineering-discipline h3 {

        margin-bottom: 14px;

        color: var(--blue-dark);

        font-family: 'Libre Baskerville', serif;

        font-size: 25px;
        font-weight: 400;

        line-height: 1.25;
    }

    .engineering-discipline > p {

        max-width: 500px;

        margin-bottom: 23px;

        color: var(--gray-dark);

        font-size: 14px;

        line-height: 1.75;
    }---------- */


    /* ---------- LISTA 

    .engineering-discipline ul {

        list-style: none;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px 25px;
    }

    .engineering-discipline li {

        position: relative;

        padding-left: 14px;

        color: var(--gray-dark);

        font-size: 13px;

        line-height: 1.5;
    }

    .engineering-discipline li::before {

        content: "";

        position: absolute;

        left: 0;
        top: 8px;

        width: 5px;
        height: 5px;

        border:
            1px solid var(--blue);

        border-radius: 50%;
    }---------- */


    /* ---------- DECORACIÓN INGENIERÍA 
    .engineering-page::after {

        content: "";

        position: absolute;

        width: 180px;
        height: 180px;

        right: 5%;
        top: 190px;

        border:
            1px solid rgba(31, 97, 139, .10);

        border-radius: 50%;

        background:
            linear-gradient(
                90deg,
                transparent 49.5%,
                rgba(31, 97, 139, .10) 50%,
                transparent 50.5%
            ),
            linear-gradient(
                0deg,
                transparent 49.5%,
                rgba(31, 97, 139, .10) 50%,
                transparent 50.5%
            );

        pointer-events: none;
    }---------- */
*/


    /* =========================================================
    17. MANEJO DE RESIDUOS
    ========================================================= */

    .waste-page .waste-flow {

        width: min(1120px, 100%);

        margin: 45px auto 0;

        display: grid;

        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 0;

        align-items: start;
    }


    /* ---------- PASO ---------- */

    .waste-page .waste-step {

        position: relative;

        min-width: 0;

        padding: 0 18px;

        text-align: center;
    }

    .waste-page .waste-node {

        position: relative;

        width: 82px;
        height: 82px;

        margin: 0 auto 22px;

        display: flex;
        align-items: center;
        justify-content: center;

        background:
            rgba(255, 255, 255, .18);

        border:
            1px solid rgba(31, 97, 139, .40);

        border-radius: 50%;

        transition:
            transform .3s ease,
            background .3s ease,
            border-color .3s ease,
            box-shadow .3s ease;

        z-index: 2;
    }

    .waste-page .waste-node::before {

        content: "";

        position: absolute;

        inset: 7px;

        border:
            1px solid rgba(31, 97, 139, .16);

        border-radius: 50%;
    }

    .waste-page .waste-node::after {

        content: "";

        position: absolute;

        top: 8px;
        right: 16px;

        width: 5px;
        height: 5px;

        background: var(--blue);

        border-radius: 50%;

        opacity: .55;
    }


    /* ---------- NÚMERO ---------- */

    .waste-page .waste-node-number {

        position: absolute;

        top: -8px;
        right: 2px;

        width: 21px;
        height: 21px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--blue);

        background: var(--white);

        font-size: 8px;
        font-weight: 700;

        border:
            1px solid rgba(31, 97, 139, .30);

        border-radius: 50%;

        z-index: 4;
    }


    /* ---------- ICONO ---------- */

    .waste-page .waste-node-icon {

        position: relative;

        width: 38px;
        height: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--blue-dark);

        font-size: 9px;
        font-weight: 700;

        letter-spacing: 2px;

        border:
            1px solid rgba(31, 97, 139, .25);

        border-radius: 50%;

        z-index: 3;
    }


    /* ---------- CONTENIDO ---------- */

    .waste-page .waste-step-content {

        max-width: 175px;

        margin: 0 auto;

        transition:
            transform .3s ease;
    }

    .waste-page .waste-step-label {

        display: block;

        margin-bottom: 8px;

        color: var(--blue);

        font-size: 8px;
        font-weight: 700;

        letter-spacing: 2px;

        text-transform: uppercase;
    }

    .waste-page .waste-step h3 {

        margin-bottom: 9px;

        color: var(--blue-dark);

        font-family: 'Libre Baskerville', serif;

        font-size: 17px;
        font-weight: 400;

        line-height: 1.25;
    }

    .waste-page .waste-step p {

        color: var(--gray-dark);

        font-size: 12px;

        line-height: 1.6;
    }


    /* =========================================================
    CONECTORES DEL PROCESO
    ========================================================= */

    .waste-page .waste-arrow {

        position: absolute;

        top: 41px;
        left: calc(100% - 10px);

        width: 20px;
        height: 1px;

        display: block;

        z-index: 3;
    }

    .waste-page .waste-arrow span {

        position: relative;

        display: block;

        width: 100%;
        height: 1px;

        background:
            rgba(31, 97, 139, .28);
    }

    .waste-page .waste-arrow span::after {

        content: "";

        position: absolute;

        right: 0;
        top: -3px;

        width: 6px;
        height: 6px;

        border-top:
            1px solid var(--blue);

        border-right:
            1px solid var(--blue);

        transform: rotate(45deg);
    }


    /* ---------- HOVER ---------- */

    .waste-page .waste-step:hover .waste-node {

        transform: translateY(-5px);

        border-color:
            rgba(31, 97, 139, .62);

        background:
            rgba(255, 255, 255, .38);

        box-shadow:
            0 14px 35px rgba(31, 61, 80, .08);
    }

    .waste-page .waste-step:hover .waste-step-content {

        transform: translateY(-2px);
    }


    /* =========================================================
    ÁREAS DE RESIDUOS
    ========================================================= */

    .waste-page .specialty-areas {

        width: min(1120px, 100%);

        margin: 90px auto 0;

        padding-top: 38px;

        border-top:
            1px solid rgba(31, 97, 139, .15);
    }

    .waste-page .areas-header {

        display: grid;

        grid-template-columns:
            150px
            minmax(0, 1fr);

        align-items: baseline;

        gap: 25px;

        margin-bottom: 25px;
    }

    .waste-page .areas-header > span {

        color: var(--blue);

        font-size: 10px;
        font-weight: 700;

        letter-spacing: 3px;

        text-transform: uppercase;
      
    }

    .waste-page .areas-header h2 {

        margin: 0;

        color: var(--blue-dark);

        font-size: 28px;

        letter-spacing: -.5px;
    }

    .waste-page .areas-list {

        display: flex;
        flex-wrap: wrap;

        gap: 9px;

        padding-left: 150px;
    }

    .waste-page .areas-list span {

        padding: 8px 13px;

        color: var(--gray-dark);

        font-size: 13px;

        border:
            1px solid rgba(31, 97, 139, .17);

        border-radius: 2px;

        background:
            rgba(31, 97, 139, .025);

        transition:
            border-color .2s ease,
            background .2s ease,
            transform .2s ease;
    }

    .waste-page .areas-list span:hover {

        border-color:
            rgba(31, 97, 139, .35);

        background:
            rgba(255, 255, 255, .28);

        transform:
            translateY(-2px);
    }


/* =========================================================
   18. DECORACIÓN GENERAL DE ESPECIALIDADES
   ========================================================= */

.environmental-page::after {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -150px;
    top: 310px;

    border:
        1px solid rgba(31, 97, 139, .08);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   19. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .environmental-page .specialty-header h1,
    .waste-page .specialty-header h1,
    .engineering-page .specialty-header h1 {

        font-size:
            clamp(40px, 6vw, 58px);
    }

    .waste-page .waste-flow {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 65px 20px;
    }

    .waste-page .waste-arrow {

        display: none;
    }

    .engineering-page .engineering-grid {

        gap: 60px 50px;
    }
}


/* =========================================================
   20. RESPONSIVE — 900
   ========================================================= */

@media (max-width: 900px) {

    .environmental-page .specialty-hero-detail {

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .environmental-page .specialty-floating-card {

        margin-left: 0;
    }

    .environmental-process-detail {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .engineering-page .engineering-grid {

        grid-template-columns: 1fr;

        gap: 55px;
    }

    .waste-page .waste-flow {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 55px 20px;
    }
}


/* =========================================================
   21. RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .environmental-page.specialty-page,
    .waste-page.specialty-page,
    .engineering-page.specialty-page {

        padding:
            100px 6vw 60px;
    }

    .environmental-page .specialty-header,
    .waste-page .specialty-header,
    .engineering-page .specialty-header {

        margin-bottom: 50px;
    }

    .environmental-page .specialty-header h1,
    .waste-page .specialty-header h1,
    .engineering-page .specialty-header h1 {

        font-size:
            clamp(34px, 10vw, 48px);

        line-height: 1.05;

        margin-bottom: 20px;
    }

    .environmental-page .specialty-header > p,
    .waste-page .specialty-header > p,
    .engineering-page .specialty-header > p {

        font-size: 15px;
    }


    /* ---------- AMBIENTALES ---------- */

    .environmental-page .specialty-hero-detail {

        margin-bottom: 80px;

        min-height: 0;
    }

    .environmental-page .specialty-image-frame {

        height: 320px;
    }

    .environmental-page .specialty-floating-card {

        padding: 30px;
    }

    .environmental-page .specialty-mini-process {

        grid-template-columns: 1fr;
    }

    .environmental-process-detail {

        margin-bottom: 70px;

        padding-top: 40px;
    }

    .environmental-process-item {

        grid-template-columns:
            35px
            minmax(0, 1fr);

        gap: 12px;
    }

    .environmental-page .areas-header {

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .environmental-page .areas-list {

        padding-left: 0;
    }


    /* ---------- INGENIERÍA ---------- */

    .engineering-page .engineering-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .engineering-discipline {

        padding:
            28px 0 0 28px;
    }

    .engineering-discipline ul {

        grid-template-columns: 1fr;
    }

    .engineering-discipline h3 {

        font-size: 23px;
    }


    /* ---------- RESIDUOS ---------- */

    .waste-page .waste-flow {

        grid-template-columns: 1fr;

        gap: 42px;

        margin-top: 35px;
    }

    .waste-page .waste-step {

        padding: 0;
    }

    .waste-page .waste-node {

        width: 78px;
        height: 78px;

        margin-bottom: 20px;
    }

    .waste-page .waste-step-content {

        max-width: 300px;
    }

    .waste-page .waste-arrow {

        display: none;
    }

    .waste-page .specialty-areas {

        margin-top: 65px;
    }

    .waste-page .areas-header {

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .waste-page .areas-list {

        padding-left: 0;
    }
}


/* =========================================================
   22. RESPONSIVE — AMBIENTALES / RESIDUOS PEQUEÑO
   ========================================================= */

@media (max-width: 650px) {

    .environmental-page .specialty-areas,
    .waste-page .specialty-areas {

        margin-top: 55px;
    }
}

/* =========================================================
   18. CONTACTO
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;

    margin-top: 45px;
}

.contact-grid div {
    padding: 35px;

    background:
        rgba(255,255,255,.17);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border:
        1px solid rgba(255,255,255,.42);

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(39,50,58,.05);

    transition: .3s ease;
}

.contact-grid div:hover {
    transform: translateY(-5px);

    background:
        rgba(255,255,255,.30);
}

.contact-grid h3 {
    margin-bottom: 10px;

    color: var(--blue);

    font-size: 20px;
}

.contact-grid p {
    color: var(--gray);
}


/* =========================================================
   19. WHATSAPP
   ========================================================= */

.wa {
    position: fixed;

    right: 30px;
    bottom: 30px;

    z-index: 900;

    padding: 15px 22px;

    color: var(--white);

    background: var(--blue);

    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 12px 30px rgba(31,97,139,.20);

    transition: .3s ease;
}

.wa:hover {
    background: var(--blue-dark);

    transform: translateY(-4px);
}


/* =========================================================
   20. FOOTER
   ========================================================= */

footer {
    padding: 50px 50px 20px;

    color: var(--white);

    background:
        var(--blue-dark);
}

.footer-content {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;
}

.footer-content h3,
.footer-content h4 {
    margin-bottom: 15px;
}

.footer-content h4 {
    font-size: 16px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.footer-content p {
    max-width: 450px;

    color:
        rgba(255,255,255,.75);

    line-height: 1.8;
}

footer ul {
    list-style: none;

    margin-top: 10px;
}

footer li {
    margin: 10px 0;

    color:
        rgba(255,255,255,.75);

    font-size: 14px;
}

.copyright {
    margin-top: 60px;

    padding-top: 25px;

    color:
        rgba(255,255,255,.60);

    font-size: 13px;

    text-align: center;

    border-top:
        1px solid rgba(255,255,255,.20);
}





/* =========================================================
   21. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    #navbar {
        width: calc(100% - 40px);
    }

    .hero-content {
        margin-left: 50px;
    }

    .page {
        padding: 90px 50px;
    }

    .stats {
        grid-template-columns:
            repeat(2,1fr);
    }

    .cards {
        grid-template-columns:
            repeat(2,1fr);
    }

    .waste-page .waste-flow {
        grid-template-columns:
            repeat(3,minmax(0,1fr));

        gap: 60px 25px;
    }

    .waste-page .waste-arrow {
        display: none;
    }

    .engineering-page .engineering-grid {
        gap: 55px 50px;
    }

    .environmental-page .specialty-header h1,
    .waste-page .specialty-header h1,
    .engineering-page .specialty-header h1 {
        font-size:
            clamp(40px,6vw,58px);
    }
}


/* =========================================================
   22. RESPONSIVE — 900
   ========================================================= */

@media (max-width: 900px) {

    .mv-grid {
        grid-template-columns: 1fr;

        padding:
            70px 30px;
    }

    .supervision-section {
        grid-template-columns: 1fr;
    }

    .project-category {
        grid-template-columns: 1fr;
    }

    .environmental-page .specialty-hero-detail {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .environmental-page .specialty-floating-card {
        margin-left: 0;
    }

    .environmental-process-detail {
        grid-template-columns: 1fr;

        gap: 50px;
    }
}


/* =========================================================
   23. RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    /* HERO */

    #hero {
        min-height: 900px;

        align-items: flex-end;

        padding-bottom: 80px;
    }

    .hero-content {
        width: auto;

        margin:
            0 25px;
    }

    .hero-center {
        font-size:
            clamp(72px,20vw,110px);
    }

    .hero-content p {
        width: 100%;

        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-location {
        right: 20px;
        bottom: 20px;

        font-size: 18px;
    }


    /* PÁGINAS */

    .page {
        padding:
            75px 25px;
    }

    .page h2 {
        font-size: 38px;
    }


    /* ESTADÍSTICAS */

    .stats {
        grid-template-columns: 1fr;
    }


    /* CARDS */

    .cards {
        grid-template-columns: 1fr;
    }


    /* INTRO */

    .intro-title-container h2 {
        font-size: 30px;

        white-space: normal;

        line-height: 1.2;
    }

    .intro-card {
        padding:
            30px 25px;
    }

    .intro-card p {
        font-size: 16px;
    }

    .cota {
        gap: 10px;
    }

    .cota-text {
        font-size: 20px;

        letter-spacing: 2px;
    }


    /* MISIÓN / VISIÓN */

    .mv-grid {
        padding:
            70px 25px;
    }


    /* SUPERVISIÓN */

    .supervision-header {
        margin-bottom: 60px;
    }

    .supervision-header h1 {
        font-size: 48px;
    }

    .supervision-section {
        gap: 25px;

        margin-bottom: 80px;
    }

    .supervision-image img {
        min-height: 260px;

        height: 260px;
    }

    .supervision-card {
        padding: 30px;
    }

    .supervision-card h2 {
        font-size: 25px;
    }


    /* PROYECTOS */

    .projects-header {
        margin-bottom: 55px;
    }

    .projects-header h1,
    .projects-main-header h1 {
        font-size: 46px;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .project-info {
        flex-direction: column;

        gap: 5px;
    }

    .project-category {
        gap: 25px;

        margin-bottom: 80px;
    }

    .project-category-image img {
        min-height: 260px;

        height: 260px;
    }

    .project-category-card {
        padding: 30px;
    }

    .project-category-card h2 {
        font-size: 25px;
    }


    /* AMBIENTALES */

    .environmental-page.specialty-page,
    .waste-page.specialty-page {
        padding:
            100px 6vw 60px;
    }

    .environmental-page .specialty-header,
    .waste-page .specialty-header,
    .engineering-page .specialty-header {
        margin-bottom: 50px;
    }

    .environmental-page .specialty-header h1,
    .waste-page .specialty-header h1,
    .engineering-page .specialty-header h1 {
        font-size:
            clamp(34px,10vw,48px);

        line-height: 1.05;

        margin-bottom: 20px;
    }

    .environmental-page .specialty-header > p,
    .waste-page .specialty-header > p,
    .engineering-page .specialty-header > p {
        font-size: 15px;
    }

    .environmental-page .specialty-hero-detail {
        margin-bottom: 80px;

        min-height: 0;
    }

    .environmental-page .specialty-image-frame {
        height: 320px;
    }

    .environmental-page .specialty-floating-card {
        padding: 30px;
    }

    .environmental-page .specialty-mini-process {
        grid-template-columns: 1fr;
    }

    .environmental-process-detail {
        margin-bottom: 70px;

        padding-top: 40px;
    }

    .environmental-process-item {
        grid-template-columns:
            35px
            minmax(0,1fr);

        gap: 12px;
    }

    .environmental-page .areas-header {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .environmental-page .areas-list {
        padding-left: 0;
    }


    /* INGENIERÍA */

    .engineering-page .engineering-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .engineering-discipline ul {
        grid-template-columns: 1fr;
    }


    /* RESIDUOS */

    .waste-page .waste-flow {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .waste-page .waste-step-content {
        max-width: 300px;
    }

    .waste-page .areas-header {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .waste-page .areas-list {
        padding-left: 0;
    }


    /* CONTACTO */

    .contact-grid {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    footer {
        padding:
            60px 25px 25px;
    }


    /* WHATSAPP */

    .wa {
        right: 20px;
        bottom: 20px;
    }
}


    /* =========================================================
    24. RESPONSIVE — ESPECIALIDADES
    ========================================================= */

    /* ---------------------------------------------------------
    TABLET / PANTALLAS MEDIANAS
    --------------------------------------------------------- */

    @media (max-width: 1100px) {

        /* =========================
        ESTUDIOS AMBIENTALES
        ========================= */

        .environmental-page.specialty-page {
            padding-left: 5vw;
            padding-right: 5vw;
        }

        .environmental-page .specialty-hero-detail {
            grid-template-columns:
                minmax(0, 1fr)
                minmax(300px, .8fr);
            gap: 20px;
        }

        .environmental-page .specialty-floating-card {
            margin-left: -35px;
            padding: 38px;
        }

        .environmental-process-detail {
            gap: 50px;
        }

        .environmental-page .areas-header {
            grid-template-columns:
                150px
                minmax(0, 1fr);
        }

        .environmental-page .areas-list {
            padding-left: 175px;
        }


        /* =========================
        INGENIERÍA
        ========================= */

        .engineering-page .engineering-section {
            width: min(100%, 1300px);
        }

        .engineering-page .engineering-grid {
            gap: 55px 55px;
        }

        .engineering-discipline {
            padding-left: 30px;
        }


        /* =========================
        RESIDUOS
        ========================= */

        .waste-page .waste-flow {
            grid-template-columns:
                repeat(3, minmax(0, 1fr));
            gap: 55px 30px;
        }

        .waste-page .waste-arrow {
            display: none;
        }

        .waste-page .waste-step-content {
            max-width: 220px;
        }

        .waste-page .specialty-areas {
            margin-top: 70px;
        }

    }


    /* ---------------------------------------------------------
    TABLET PEQUEÑA
    --------------------------------------------------------- */

    @media (max-width: 900px) {

        /* =========================
        ESTUDIOS AMBIENTALES
        ========================= */

        .environmental-page .specialty-hero-detail {
            grid-template-columns: 1fr;
            min-height: 0;
            gap: 30px;
            margin-bottom: 90px;
        }

        .environmental-page .specialty-image-frame {
            height: 390px;
        }

        .environmental-page .specialty-floating-card {
            width: min(720px, 100%);
            margin: -55px auto 0;
            padding: 40px;
        }

        .environmental-process-detail {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .environmental-process-intro h2 {
            max-width: 600px;
        }

        .environmental-page .specialty-areas {
            padding-top: 35px;
        }

        .environmental-page .areas-header {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .environmental-page .areas-list {
            padding-left: 0;
        }


        /* =========================
        INGENIERÍA
        ========================= */

        .engineering-page .engineering-section {
            width: min(100%, 760px);
        }

        .engineering-page .engineering-grid {
            grid-template-columns: 1fr;
            gap: 60px;
        }

        .engineering-discipline {
            max-width: 700px;
        }


        /* =========================
        RESIDUOS
        ========================= */

        .waste-page .waste-flow {
            grid-template-columns:
                repeat(2, minmax(0, 1fr));
            gap: 55px 30px;
        }

        .waste-page .waste-step-content {
            max-width: 250px;
        }

        .waste-page .specialty-areas {
            width: min(100%, 700px);
        }

        .waste-page .areas-header {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .waste-page .areas-list {
            padding-left: 0;
        }

    }


    /* ---------------------------------------------------------
    MÓVIL
    --------------------------------------------------------- */

    @media (max-width: 700px) {

        /* =========================
        BASE ESPECIALIDADES
        ========================= */

        .environmental-page.specialty-page,
        .waste-page.specialty-page,
        .engineering-page.specialty-page {
            padding:
                100px 25px 70px;
        }

        .environmental-page .specialty-header,
        .waste-page .specialty-header,
        .engineering-page .specialty-header {
            margin-bottom: 55px;
        }

        .environmental-page .specialty-header h1,
        .waste-page .specialty-header h1,
        .engineering-page .specialty-header h1 {
            font-size: clamp(34px, 10vw, 48px);
            line-height: 1.05;
            letter-spacing: -1px;
        }

        .environmental-page .specialty-header > p,
        .waste-page .specialty-header > p,
        .engineering-page .specialty-header > p {
            font-size: 15px;
            line-height: 1.7;
        }


        /* =========================
        COTAS
        ========================= */

        .environmental-page .specialty-header .cota,
        .waste-page .specialty-header .cota,
        .engineering-page .specialty-header .cota {
            gap: 10px;
            margin-bottom: 25px;
        }

        .environmental-page .specialty-header .cota-text,
        .waste-page .specialty-header .cota-text,
        .engineering-page .specialty-header .cota-text {
            font-size: 19px;
            letter-spacing: 2px;
        }


        /* =========================
        ESTUDIOS AMBIENTALES
        ========================= */

        .environmental-page .specialty-hero-detail {
            display: block;
            margin-bottom: 75px;
        }

        .environmental-page .specialty-image-frame {
            height: 300px;
            padding: 5px;
        }

        .environmental-page .specialty-image-frame::before {
            inset:
                -7px
                -7px
                7px
                7px;
        }

        .environmental-page .specialty-image-frame::after {
            top: -20px;
            right: -20px;
            width: 40px;
            height: 40px;
        }

        .environmental-page .specialty-floating-card {
            width: calc(100% - 20px);
            margin:
                -35px auto 0;
            padding: 28px 25px;
        }

        .environmental-page .specialty-floating-card h2 {
            font-size: 30px;
            line-height: 1.12;
        }

        .environmental-page .specialty-floating-card > p {
            font-size: 14px;
        }

        .environmental-page .specialty-mini-process {
            grid-template-columns: 1fr;
            gap: 15px;
            padding-top: 20px;
        }

        .environmental-process-detail {
            margin-bottom: 70px;
            padding-top: 35px;
            gap: 35px;
        }

        .environmental-process-intro h2 {
            font-size: 30px;
        }

        .environmental-process-item {
            grid-template-columns:
                32px
                minmax(0, 1fr);
            gap: 12px;
            padding: 20px 0;
        }

        .environmental-process-item h3 {
            font-size: 18px;
        }

        .environmental-process-item p {
            font-size: 13px;
            line-height: 1.65;
        }

        .environmental-page .specialty-areas {
            padding-top: 30px;
        }

        .environmental-page .areas-header {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .environmental-page .areas-header h2 {
            font-size: 24px;
        }

        .environmental-page .areas-list {
            padding-left: 0;
        }

        .environmental-page .areas-list span {
            font-size: 13px;
            margin-right: 18px;
        }


        /* =========================
        INGENIERÍA
        ========================= */

        .engineering-page .engineering-section {
            width: 100%;
        }

        .engineering-page .engineering-grid {
            grid-template-columns: 1fr;
            gap: 50px;
        }

        .engineering-discipline {
            padding-left: 25px;
        }

        .engineering-discipline .process-number {
            left: -9px;
        }

        .engineering-discipline .discipline-line {
            width: 55px;
            margin-bottom: 16px;
        }

        .engineering-discipline h3 {
            margin-bottom: 10px;
            font-size: 24px;
            line-height: 1.25;
        }

        .engineering-discipline > p {
            margin-bottom: 18px;
            font-size: 14px;
            line-height: 1.7;
        }

        .engineering-discipline ul {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .engineering-discipline li {
            font-size: 13px;
        }


        /* =========================
        RESIDUOS
        ========================= */

        .waste-page .waste-flow {
            grid-template-columns: 1fr;
            gap: 45px;
            margin-top: 50px;
        }

        .waste-page .waste-step {
            min-height: auto;
        }

        .waste-page .waste-node {
            width: 82px;
            height: 82px;
            margin-bottom: 20px;
        }

        .waste-page .waste-node-icon {
            width: 38px;
            height: 38px;
        }

        .waste-page .waste-node-number {
            width: 20px;
            height: 20px;
        }

        .waste-page .waste-step-content {
            max-width: 300px;
        }

        .waste-page .waste-step h3 {
            font-size: 18px;
        }

        .waste-page .waste-step p {
            font-size: 13px;
            line-height: 1.6;
        }

        .waste-page .waste-arrow {
            display: none;
        }

        .waste-page .specialty-areas {
            margin-top: 60px;
            padding-top: 30px;
        }

        .waste-page .areas-header {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .waste-page .areas-header h2 {
            font-size: 24px;
        }

        .waste-page .areas-list {
            padding-left: 0;
            gap: 8px;
        }

        .waste-page .areas-list span {
            padding: 7px 11px;
            font-size: 12px;
        }

    }


    /* ---------------------------------------------------------
    MÓVIL PEQUEÑO
    --------------------------------------------------------- */

    @media (max-width: 450px) {

        .environmental-page.specialty-page,
        .waste-page.specialty-page,
        .engineering-page.specialty-page {
            padding-left: 20px;
            padding-right: 20px;
        }

        .environmental-page .specialty-header h1,
        .waste-page .specialty-header h1,
        .engineering-page .specialty-header h1 {
            font-size: 34px;
        }

        .environmental-page .specialty-image-frame {
            height: 260px;
        }

        .environmental-page .specialty-floating-card {
            width: calc(100% - 10px);
            padding: 25px 20px;
        }

        .environmental-page .specialty-floating-card h2 {
            font-size: 27px;
        }

        .environmental-process-item {
            grid-template-columns: 28px 1fr;
            gap: 10px;
        }

        .engineering-discipline {
            padding-left: 22px;
        }

        .engineering-discipline h3 {
            font-size: 22px;
        }

        .waste-page .waste-flow {
            gap: 40px;
        }

    }

        /* =========================================================
    25. COMPOSICIÓN FINAL — ESPECIALIDADES
    Ingeniería / Ambientales / Residuos
    ========================================================= */


    /* =========================================================
    BASE
    ========================================================= */

    .environmental-page.specialty-page,
    .engineering-page.specialty-page,
    .waste-page.specialty-page {
        width: 100%;
        min-height: 100vh;
        padding: 125px 6vw 110px;
        overflow: hidden;
    }

    .environmental-page.specialty-page > *,
    .engineering-page.specialty-page > *,
    .waste-page.specialty-page > * {
        position: relative;
        z-index: 2;
    }


    /* =========================================================
    ENCABEZADOS
    ========================================================= */

    .environmental-page .specialty-header,
    .engineering-page .specialty-header,
    .waste-page .specialty-header {
        width: min(900px, 100%);
        margin: 0 auto 85px;
        text-align: center;
    }

    .environmental-page .specialty-header .cota,
    .engineering-page .specialty-header .cota,
    .waste-page .specialty-header .cota {
        width: min(650px, 100%);
        margin: 0 auto 30px;
    }

    .environmental-page .specialty-header h1,
    .engineering-page .specialty-header h1,
    .waste-page .specialty-header h1 {
        margin: 0 auto 22px;
        color: var(--blue);
        font-family: 'Libre Baskerville', serif;
        font-size: clamp(48px, 5vw, 70px);
        font-weight: 400;
        line-height: 1.05;
        letter-spacing: -1.8px;
    }

    .environmental-page .specialty-header > p,
    .engineering-page .specialty-header > p,
    .waste-page .specialty-header > p {
        width: min(680px, 100%);
        margin: 0 auto;
        color: var(--gray-dark);
        font-size: 16px;
        line-height: 1.75;
    }


    /* =========================================================
    01. ESTUDIOS AMBIENTALES
    ========================================================= */

    .environmental-page .specialty-hero-detail {
        width: min(1150px, 100%);
        margin: 0 auto 115px;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
        align-items: center;
        gap: 0;
    }

    .environmental-page .specialty-image-frame {
        position: relative;
        width: 100%;
        height: 450px;
        padding: 7px;
        background: rgba(255,255,255,.65);
        border: 1px solid rgba(31,97,139,.28);
    }

    .environmental-page .specialty-image-frame img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .environmental-page .specialty-floating-card {
        position: relative;
        z-index: 5;
        width: 100%;
        margin-left: -55px;
        padding: 48px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(31,97,139,.10);
        box-shadow: 0 22px 55px rgba(30,55,70,.07);
    }

    .environmental-page .specialty-floating-card h2 {
        max-width: 470px;
        margin-bottom: 20px;
        color: var(--blue-dark);
        font-family: 'Libre Baskerville', serif;
        font-size: clamp(32px, 3vw, 43px);
        font-weight: 400;
        line-height: 1.12;
    }

    .environmental-page .specialty-floating-card > p {
        max-width: 470px;
        margin-bottom: 30px;
        color: var(--gray-dark);
        font-size: 14px;
        line-height: 1.75;
    }

    .environmental-page .specialty-mini-process {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 20px;
        padding-top: 23px;
        border-top: 1px solid rgba(31,97,139,.15);
    }


    /* =========================================================
    PROCESO AMBIENTAL
    ========================================================= */

    .environmental-process-detail {
        width: min(1050px, 100%);
        margin: 0 auto 105px;
        padding-top: 60px;
        display: grid;
        grid-template-columns: 330px minmax(0,1fr);
        gap: 80px;
        border-top: 1px solid rgba(31,97,139,.15);
    }

    .environmental-process-intro h2 {
        max-width: 330px;
        color: var(--blue-dark);
        font-family: 'Libre Baskerville', serif;
        font-size: 36px;
        font-weight: 400;
        line-height: 1.15;
    }

    .environmental-process-list {
        width: 100%;
    }

    .environmental-process-item {
        display: grid;
        grid-template-columns: 45px minmax(0,1fr);
        gap: 20px;
        padding: 23px 0;
        border-bottom: 1px solid rgba(31,97,139,.12);
    }

    .environmental-process-item h3 {
        margin-bottom: 7px;
        color: var(--blue-dark);
        font-size: 20px;
    }

    .environmental-process-item p {
        max-width: 600px;
        color: var(--gray-dark);
        font-size: 14px;
        line-height: 1.7;
    }


    /* =========================================================
    02. INGENIERÍA
    =========================================================

    .engineering-page .engineering-section {
        width: min(1100px, 100%);
        margin: 0 auto;
    }

    .engineering-page .engineering-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 65px 70px;
    }

    .engineering-discipline {
        position: relative;
        padding: 28px 0 0 35px;
        border-top: 1px solid rgba(31,97,139,.20);
    }

    .engineering-discipline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 100%;
        background: rgba(31,97,139,.25);
    }

    .engineering-discipline .process-number {
        position: absolute;
        top: -10px;
        left: -9px;
        width: 19px;
        height: 19px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--blue);
        background: var(--white);
        border: 1px solid var(--blue);
        border-radius: 50%;
        font-size: 8px;
        z-index: 2;
    }

    .engineering-discipline .discipline-line {
        width: 55px;
        height: 1px;
        margin-bottom: 18px;
        background: var(--blue);
    }

    .engineering-discipline h3 {
        margin-bottom: 12px;
        color: var(--blue-dark);
        font-family: 'Libre Baskerville', serif;
        font-size: 25px;
        font-weight: 400;
        line-height: 1.25;
    }

    .engineering-discipline > p {
        max-width: 500px;
        margin-bottom: 20px;
        color: var(--gray-dark);
        font-size: 14px;
        line-height: 1.7;
    }

    .engineering-discipline ul {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px 30px;
        list-style: none;
    }

    .engineering-discipline li {
        position: relative;
        padding-left: 13px;
        color: var(--gray-dark);
        font-size: 13px;
        line-height: 1.5;
    }

    .engineering-discipline li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        width: 5px;
        height: 5px;
        border: 1px solid var(--blue);
        border-radius: 50%;
    } */


    /* =========================================================
    BLOQUE FINAL DE INGENIERÍA
    ========================================================= */

    .engineering-page .engineering-section::after {
        content: "";
        display: block;
        clear: both;
    }

    .engineering-page .engineering-section > p {
        width: 100%;
        max-width: 700px;
        margin: 80px auto 0;
        padding-top: 25px;
        border-top: 1px solid rgba(31,97,139,.15);
        color: var(--gray-dark);
        font-size: 14px;
        line-height: 1.7;
    }


    /* =========================================================
    03. MANEJO DE RESIDUOS
    ========================================================= */

    .waste-page .waste-flow {
        width: min(1150px,100%);
        margin: 0 auto 110px;
        display: grid;
        grid-template-columns: repeat(6,minmax(0,1fr));
        gap: 20px;
        align-items: start;
    }

    .waste-page .waste-step {
        position: relative;
        min-width: 0;
        text-align: center;
    }

    .waste-page .waste-node {
        width: 92px;
        height: 92px;
        margin: 0 auto 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(31,97,139,.40);
        border-radius: 50%;
    }

    .waste-page .waste-step-content {
        width: 100%;
        max-width: 165px;
        margin: 0 auto;
    }

    .waste-page .waste-step-label {
        display: block;
        margin-bottom: 8px;
        color: var(--blue);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .waste-page .waste-step h3 {
        margin-bottom: 9px;
        color: var(--blue-dark);
        font-family: 'Libre Baskerville', serif;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.25;
    }

    .waste-page .waste-step p {
        color: var(--gray-dark);
        font-size: 11px;
        line-height: 1.55;
    }

    .waste-page .waste-arrow {
        display: none;
    }


    /* =========================================================
    ÁREAS DE ESPECIALIDAD
    LAS TRES PÁGINAS
    ========================================================= */

    .environmental-page .specialty-areas,
    .engineering-page .specialty-areas,
    .waste-page .specialty-areas {
        width: min(1100px,100%);
        margin: 0 auto;
        padding: 45px 0 0;
        border-top: 1px solid rgba(31,97,139,.18);
    }

    .environmental-page .areas-header,
    .engineering-page .areas-header,
    .waste-page .areas-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 30px;
        margin-bottom: 30px;
    }

    .environmental-page .areas-header > span,
    .engineering-page .areas-header > span,
    .waste-page .areas-header > span {
        flex-shrink: 0;
        color: var(--blue);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .environmental-page .areas-header h2,
    .engineering-page .areas-header h2,
    .waste-page .areas-header h2 {
        flex: 1;
        margin: 0;
        color: var(--blue-dark);
        font-family: 'Libre Baskerville', serif;
        font-size: 30px;
        font-weight: 400;
        line-height: 1.2;
    }

    .environmental-page .areas-list,
    .engineering-page .areas-list,
    .waste-page .areas-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
    }

    .environmental-page .areas-list span,
    .engineering-page .areas-list span,
    .waste-page .areas-list span {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 9px 15px;
        color: var(--gray-dark);
        font-size: 13px;
        line-height: 1.3;
        border: 1px solid rgba(31,97,139,.18);
        background: rgba(255,255,255,.22);
        transition:
            background .25s ease,
            border-color .25s ease,
            transform .25s ease;
    }

    .environmental-page .areas-list span:hover,
    .engineering-page .areas-list span:hover,
    .waste-page .areas-list span:hover {
        background: rgba(255,255,255,.50);
        border-color: rgba(31,97,139,.35);
        transform: translateY(-2px);
    }


    /* =========================================================
    RESIDUOS — ÁREAS
    ========================================================= */

    .waste-page .specialty-areas {
        margin-top: 0;
    }

    .waste-page .areas-header {
        display: flex;
    }

    .waste-page .areas-list span::after {
        display: none !important;
    }


    /* =========================================================
    RESPONSIVE
    ========================================================= */

    @media (max-width: 1000px) {

        .engineering-page .engineering-grid {
            gap: 50px 40px;
        }

        .waste-page .waste-flow {
            grid-template-columns: repeat(3,minmax(0,1fr));
            gap: 55px 25px;
        }

        .environmental-process-detail {
            grid-template-columns: 280px minmax(0,1fr);
            gap: 50px;
        }

    }


    @media (max-width: 800px) {

        .environmental-page.specialty-page,
        .engineering-page.specialty-page,
        .waste-page.specialty-page {
            padding:
                105px 30px 80px;
        }

        .environmental-page .specialty-header,
        .engineering-page .specialty-header,
        .waste-page .specialty-header {
            margin-bottom: 65px;
        }


        /* AMBIENTALES */

        .environmental-page .specialty-hero-detail {
            grid-template-columns: 1fr;
            gap: 25px;
        }

        .environmental-page .specialty-image-frame {
            height: 360px;
        }

        .environmental-page .specialty-floating-card {
            margin: -45px 20px 0;
            width: calc(100% - 40px);
        }

        .environmental-process-detail {
            grid-template-columns: 1fr;
            gap: 35px;
        }


        /* INGENIERÍA */

        .engineering-page .engineering-grid {
            grid-template-columns: 1fr;
            gap: 45px;
        }


        /* RESIDUOS */

        .waste-page .waste-flow {
            grid-template-columns: repeat(2,minmax(0,1fr));
            gap: 50px 30px;
        }


        /* ÁREAS */


        .environmental-page .areas-header > span,
        .engineering-page .areas-header > span,
        .waste-page .areas-header > span {
            display: block;
            margin-bottom: 10px;
        }

    }


    @media (max-width: 600px) {

        .environmental-page.specialty-page,
        .engineering-page.specialty-page,
        .waste-page.specialty-page {
            padding:
                100px 22px 65px;
        }

        .environmental-page .specialty-header h1,
        .engineering-page .specialty-header h1,
        .waste-page .specialty-header h1 {
            font-size: 38px;
            letter-spacing: -1px;
        }

        .environmental-page .specialty-header > p,
        .engineering-page .specialty-header > p,
        .waste-page .specialty-header > p {
            font-size: 14px;
        }


        /* AMBIENTALES */

        .environmental-page .specialty-image-frame {
            height: 270px;
        }

        .environmental-page .specialty-floating-card {
            margin: -30px 8px 0;
            width: calc(100% - 16px);
            padding: 28px 23px;
        }

        .environmental-page .specialty-floating-card h2 {
            font-size: 28px;
        }

        .environmental-page .specialty-mini-process {
            grid-template-columns: 1fr;
        }

        .environmental-process-intro h2 {
            font-size: 29px;
        }


        /* INGENIERÍA */

        .engineering-discipline {
            padding-left: 27px;
        }

        .engineering-discipline h3 {
            font-size: 23px;
        }

        .engineering-discipline ul {
            grid-template-columns: 1fr;
        }


        /* RESIDUOS */

        .waste-page .waste-flow {
            grid-template-columns: 1fr;
            gap: 42px;
        }

        .waste-page .waste-step-content {
            max-width: 280px;
        }


        /* ÁREAS */

        .environmental-page .specialty-areas,
        .engineering-page .specialty-areas,
        .waste-page .specialty-areas {
            padding-top: 32px;
        }

        .environmental-page .areas-header h2,
        .engineering-page .areas-header h2,
        .waste-page .areas-header h2 {
            font-size: 25px;
        }

        .environmental-page .areas-list span,
        .engineering-page .areas-list span,
        .waste-page .areas-list span {
            font-size: 12px;
            padding: 8px 12px;
        }

    }
/* =========================================================
   FIX DEFINITIVO — PÁGINAS DE ESPECIALIDAD
   ========================================================= 

.specialty-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    box-sizing: border-box;
}*/

/* ---------- ENCABEZADO ---------- 

.specialty-header {
    width: 100%;
    text-align: center;
    margin-bottom: 70px;
}

.specialty-header .cota {
    justify-content: center;
}

.specialty-header p {
    max-width: 720px;
    margin: 25px auto 0;
}*/


/* =========================================================
   PROYECTOS DE INGENIERÍA
   =========================================================

.engineering-page .engineering-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
} */

/* Intro 

.engineering-page .process-intro {
    width: 100%;
    margin-bottom: 45px;
}

.engineering-page .process-intro h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 12px 0 0;
    max-width: 700px;
}*/


/* GRID DE DISCIPLINAS 

.engineering-page .engineering-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55px 55px;
    width: 100%;
}*/


/* Cada disciplina 

.engineering-page .engineering-discipline {
    position: relative;
    min-width: 0;
    min-height: 250px;
    padding: 25px 25px 25px 24px;
    border-top: 1px solid #b9cbd5;
    border-left: 1px solid #b9cbd5;
    box-sizing: border-box;
}

.engineering-page .process-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #17608e;
    border-radius: 50%;
    background: #fff;
    color: #17608e;
    font-size: 7px;
    z-index: 2;
}

.engineering-page .discipline-line {
    width: 38px;
    height: 1px;
    background: #17608e;
    margin-bottom: 18px;
}

.engineering-page .engineering-discipline h3 {
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #075487;
}

.engineering-page .engineering-discipline p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 500px;
}*/


/* Listas 

.engineering-page .engineering-discipline ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.engineering-page .engineering-discipline li {
    position: relative;
    padding-left: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.engineering-page .engineering-discipline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    border: 1px solid #17608e;
    border-radius: 50%;
}*/


/* ---------- CIERRE / ÁREA FINAL ---------- 

.engineering-page .specialty-footer {
    width: 100%;
    max-width: 1000px;
    margin: 75px auto 0;
    padding: 35px 40px;
    border-top: 1px solid #b9cbd5;
    border-bottom: 1px solid #b9cbd5;
    background: rgba(255,255,255,.35);
    box-sizing: border-box;
}

.engineering-page .specialty-footer .areas-label {
    display: block;
    color: #17608e;
    font-size: 11px;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.engineering-page .specialty-footer p {
    margin: 0;
    max-width: 750px;
    font-size: 14px;
    line-height: 1.6;
}*/


/* =========================================================
   MANEJO DE RESIDUOS
   ========================================================= */

.waste-page {
    max-width: 1250px;
}


/* ---------- HERO ---------- */

.waste-page .waste-hero {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 45px;
    align-items: end;
    margin-bottom: 90px;
}

.waste-page .waste-hero-copy {
    padding-bottom: 20px;
    min-width: 0;
}

.waste-page .waste-hero-copy h1 {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    margin: 12px 0;
}

.waste-page .waste-hero-copy p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.waste-page .waste-hero-image {
    position: relative;
    width: 100%;
    height: 480px;
    margin: 0;
    overflow: hidden;
}

.waste-page .waste-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ---------- PROCESO ---------- */

.waste-page .waste-process {
    width: 100%;
}

.waste-page .waste-process-intro {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}

.waste-page .waste-process-intro h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin: 12px 0 0;
}

.waste-page .waste-process-intro > p {
    max-width: 600px;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}


/* ---------- FLUJO ---------- */

.waste-page .waste-flow {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    padding: 35px 0 45px;
    border-top: 1px solid #b9cbd5;
    border-bottom: 1px solid #b9cbd5;
}

/* Las flechas ya no ocupan espacio */
.waste-page .waste-arrow {
    display: none;
}

.waste-page .waste-step {
    min-width: 0;
    text-align: center;
}

.waste-page .waste-node {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border: 1px solid #9fc1d3;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waste-page .waste-node-number {
    font-size: 9px;
    color: #17608e;
}

.waste-page .waste-node-icon {
    position: absolute;
    top: -6px;
    right: -5px;
    width: 17px;
    height: 17px;
    border: 1px solid #17608e;
    border-radius: 50%;
    background: white;
    font-size: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17608e;
}

.waste-page .waste-step-label {
    display: block;
    font-size: 8px;
    letter-spacing: .08em;
    color: #17608e;
    margin-bottom: 7px;
}

.waste-page .waste-step h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.2;
    color: #075487;
    margin: 0 0 9px;
}

.waste-page .waste-step p {
    font-size: 10px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 155px;
}


/* =========================================================
   ÁREAS DE SERVICIO — HACERLAS VISIBLES
   ========================================================= */

.waste-page .specialty-areas {
    width: 100%;
    max-width: 1000px;
    margin: 70px auto 0;
    padding: 40px;
    border-top: 1px solid #b9cbd5;
    border-bottom: 1px solid #b9cbd5;
    background: rgba(255,255,255,.4);
    box-sizing: border-box;
}

.waste-page .areas-header {
    display: flex;
    align-items: baseline;
    gap: 30px;
    margin-bottom: 28px;
}

.waste-page .areas-header span {
    font-size: 10px;
    letter-spacing: .1em;
    color: #17608e;
}

.waste-page .areas-header h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 28px;
    color: #075487;
}

.waste-page .areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.waste-page .areas-list span {
    display: block;
    padding: 11px 16px;
    border: 1px solid #bfd0d9;
    background: #fff;
    color: #28536d;
    font-size: 11px;
    line-height: 1.3;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .specialty-page {
        padding: 80px 25px 60px;
    }

    .engineering-page .engineering-grid {
        gap: 35px 25px;
    }

    .waste-page .waste-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .waste-page .waste-hero-image {
        height: 400px;
    }

    .waste-page .waste-process-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .waste-page .waste-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 45px;
    }
}


/* =========================================================
   RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .specialty-page {
        padding: 70px 18px 50px;
    }

    .specialty-header {
        margin-bottom: 50px;
    }

    /* INGENIERÍA */

    .engineering-page .engineering-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .engineering-page .engineering-discipline {
        min-height: auto;
        padding: 22px 20px;
    }

    .engineering-page .engineering-discipline h3 {
        font-size: 20px;
    }

    .engineering-page .engineering-discipline ul {
        grid-template-columns: 1fr 1fr;
    }

    .engineering-page .specialty-footer {
        margin-top: 45px;
        padding: 28px 22px;
    }

    /* RESIDUOS */

    .waste-page .waste-hero {
        margin-bottom: 60px;
    }

    .waste-page .waste-hero-image {
        height: 280px;
    }

    .waste-page .waste-process-intro h2 {
        font-size: 34px;
    }

    .waste-page .waste-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    .waste-page .specialty-areas {
        padding: 28px 20px;
        margin-top: 50px;
    }

    .waste-page .areas-header {
        display: block;
    }

    .waste-page .areas-header h2 {
        margin-top: 8px;
        font-size: 26px;
    }

    .waste-page .areas-list span {
        font-size: 10px;
    }
}


/* =========================================================
   RESIDUOS — HERO EDITORIAL
   ========================================================= */

.waste-hero {
    width: min(1180px, calc(100% - 60px));
    margin: 70px auto 110px;
    display: grid;
    grid-template-columns: 0.85fr 1.35fr;
    align-items: center;
    gap: 70px;
}

/* TARJETA IZQUIERDA */

.waste-hero-card {
    position: relative;
    z-index: 2;
    background: #f7f6f2;
    border: 1px solid rgba(20, 92, 137, 0.28);
    padding: 48px 45px 42px;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 12px 12px 0 rgba(20, 92, 137, 0.045);
}

.waste-hero-card .process-label {
    color: #155b88;
    font-size: 11px;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.waste-hero-card h1 {
    margin: 0;
    color: #155f8e;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 500;
}

.waste-card-line {
    width: 65px;
    height: 1px;
    background: #176595;
    margin: 27px 0 22px;
}

.waste-hero-card p {
    margin: 0;
    max-width: 390px;
    color: #52616b;
    font-size: 14px;
    line-height: 1.7;
}

.waste-card-number {
    margin-top: 35px;
    color: #155f8e;
    font-size: 9px;
    letter-spacing: .12em;
}


/* IMAGEN DERECHA */

.waste-hero-image {
    position: relative;
    margin: 0;
    padding: 14px;
}

.waste-hero-image img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}


/* MARCO TÉCNICO */

.waste-frame-line {
    position: absolute;
    display: block;
    background: #176595;
    z-index: 3;
}

.frame-top {
    top: 0;
    left: 0;
    width: 85%;
    height: 1px;
}

.frame-bottom {
    bottom: 0;
    right: 0;
    width: 85%;
    height: 1px;
}

.frame-left {
    top: 0;
    left: 0;
    width: 1px;
    height: 75%;
}

.frame-right {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 75%;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .waste-hero {
        width: min(680px, calc(100% - 40px));
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 50px;
    }

    .waste-hero-card {
        min-height: auto;
        padding: 38px 32px;
    }

    .waste-hero-image {
        padding: 10px;
    }

    .waste-hero-image img {
        height: 420px;
    }

    .engineering-page .specialty-areas {
        width: min(680px, calc(100% - 40px));
        margin-top: 80px;
    }
}


@media (max-width: 600px) {

    .waste-hero {
        width: calc(100% - 28px);
        margin: 35px auto 70px;
    }

    .waste-hero-card {
        padding: 30px 25px;
    }

    .waste-hero-card h1 {
        font-size: 36px;
    }

    .waste-hero-image img {
        height: 280px;
    }

    .engineering-page .specialty-areas {
        width: calc(100% - 28px);
    }

    .engineering-page .areas-header {
        display: block;
    }

    .engineering-page .areas-header h2 {
        margin-top: 8px;
    }

    .engineering-page .areas-list {
        gap: 7px;
    }

    .engineering-page .areas-list span {
        font-size: 10px;
        padding: 9px 12px;
    }
}
    .engineering-page .specialty-areas .areas-description {
    max-width: 1300px;
    margin: -8px 0 28px;
    color: #52616b;
    font-size: 13px;
    line-height: 1.7; 
    }
/* =========================================================
   TIMELINE — MANEJO DE RESIDUOS
   ========================================================= */

.waste-flow {
    position: relative;
    width: min(1100px, 100%);
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

/* línea horizontal */

.waste-flow::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(20, 92, 137, .35);
}


/* cada etapa */

.waste-step {
    position: relative;
    min-width: 0;
    text-align: center;
    padding: 0 12px;
}


/* círculo */

.waste-node {
    position: relative;
    z-index: 2;

    width: 62px;
    height: 62px;
    margin: 0 auto 25px;

    border: 1px solid #76a9c5;
    border-radius: 50%;

    background: #f7f6f2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.waste-node::before {
    content: "";
    position: absolute;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(20, 92, 137, .22);
    border-radius: 50%;
}

.waste-node span {
    position: relative;
    color: #155f8e;
    font-size: 11px;
    letter-spacing: .05em;
}


/* texto */

.waste-step-label {
    display: block;

    margin-bottom: 8px;

    color: #155f8e;
    font-size: 8px;
    letter-spacing: .12em;
}

.waste-step h3 {
    margin: 0 0 10px;

    color: #155f8e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
}

.waste-step p {
    margin: 0 auto;

    max-width: 145px;

    color: #66737b;
    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .waste-flow {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 55px;
    }

    .waste-flow::before {
        display: none;
    }

}


@media (max-width: 600px) {

    .waste-flow {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 45px;
    }

    .waste-step {
        display: grid;
        grid-template-columns: 70px 1fr;
        text-align: left;
        align-items: start;
        gap: 18px;
    }

    .waste-node {
        margin: 0;
    }

    .waste-step p {
        margin: 0;
        max-width: 300px;
    }

}

/* =========================================
   PROJECTS FOOTER CARDS
   ========================================= */



.projects-footer {
    position: relative;

    width: calc(100% + 20vw);
    margin-left: -10vw;

    min-height: 320px;

    display: flex;
    align-items: center;

    overflow: hidden;

    text-align: justify;
}






/* ---------- BACKGROUND ---------- */

.projects-footer::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url('../img/109.jpg');

    background-size: cover;
    background-position: center;

    filter:
        contrast(1.06)
        saturate(1.12)
        brightness(1.8);

    z-index: 0;
}


/* ---------- OVERLAY ---------- */

.projects-footer-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(213, 216, 219, 0.6),
            rgba(214, 212, 206, 0.45)
        );
}


/* ---------- CONTENT ---------- */

.projects-footer-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 90px 70px;
}


/* ---------- GRID ---------- */

.projects-footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px

}



/* ---------- CARD ---------- */

.projects-footer-card {
    width: 100%;
    min-height: 220px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255,255,255,.14);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255,255,255,.35);

    border-radius: 18px;

    transition:
        transform .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}



/* ---------- HOVER ---------- */

.projects-footer-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255,255,255,.22);

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);
}


/* ---------- TAG ---------- */

.projects-footer-card .section-tag {
    display: block;

    margin-bottom: 0.5px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.85);
}


/* ---------- TITLE ---------- */

.projects-footer-card h3 {
    margin: 8px 0 14px;

    color: var(--blue);

    font-family:
        'Libre Baskerville',
        serif;

    font-size: 22px;

    line-height: 1.3;

    text-align: center;
}


/* ---------- TEXT ---------- */

.projects-footer-card p {
    margin: 0;

    color:
        #1F618B;

    font-size: 18px;

    line-height: 1.65;
    text-align: center;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

    .projects-footer-content {
        padding: 55px 35px;
    }

    .projects-footer-grid {
        grid-template-columns:
            repeat(auto-fit, minmax(230px, 1fr));

        gap: 18px;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .projects-footer-content {
        padding: 40px 20px;
    }

    .projects-footer-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .projects-footer-card {
        min-height: auto;

        padding: 24px;
    }

}
/* =========================================================
   AJUSTE VISUAL — PROYECTOS DE INGENIERÍA
   ========================================================= */

.engineering-page .engineering-section {
    width: min(1380px, 100%);
    margin: 0 auto;
}

.engineering-page .process-intro {
    width: 100%;
    margin-bottom: 45px;
}

.engineering-page .process-intro h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 12px 0 0;
    max-width: 800px;
}


/* =========================================================
   GRID
   ========================================================= */

.engineering-page .engineering-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 70px;
    row-gap: 65px;

    width: 100%;
}


/* =========================================================
   DISCIPLINAS
   ========================================================= */

.engineering-page .engineering-discipline {
    position: relative;

    min-width: 0;
    min-height: 245px;

    padding: 35px 20px 10px 42px;

    box-sizing: border-box;

    border-top: 1px solid #b9cbd5;
    border-left: 1px solid #b9cbd5;
}

.engineering-page .engineering-discipline::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 1px;

    background: #b9cbd5;
}


/* =========================================================
   NÚMERO
   ========================================================= */

.engineering-page .process-number {
    position: absolute;

    top: -10px;
    left: -10px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--blue);
    border-radius: 50%;

    background: var(--white);
    color: var(--blue);

    font-size: 18px;
    font-weight: 700;

    z-index: 4;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.engineering-page .engineering-discipline h3 {
    margin-bottom: 14px;

    color: var(--blue-dark);

    font-family:
        'Libre Baskerville',
        serif;

    font-size: 35px;
    font-weight: 450;

    line-height: 1.25;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.engineering-page .engineering-discipline > p {
    max-width: 620px;

    margin-bottom: 25px;

    color: var(--blue-dark);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   LISTA
   ========================================================= */

.engineering-page .engineering-discipline ul {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.engineering-page .engineering-discipline li {
    position: relative;

    padding-left: 15px;

    color: var(--gray-dark);

    font-size: 15px;
    line-height: 1.55;
}

.engineering-page .engineering-discipline li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 9px;

    width: 5px;
    height: 5px;

    border: 1px solid var(--blue);
    border-radius: 50%;
}


/* =========================================================
   DECORACIÓN
   ========================================================= */

.engineering-page::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: 5%;
    top: 190px;

    border: 1px solid rgba(31,97,139,.10);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   BLOQUE FINAL
   ========================================================= */

.engineering-page .engineering-section::after {
    content: "";
    display: block;
    clear: both;
}

.engineering-page .engineering-section > p {
    width: 100%;
    max-width: 800px;

    margin: 80px auto 0;
    padding-top: 25px;

    border-top: 1px solid rgba(31,97,139,.15);

    color: var(--gray-light);

    font-size: 15px;
    line-height: 1.7;
}