@font-face {
    font-family: AudiType;
    font-style: normal;
    font-weight: normal;
    src: url(fonts/AudiTypeV03-Normal.otf);
}
@font-face {
    font-family: AudiType;
    font-style: normal;
    font-weight: bold;
    src: url(fonts/AudiTypeV03-Bold.otf);
}
:root {
    --boxedSize: 1200px;
    --textColor: #939393;
    --accentColor: #D90F0F;
    --accentColorFaded: #D90F0Faa;
    --abgTextColor: #fff;
    --hColor: #000;
    --bgColor: #fff;
    --bgColorAlt: #f9f9f9;
    --font-family: AudiType,Century Gothic,calibri,verdana,arial;
    --font-size: 1rem;
}

html,body {
    margin: 0;
    padding: 0;
    max-width: 100dvw;
}
body {
    min-height: 100dvh;
    width: 100%;
    display: grid;
    grid-template-rows: min-content auto min-content;
    gap: 2rem;
    font-family: var(--font-family);
    font-size: var(--font-size);
    justify-items: center;
    background-color: var(--bgColor);
    overflow: hidden auto;
    color: var(--textColor);
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--hColor);
}
h2 {
    font-weight: 300;
    font-size: 2rem;
}
.text-alt h1, .text-alt h2, .text-alt h3, .text-alt h4, .text-alt h5, .text-alt h6 {
    color: var(--abgTextColor);
}
.text-alt {
    color: var(--abgTextColor);
}
a {
    text-decoration: none;
    color: var(--textColor);
}
ul:not(.policies ul) {
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    object-fit: cover;
    /* border: 0.3rem solid var(--accentColor); */
    /* border-radius: 3%; */
}
img.portrait {
    aspect-ratio: 9 / 11;
    width: 100%;
}
img.landscape {
    aspect-ratio: 16 / 9;
    width: 100%;
}
img.ultrawide {
    aspect-ratio: 24 / 9;
    width: 100%;
}
.no-padding {
    padding: 0 !important;
}
.no-border {
    border: 0 !important;
}
.m-1 {
    margin: 1rem 0;
}
.m-2 {
    margin: 2rem 0;
}
.m-3 {
    margin: 3rem 0;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}
.p-1 {
    padding: 1rem 0 !important;
}
.p-2 {
    padding: 2rem 0 !important;
}
.p-3 {
    padding: 3rem 0 !important;
}
.grid {
    display: grid;
    gap: 1.5rem;
}
.attached {
    margin-top: -2rem;
    margin-bottom: -2rem;
    padding: 0;
}
.boxed {
    width: var(--boxedSize);
    align-self: center;
}
.fit {
    width: fit-content;
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.bg-alt {
    background-color: var(--bgColorAlt);
}
.btn {
    padding: 0.5rem 1.5rem;
    width: fit-content;
    align-self: center !important;
    transition: 0.3s;
    border-radius: 5px;
    border: 2px solid transparent;
    font-size: var(--font-size);
    text-align: center;
    cursor: pointer;
}
.btn-primary {
    border-color: var(--abgTextColor);
    background-color: var(--accentColor);
    color: var(--abgTextColor);
}
.btn-secondary, .btn-primary:hover, .btn:disabled {
    border-color: var(--accentColor);
    background-color: var(--bgColor);
    color: var(--accentColor);
}
.btn:disabled {
    cursor: not-allowed;
}
.btn-alt {
    border-color: var(--abgTextColor);
    background-color: transparent;
    color: var(--abgTextColor);
}
.spacer {
    margin-bottom: 1rem;
}
.spacer-x2 {
    margin-bottom: 2rem;
}
.white-box {
    background-color: var(--bgColor);
    padding: 4rem;
    text-align: justify;
}
header, main, footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
header {
    position: relative;
    background-image: url('../img/banner-empresa.jpg');
    background-position: bottom center;
    width: 100%;
    z-index: 1;
}
#top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    color: var(--hColor);
}
#top-header > * {
    padding: 0 1rem;
}
#top-header a {
    color: inherit;
}
#top-header i {
    color: var(--accentColor);
    font-size: 1rem;
    font-weight: bold;
}
#logo {
    width: 300px;
    text-align: center;
    padding-top: 1rem;
    border: 0
}
nav {
    width: 100%;
    color: var(--abgTextColor);
    padding: 1rem 0;
    background: linear-gradient(transparent 2%,var(--hColor) 85%, var(--accentColor));
    display: flex;
    justify-content: center;
    gap: 3rem;
}
nav > i.fa {
    display: none;
}
nav a {
    color: var(--abgTextColor);
    font-size: 1.2rem;
    text-transform: capitalize;
    transition: 0.3s;
}
nav a.active, nav a:hover {
    color: var(--accentColor);
    text-shadow: 1px 0px 1px var(--abgTextColor);
}
main {
    width: var(--boxedSize);
    justify-content: unset;
    gap: 2rem;
}
.title {
    width: 100dvw;
    text-transform: capitalize;
    background-image: linear-gradient(45deg, var(--accentColor), transparent);
    color: var(--abgTextColor);
    margin-top: -2rem;
    padding: 2rem 0;
}
.title > .boxed {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    margin: 0 auto;
}
.title h2 {
    color: inherit;
    text-shadow: 0px 1px 2px var(--hColor);
}
.headlines {
    text-align: center;
}
section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 0;
}
section.full-width {
    padding: 0;
}
section.full-screen {
    min-height: 100dvh;
    justify-content: center;
    align-items: center;
}
section.full-width, section.full-screen, section.bg-alt {
    width: 100dvw;
    max-width: 100dvw;
}
section.bg-alt {
    margin-top: -2rem;
}
section.bg-img {
    background-repeat: no-repeat;
    background-size: cover;
}
section h3 {
    text-align: center;
}
#intro {
    margin-top: -2rem;
    height: 350px;
}
#intro video {
    max-width: 100dvw;
    width: 100dvw;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.icon-box {
    padding: 3rem;
    margin: 0;
    text-align: center;
    background-color: var(--bgColor);
    color: var(--accentColor);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* opacity: 0.7; */
    transition: 0.3s;
}
.icon-box:hover {
    background-color: var(--accentColor);
    color: var(--abgTextColor);
}
.icon-box:hover p>a {
    color: var(--abgTextColor);
    font-weight: 700;
    text-transform: uppercase;
}
.icon-box i, .icon-box h4, .icon-box p, .icon-box a {
    margin: 0;
    opacity: 1;
}
.icon-box i {
    font-size: 3rem;
}
.icon-box h4 {
    color: var(--accentColor);
    font-size: 1.3rem;
    font-weight: 100;
}
.icon-box:hover h4 {
    color: var(--abgTextColor);
}
.icon-box:not(:hover) p {
    color: var(--textColor);
}
.img-box {
    text-align: center;
    background-color: var(--accentColor);
    color: var(--abgTextColor);
    margin: 2rem 0;
    padding: 0;
    box-shadow: 0 0 18px 2px rgba(255, 255, 255, .2);
    transition: 0.3s;
}
.img-box:hover {
    box-shadow: none;
}
.img-box img {
    width: 100%;
    object-fit: cover;
}
.img-box.portrait img {
    aspect-ratio: 9 / 11;
}
.img-box.landscape img {
    aspect-ratio: 16 / 9;
}
.chess {
    margin: 3rem 0;
}
.chess img {
    width: 100%;
}
.bg-alt .icon-list {
    padding: 1.5rem;
}
.icon-list li {
    list-style-type: none;
    text-align: center;
    font-weight: 600;
}
.icon-list li i {
    display: block;
    text-align: center;
    font-size: 4rem;
    color: var(--accentColor);
    margin-bottom: 0.5rem;
}
.gallery {
    margin: 3rem 0;
}
.gallery a {
    background-color: var(--hColor);
    display: flex;
}
.gallery img {
    opacity: 0.85;
    width: 100%;
    transition: 0.3s;
}
.gallery img:hover {
    opacity: 1;
}
.lightroom {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100dvw;
    height: 100dvh;
    z-index: 999;
    display: grid;
    grid-template-rows: min-content auto;    
    align-items: center;
}
.player {
    display: grid;
    grid-template-columns: min-content auto min-content;
    justify-self: center;
    align-self: center;
    align-items: center;
    height: 70dvh;
    gap: 1rem;
    width: var(--boxedSize);
}
.close-lightroom, .prev-lightroom, .next-lightroom {
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.close-lightroom {
    justify-self: end;
    padding: 3rem 3rem 0 0;
}
.prev-lightroom {
    justify-self: end;
}
.frame {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-self: center;
    width: calc(var(--boxedSize) - 6rem);
    overflow: hidden;
}
.frame img {
    width: inherit;
    max-height: 70%;
    position: absolute;
    opacity: 0;
    transition: 0.3s;
}
.frame img.show {
    opacity: 1;
}
section.cta {
    background-color: var(--accentColor);
    color: var(--abgTextColor);
    padding: 2rem 0;
}
section.cta h2, section.cta h4 {
    color: inherit;
}
section.cta, section.map {
    margin-bottom: -2rem;
}
#contact-img {
    width: 100%;
    height: 500px;
    object-position: top;
}
form.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 460px;
    align-self: center;
}
form.contact-form input:not([type="checkbox"], [type="submit"]), form.contact-form textarea {
    width: calc(100% - 2rem);
    padding: 0.5rem 1rem;
    background-color: var(--bgColorAlt);
    border: 1px solid var(--textColor);
    font-size: 0.9rem;
    font-family: var(--font-family);
}
form #mail-response::before {
    content: '';
    font-family: FontAwesome;
    font-size: 1rem;
    margin-right: 0.2rem;
}
form #mail-response.success::before {
    content: "\f058";
    color: green;
}
form #mail-response.fail::before {
    content: "\f071";
    color: orange;
}
footer{
    width: 100%;
}
#copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--abgTextColor);
    background: linear-gradient(var(--accentColor),var(--hColor));
    padding: 1rem 0;
    width: 100%;
}
#copyright a {
    color: var(--abgTextColor);
}
#cookiescript_injected_wrapper {
    position: absolute;
}
div:has(>.grecaptcha-badge){
    position: absolute;
}
@media screen and (max-width: 1024px) {
    :root {
        --boxedSize: 100%;
    }
    .grid-3:not(.chess .icon-list) {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .boxed {
        width: auto;
    }
    .chess.grid-2{
        grid-template-columns: 1fr;
    }
    .img-box {
        width: 65%;
        justify-self: center;
    }
    .gallery {
        width: 65%;
        align-self: center;
    }
    section.cta {
        padding: 3rem;
        width: calc(100dvw - 6rem);
    }
}
@media screen and (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    #top-header, nav {
        flex-direction: column;
        gap: 1rem;
    }
    #top-header small:not(:last-of-type) {
        display: none;
    }
    nav > * {
        padding: 0 2rem;
    }
    nav i.fa {
        display: initial;
        font-size: 2rem;
        color: white;        
    }
    nav a {
        display: none;
    }
    header, main, section, .title, footer {
        width: var(--boxedSize) !important;
        max-width: 100dvw;
    }
    section:not(.full-width) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        max-width: calc(100dvw - 3rem) !important;
    }
    .white-box {
        padding: 1.5rem;
    }
    .policies .white-box {
        padding: 0;
        max-width: calc(100dvw - 3rem);
        word-wrap: break-word;
    }
    section.cta {
        text-align: center;
        padding: 1rem 0;
    }
    section.cta .btn {
        justify-self: center !important;
    }
    section.cta .boxed {
        padding: 1.5rem !important;
    }
    form {
        max-width: calc(100dvw - 3rem);
    }
    #contact-img {
        display: none;
    }
    section > .btn {
        width: calc(100% - 6rem);
    }
    .btn:not(.cta .btn) {
        width: 100%;
        margin: 0 auto;
        display: block;
        max-width: calc(100% - 3rem);
    }
    #copyright {
        padding: 1rem;
        width: auto;
        width: -webkit-fill-available;
    }
    #table-cookies {
        max-width: calc(100dvw - 3rem);
    }
    #table-cookies tr {
        display: flex;
        flex-direction: column;
    }
}
    
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
        #intro video{
            transform-origin: top;
            animation: zoomIn-fadeOut linear;
            animation-timeline: scroll();
        }
        .cta>div{
            animation: growSides linear;
            animation-timeline: scroll();
            animation-range-start: entry;
        }
    }
    @supports (animation-timeline: view()) {
        .img-box, .gallery>a, form{
            animation: fadeIn linear;
            animation-timeline: view();
            animation-range-start: entry;
            animation-range-end: 50dvh;
        }
        .icon-box{
            animation: fadeOut linear;
            animation-timeline: view();
            animation-range-start: exit;
        }
        .icon-list>li{
            animation: growUp linear;
            animation-timeline: view();
            animation-range-start: entry;
            animation-range-end: 10dvh;
        }
        .chess>div, .chess>img{
            transform-origin: right;
            animation: growSides linear;
            animation-timeline: view();
            animation-range-start: entry;
            animation-range-end: contain -100px;
        }
        .chess>img{
            transform-origin: left;
        }
        #contact-img{
            animation: slideUp linear forwards;
            animation-timeline: view();
            animation-range-start: entry;
            animation-range-end: 50dvh;
        }
    }
    @keyframes zoomIn-fadeOut {
        from {
            scale: 1;
            opacity: 1;
        }
        to {
            opacity: 0;
            scale: 3;
        }
    }
    @keyframes fadeIn {
        from {
            scale: .8;
            opacity: 0;
        }
        to {
            scale: 1;
            opacity: 1;
        }
    }
    @keyframes fadeOut {
        from {
            scale: 1;
            opacity: 1;
        }
        to {
            scale: .8;
            opacity: 0;
        }
    }
    @keyframes growSides {
        from {
            scale: .1 1;
            opacity: 0;
        }
        to {
            scale: 1 1;
            opacity: 1;
        }
    }
    @keyframes growUp {
        from {
            scale: .5;
            opacity: 0;
        }
        to {
            scale: 1;
            opacity: 1;
        }
    }
    @keyframes slideUp {
        from {
            scale: .5;
            opacity: 0;
        }
        to {
            scale: 1;
            opacity: 1;
        }
    }
}