/* ----------------------------------------------- */
/* ESTILOS GLOBALES */
/* ----------------------------------------------- */
:root {
    --menu-bg: rgb(20, 20, 20);
    --menu-color: rgb(240, 240, 240);
    --menu-shadow-color: rgba(0, 0, 0, .8);
    --dropdown-bg: rgb(80, 80, 80);
    --link-bg: rgba(30, 85, 148, .7);
    --solutions-paragraphs: rgb(100, 100, 100);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;;
    overflow-x: hidden;
}

/* IA */
body.menu-open {
    overflow: hidden;
    height: 100%;
}

/* IA */
@keyframes fadeGrowIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* IA */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity .8s ease, transform .8s ease;
}

/* IA */
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ----------------------------------------------- */
/* ENCABEZADO MOBILE FIRST */
/* ----------------------------------------------- */
.header {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: transparent;
    padding: .5em .8em;
    position: fixed;
    transition: all .5s ease;
    z-index: 10;
}

.header.down {
    background-color: rgba(5, 5, 5, .5);
    backdrop-filter: saturate(180%) blur(10px);
}

/* IA */
.header.mobile-hidden {
    transform: translateY(-100%);
}

/* IA */
.header.mobile-visible {
    transform: translateY(0);
    background-color: rgba(5, 5, 5, .5);
}

.header_link_logo {
    max-width: 250px;
}

.header_logo {
    display: block;
    width: 100%;
}

.menu_open, .menu_close {
    display: block;
    background-color: transparent;
    color: var(--menu-color);
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.menu_open {
    margin-left: auto;
}

.menu_close {
    color: var(--menu-color);
}

.list_one_ext, .list_two_ext {
    display: none;
}

.nav {
    opacity: 0;
    visibility: hidden;
    width: 65%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4em;
    padding: 2.5em .5em;
    position: fixed; /* IA, yo -> position: absolute */
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--menu-bg);
    box-shadow: 0 0 0 100vmax var(--menu-shadow-color);

    /* IA */
    height: 100vh;
    overflow-y: auto;
    transform: translateX(100%);
    transition:
        transform .35s ease,
        opacity .35s ease,
        visibility 0s linear .35s;
}

.nav.visible {
    opacity: 1;
    visibility: visible;

    /* IA */
    transform: translateX(0);
    transition:
        transform .35s ease,
        opacity .35s ease,
        visibility 0s;
}

.list_one, .list_two {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.list_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3em;
    overflow: hidden;
}

.arrow .list_arrow {
    transform: rotate(90deg);
}

.list_button {
    display: flex;
    justify-content: center;
    width: 45%;
    color: var(--menu-color);
}

.list_button--click {
    cursor: pointer;
}

.list_link {
    text-decoration: none;
    color: var(--menu-color);
    text-align: center;
    font-size: 1rem;
}

.list_link:hover:not(.meeting_link) {
    text-decoration: underline;
}

.list_link:active:not(.meeting_link) {
    text-decoration: underline;
    color: rgb(200, 200, 200);
}

.list_arrow {
    margin-left: .3em;
    transition: transform .3s;
}

.list_dropdown {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
    height: 0;
    transition: height .4s;
}

.dropdown_item, .dropdown_item_contact {
    text-align: center;
    color: var(--menu-color);
    width: 100%;
    border-radius: 5px;
    padding: .2em 1em;
    background-color: var(--dropdown-bg);
    font-size: .9rem;
}

.dropdown_item {
    cursor: pointer;
}

.dropdown_item_contact {
    cursor: default;
}

.dropdown_item:hover, .dropdown_item_contact:hover {
    background-color: rgb(130, 130, 130);
    transition: all .1s ease-in-out;
}

.dropdown_item:active {
    background-color: rgb(170, 170, 170);
    transform: scale(0.95);
}

.dropdown_link {
    text-decoration: none;
    color: var(--menu-color);
}

.meeting_link, .hero_link {
    background-color: var(--link-bg);
    padding: .3em .7em;
    border-radius: 20px;
    border: 2px solid rgb(104, 159, 223);
}

.meeting_link:hover, .hero_link:hover {
    background-color: rgb(104, 159, 223);
    color: rgb(21, 54, 92);
    transition: all .1s ease-in-out;
}

.meeting_link:active, .hero_link:active {
    background-color: rgb(174, 208, 248);
    border: 2px solid rgb(174, 208, 248);
    transform: scale(0.95);
}

/* ----------------------------------------------- */
/* SECCIÓN DEL HERO */
/* ----------------------------------------------- */
.cctv_image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                      url(../../../Images/Services-Images/CCTV-Images/CCTV-BG.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 220px;
    display: flex;
}

.hero {
    width: fit-content;
    height: fit-content;
    margin: 6.5em auto;
    padding: .7em;
    background-color: var(--menu-shadow-color);
}

.hero_title {
    text-align: center;
    color: var(--menu-color);
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* ----------------------------------------------- */
/* BLOQUES */
/* ----------------------------------------------- */
.block {
    display: flex;
    flex-direction: column;
    gap: 3em;
    margin: 50px 0;
}

.container {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.container_figure {
    position: relative;
    width: 100%;
    max-width: 570px;
    height: 500px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
}

.container_title {
    position: absolute;
    top: 20%;
    text-align: center;
    padding: 1em;
    color: var(--menu-color);
    background-color: rgba(40, 40, 40, 0.9);
    font-weight: 400;
    font-size: clamp(1.4rem, 2vw, 2rem);
    transition: all 400ms ease-out;
    width: 100%;
}

.container_image {
    width: 100%;
    height: 100%;
    transition: all 400ms ease-out;
    will-change: transform;
    object-fit: cover;
}

.container:nth-child(3) .container_figure {
    outline: 2px solid var(--dropdown-bg);
}

.container:nth-child(3) .container_image {
    object-fit: contain;
}

.layer {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 400ms ease-out;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    padding: 0 1em;
}

.container_figure:hover > .layer {
    opacity: 1;
    visibility: visible;
}

.container_figure:hover > .container_image {
    transform: scale(1.3);
}

.container_figure:hover > .container_title {
    color: transparent;
    background-color: transparent;
}

.container_figure:hover .title {
    margin-top: 70px;
    margin-bottom: 15px;
}

.title {
    color: #fff;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    margin-bottom: 120px;
    transition: all 500ms ease-out;
    margin-top: 30px;
}

.paragraph {
    color: #fff;
    font-size: clamp(.95rem, 1.5vw, 1.3rem);
    font-weight: 300;
    line-height: 1.6;
    width: 100%;
    max-width: 550px;
    margin: auto;
}

/* ----------------------------------------------- */
/* BLOQUE FINAL */
/* ----------------------------------------------- */
.subtitle {
    padding: 0 .5em;
    text-align: center;
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    font-weight: 500;
    color: var(--dropdown-bg);
}

.paragraph_last {
    padding: 0 .8em;
    text-align: center;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--solutions-paragraphs);
}

.last_block {
    background-color: rgb(230, 230, 230);
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 2em .5em;
}

.paragraph_contact {
    color: var(--dropdown-bg);
    font-weight: 600;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.hero_link {
    text-decoration: none;
    color: var(--menu-color);
    font-size: clamp(1em, 1.5vw, 1.2em);
    font-weight: 500;
    margin: 0 auto;
    border-color: var(--dropdown-bg);
    background-color: rgb(200, 200, 200);
    color: var(--dropdown-bg);
    transition: all .3s ease-in;
}

.hero_link:hover {
    background-color: rgb(170, 170, 170);
    color: var(--menu-color);
}

.hero_link:active {
    background-color: rgb(215, 215, 215);
    border-color: rgb(215, 215, 215);
}

/* ----------------------------------------------- */
/* FINAL DE PÁGINA */
/* ----------------------------------------------- */
.footer {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    background-color: rgb(5, 5, 5);
}

.footer_first {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    padding: 3em 2em 1em;
    justify-content: flex-start;
}

.footer_link_container {
    width: 100%;
    max-width: 1023px;
    height: fit-content;
    padding: 0 .5em;
    display: flex;
}

.footer_link_image {
    width: 70%;
    max-width: 230px;
    height: fit-content;
    margin: 0 auto;
}

.footer_image {
    width: 100%;
    display: block;
}

.footer_container {
    display: flex;
    flex-direction: column;
    gap: .5em;
    flex-grow: 1;
}

.footer_title {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 500;
    border-bottom: 1px solid var(--menu-color);
    color: var(--menu-color);
}

.footer_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3em;
}

.footer_item {
    color: var(--solutions-paragraphs);
    margin-left: .5em;
    font-size: clamp(1rem, 1vw, 1.2rem);
}

.footer_link {
    text-decoration: none;
    color: inherit;
    transition: all .1s ease;
}

.footer_link:hover {
    color: var(--menu-color);
    text-decoration: underline;
}

.footer_link:active {
    color: rgb(170, 170, 170);
}

.footer_last {
    padding: 1em;
    border-top: 1px solid rgb(60, 60, 60);
    color: rgb(60, 60, 60);
}

.last_paragraph {
    text-align: center;
    font-size: clamp(.8rem, 1.5vw, 1rem);
}

/* ----------------------------------------------- */
/* RESPONSIVE DESGIN */
/* BREAKPOINT: 1024px */
/* ----------------------------------------------- */
@media (min-width: 1024px) {
    /* ----------------------------------------------- */
    /* ENCABEZADO (DESKTOP) */
    /* ----------------------------------------------- */
    .menu_open, .nav {
        display: none;
    }

    /* IA */
    .header.mobile-visible {
        transform: translateY(0);
        background-color: rgba(5, 5, 5, .5);
        backdrop-filter: saturate(180%) blur(10px);
    }

    /* IA */
    .header.mobile-hidden {
        transform: translateY(-100%);
    }

    .header {
        justify-content: space-around;
        padding-left: 0;
        padding-right: 0;
    }

    .list_one_ext, .list_two_ext {
        display: flex;
    }

    ul {
        list-style: none;
    }

    .list_one_ext, .list_two_ext {
        gap: clamp(2em, 4vw, 7em);
    }

    .list_item_ext:hover > .list_dropdown_ext {
        display: flex;
        flex-direction: column;
        gap: .5em;
    }

    .list_link_ext {
        text-decoration: none;
        color: var(--menu-color);
        font-size: clamp(.9rem, 1vw, 1.1rem);
    }


    .list_link_ext:not(.meeting_link):hover {
        text-decoration: underline;
    }

    .list_arrow {
        display: none;
    }

    .list_dropdown_ext {
        display: none;
        position: absolute;
        background-color: rgba(100, 100, 100, .9);
        margin-top: .1em;
    }

    .dropdown_item_ext, .dropdown_item_contact_ext {
        padding: clamp(.2em, 1vw, .5em);
        color: var(--menu-color);
        font-size: clamp(.8rem, 1vw, 1rem);
        transition: all .1s ease;
    }

    .dropdown_item_ext:hover, .dropdown_item_contact_ext:hover {
        background-color: rgb(40, 40, 40);
        cursor: default;
    }

    .dropdown_item_ext:hover {
        cursor: pointer;
    }

    .dropdown_item_ext:active {
        background-color: rgb(5, 5, 5);
    }

    .dropdown_link_ext {
        color: inherit;
        text-decoration: none;
    }

    /* ----------------------------------------------- */
    /* HERO */
    /* ----------------------------------------------- */
    .cctv_image {
        height: 250px;
    }

    .hero {
        margin: 7.5em auto;
    }

    /* ----------------------------------------------- */
    /* BLOQUES */
    /* ----------------------------------------------- */
    .block {
        gap: 6em;
        margin: 100px 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        width: 37%;
        margin: 0;
    }
    
    .container_figure {
        width: 100%;
        max-width: 1200px;
        max-width: none;
        margin: 0;

    }

    .paragraph {
        max-width: none;
        padding: 0 2em;
    }

    /* ----------------------------------------------- */
    /* BLOQUE FINAL */
    /* ----------------------------------------------- */   
    .last_block {
        text-align: center;
        align-items: center;
    }

    .last_block .paragraph_last {
        text-align: center;
        padding: 0 10em;
    }   

    /* ----------------------------------------------- */
    /* FINAL DE PÁGINA */
    /* ----------------------------------------------- */
    .footer_first {
        gap: 3em;
        justify-content: space-evenly;
        flex-wrap: nowrap;
    }

    .footer_link_container {
        width: fit-content;
    }

    .footer_link_image {
        margin: 0;
        width: 400px;
    }

    .footer_container {
        flex-grow: 0;
        gap: .8em;
    }

    .footer_list {
        gap: inherit;
    }
}