@font-face {
    font-family: 'bebas_neuebold';
    src: url('../fonts/bebasneue_bold-webfont.woff2') format('woff2'),
         url('../fonts/bebasneue_bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotoblack';
    src: url('../fonts/roboto-black-webfont.woff2') format('woff2'),
         url('../fonts/roboto-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotobold';
    src: url('../fonts/roboto-bold-webfont.woff2') format('woff2'),
         url('../fonts/roboto-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotolight';
    src: url('../fonts/roboto-light-webfont.woff2') format('woff2'),
         url('../fonts/roboto-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotomedium';
    src: url('../fonts/roboto-bold-webfont.woff2') format('woff2'),
         url('../fonts/roboto-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotoregular';
    src: url('../fonts/roboto-regular-webfont.woff2') format('woff2'),
         url('../fonts/roboto-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

#main-content.ntic-main {
    margin-top: 100px;
    font-family: 'robotolight', Helvetica, Arial, sans-serif;
}

.ntic-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ntic-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.texts-ntic {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    color: white;
    padding: 30px 44px 30px 30px;
    max-width: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.texts-ntic h4 {
    font-family: 'robotobold', sans-serif;
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.texts-ntic h5 {
    font-family: 'robotomedium', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.texts-ntic p {
    font-family: 'robotolight', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ntic-header {
    height: 250px;
    color: white;
    font-family: 'bebas_neuebold', Impact, sans-serif;
    background: url('../img/home/point.png') 0 0 repeat;
    background-color: #b72d2a;
    position: relative;
    padding-top: 100px;
}

.ntic-header:after {
    content: "";
    background: url('../img/home/bg-header.png') right top no-repeat;
    background-size: 50%;
    height: 150px;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.4;
}

#about .ntic-header h2,
#contact .ntic-header h2 {
    font-size: clamp(4rem, 12vw, 154px);
    position: relative;
    bottom: 6px;
    z-index: 1;
    margin: 0;
    line-height: 1;
}

.ntic-header + .container-about {
    padding: 20px 0;
    height: 688px;
}

.ntic-header + .container-about > div {
    position: relative;
    height: 100%;
}

.format-about h2 {
    font-family: 'robotoblack', sans-serif;
}

#about .st0 { fill: #A31319; }
#about .st1 { fill: #ED1C24; }
#about .st2 { fill: #ED5157; }
#about .st3 { fill: #4F090C; }

#about #puzzle {
    width: 330px;
    height: 330px;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

#contact .ntic-contact-body {
    padding: 30px 15px;
}

#contact a {
    color: #ed1c24;
    font-weight: 700;
}

#map {
    height: 300px;
    margin-top: 1rem;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#footer-ntic {
    background-color: #c02d2a;
    color: white;
    overflow: hidden;
    padding: 15px 0;
    clear: both;
}

.footer-content {
    overflow: hidden;
    padding: 0 15px;
}

.footer-content h5 {
    font: 15px 'robotobold', sans-serif;
    margin: 0 0 0.5rem;
}

.footer-content hr {
    border: 1px solid white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.footer-content .footer-licenses ul {
    list-style-image: url('../img/footer/etiqueta.png');
    display: inline-block;
    vertical-align: top;
    width: 33%;
    margin: 0;
    padding-left: 1.25rem;
}

.footer-content .footer-licenses ul li {
    font: 13px 'robotolight', sans-serif;
    line-height: 1.9;
}

.footer-content .footer-contact {
    text-align: right;
}

.footer-content .footer-contact ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.footer-content .footer-contact ul li {
    line-height: 1.9;
    text-align: right;
    font-family: 'robotolight', sans-serif;
}

/* Paridad con la franja del MVC (_LayoutIndex): enlace blanco y en negrita junto al copyright. */
.ntic-copyright a {
    color: #fff;
    font-family: 'robotobold', sans-serif;
}

.ntic-copyright {
    background-color: #ee312a;
    padding: 5px;
    text-align: center;
    color: #fff;
    font-family: 'robotolight', sans-serif;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .texts-ntic {
        right: 0;
        max-width: 100%;
        width: 100%;
    }

    .texts-ntic h4 {
        font-size: 28px;
    }

    .texts-ntic h5 {
        font-size: 20px;
    }

    .ntic-header {
        height: 118px;
        padding-top: 0;
        display: flex;
        align-items: center;
    }

    #about .ntic-header h2,
    #contact .ntic-header h2 {
        font-size: 72px;
        bottom: 0;
    }

    #puzzle {
        display: none;
    }

    .ntic-header + .container-about {
        height: auto;
    }

    .ntic-header + .container-about > div {
        padding: 30px;
        height: auto;
    }

    .format-about h2 {
        margin-top: 20px;
    }

    .footer-content .footer-contact,
    .footer-content .footer-contact ul li {
        text-align: left;
    }

    .footer-content .footer-licenses ul {
        width: 100%;
        display: block;
    }
}

@media (min-width: 992px) {
    #puzzle path {
        transition: transform 0.7s;
    }

    .about-us:hover ~ #puzzle svg path:nth-child(2) {
        transform: translate(-150px, 0);
    }

    .our-mision:hover ~ #puzzle svg path:nth-child(3) {
        transform: translate(0, -140px);
    }

    .our-vision:hover ~ #puzzle svg path:nth-child(4) {
        transform: translate(0, 140px);
    }

    .our-culture:hover ~ #puzzle svg path:nth-child(1) {
        transform: translate(140px, 0);
    }

    .format-about:hover h2 {
        color: #ED1C24;
    }

    .about-us {
        width: 30%;
        position: absolute;
        left: 5%;
        top: 20px;
    }

    .our-mision {
        width: 30%;
        position: absolute;
        right: 5%;
        top: 20px;
        text-align: right;
    }

    .our-vision {
        width: 30%;
        position: absolute;
        left: 5%;
        bottom: 20px;
    }

    .our-culture {
        width: 30%;
        position: absolute;
        right: 5%;
        bottom: 20px;
    }

    .our-culture h2 {
        text-align: right;
    }
}

/* ---------- Aviso de privacidad (Components/PrivacyPolicyContent.razor) ----------
   Mismo diseño que NTICModules/wwwroot/css/Views/Home/privacy.css del MVC. Las
   tipografías y el footer ya están arriba en este archivo. */

.ntic-privacy {
    font-family: 'robotolight', Helvetica, Arial, sans-serif;
    color: #1b1b1b;
    background-color: #fff;
}

.ntic-privacy__inner {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* 100px del header fixed + 40px de aire. */
.ntic-privacy__hero {
    background: url('../img/home/point.png') 0 0 repeat;
    background-color: #b72d2a;
    color: #fff;
    padding: 140px 0 40px;
    margin-bottom: 48px;
}

.ntic-privacy__title {
    margin: 0;
    font-family: 'bebas_neuebold', Impact, sans-serif;
    font-weight: normal;
    font-size: 72px;
    line-height: 1.1;
}

.ntic-privacy__date {
    margin: 12px 0 0;
    font-size: 18px;
    opacity: .85;
}

.ntic-privacy__body {
    padding-bottom: 72px;
    font-size: 16px;
    line-height: 1.7;
}

.ntic-privacy__body p {
    margin: 0 0 16px;
}

.ntic-privacy__body strong {
    font-family: 'robotobold', Helvetica, Arial, sans-serif;
    font-weight: normal;
}

.ntic-privacy__section {
    margin-top: 40px;
}

.ntic-privacy__section h2 {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ed1c24;
    color: #b72d2a;
    font-family: 'robotobold', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 26px;
    line-height: 1.3;
}

.ntic-privacy__section h3 {
    margin: 28px 0 12px;
    color: #333;
    font-family: 'robotobold', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 19px;
}

.ntic-privacy__body ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.ntic-privacy__body li {
    margin-bottom: 6px;
}

.ntic-privacy__body li::marker {
    color: #ed1c24;
}

.ntic-privacy__body a {
    color: #ed1c24;
    font-family: 'robotobold', Helvetica, Arial, sans-serif;
    text-decoration: underline;
}

.ntic-privacy__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 24px;
    border-left: 4px solid #ed1c24;
    background-color: #f4f4f4;
    font-style: normal;
}

.ntic-privacy__contact-name {
    font-family: 'robotobold', Helvetica, Arial, sans-serif;
    color: #b72d2a;
}

@media (max-width: 767px) {
    .ntic-privacy__hero {
        padding: 130px 0 32px;
        margin-bottom: 32px;
    }

    .ntic-privacy__title {
        font-size: 52px;
    }

    .ntic-privacy__date {
        font-size: 16px;
    }

    .ntic-privacy__section h2 {
        font-size: 22px;
    }

    .ntic-privacy__section h3 {
        font-size: 17px;
    }
}
