/* ------------------- */
/* Custom Fonts        */
/* ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

/* ------------------- */
/* Custom properties   */
/* ------------------- */
:root {
    /* colors */
    --clr-dark: 230 35% 7%;
    --clr-light: 55 100% 19%;
    --clr-white: 0 0% 100%;
    
    /* font-sizes */
    --fs-900: 9.375rem;
    --fs-850: 6.50rem;
    --fs-800: 6.25rem;
    --fs-700: 3.5rem;
    --fs-650: 2.6rem;
    --fs-600: 2rem;
    --fs-500: 1.75rem;
    --fs-400: 1.125rem;
    --fs-300: 1rem;
    --fs-200: 0.875rem;
    
    /* font-families */
    --ff-serif: "Noto Serif", serif;
    --ff-sans-cond: "Barlow Condensed", sans-serif;
    --ff-sans-normal: "Barlow", sans-serif;
}

/* ------------------- */
/* Reset               */
/* ------------------- */
/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-weight: 400;
}




/* set up the body */
body {
    /* border: 11px solid red; */
    font-family: var(--ff-sans-normal);
    font-size: var(--fs-300);
    color: hsl(var(--clr-white));
    background-color: hsl(var(--clr-dark));
    line-height: 1.5;
    min-height: 100vh;
    display: grid;
    grid-template-rows: min-content 1fr;
}

.video-container, 
.background-image-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.video-container video {
    /* Make video to at least 100% wide and tall */
    min-width: 100%; 
    min-height: 100%; 
    /* Setting width & height to auto prevents the browser from stretching or squishing the video */
    width: auto;
    height: auto;
    /* Center the video */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    /* z-index: -1;  */
}

.background-image-container img {
    /* object-fit:contain; */
    min-width: 100%; 
    min-height: 100%; 
    width: auto;
    height: auto;
}

.main-container {
    /* border: 4px solid blue; */
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    justify-content: space-between;
    /* display: grid;
    grid-template-rows: 1fr min-content;
    gap: 1rem;
    padding: 1rem; */
}
.main-container .instrucciones {
    overflow-y: auto !important;
    height: fit-content;
    display: flex;
}
.instrucciones > img {
    width: fit-content;
    height: auto;
    margin: 0 auto;
}

.instrucciones {
    background: #dddddd !important;
    overflow: scroll;
}
.primary-header {
    /* border: 1px solid yellow; */
    padding: 1rem 0 0 1rem;
    margin: 0;
    justify-content: space-between;
    /* flex-direction: row-reverse; */
    /* align-items: center; */
}

.logo {
    border-radius: 50%;
    width: 85px;
    height: 85px;
    background-color: hsl(var(--clr-dark)/0.5);
}
.logo img {
    width: 85%;
    height: auto;
}

.logo > a {
    padding: 15px;
    align-items: center;
    display: flex;
    justify-content: center;
    cursor: default;
    /* outline: 1px solid red; */
}
.logo > a.active {
    cursor: pointer;
}
    
.primary-navigation {
    /* border: 5px solid red; */
    --underline-gap: 1.5rem;
    list-style: none;
    padding: 0 2rem;
    margin: 0;
    background: hsl( var(--clr-dark) / 0.95);
}

.primary-navigation[data-visible="true"] {
    transform: translateX(0);
}
.primary-navigation a {
    display: inline-block;
    width: 100%;
}
.mobile-nav-toggle {
    display: none;
    background: hsl(var(--clr-dark)/.4);
    border-radius: 50%;
    width: 50px;
    aspect-ratio: 1;
}

.app-mockup {
    position: absolute;
    width: 50%;
    height: auto;
    left: 32px;
    animation: mockup-animation 1s ease-in-out forwards;
    bottom: -100%;
}

@keyframes mockup-animation {
    0% { bottom: -100%; }
    80% { bottom: 0; }
    100% { bottom: -10%; }
}


@supports (backdrop-filter: blur(1rem)) {
    .primary-navigation{
        background: hsl(var(--clr-dark)/.5);
        backdrop-filter: blur(3px);
    }
    .logo, .mobile-nav-toggle {
        backdrop-filter: blur(5px);
    }
    .logo {
        background: hsl(var(--clr-dark)/.1);
    }
    .container-entornos {
        /* backdrop-filter: blur(2px); */
    }
}

.container-entornos {
    /* border: 1px solid blue; */
    position: relative;
    align-items: center;
    flex-direction: column;
    margin-top: 4rem;
    padding-top: 2rem;
    /* justify-content: center; */
    width: 100%;
    background-color: hsl(var(--clr-dark)/0.4);
    /* backdrop-filter: blur(.25rem); */
}
.container-entornos .tab-list {
    /* outline: 1px solid red; */
    justify-content: center;
    padding: 0 1rem;
}
.container-entornos .tab-list button{
    font-weight: 100;
    /* font-size: 14px; */
}
.container-entornos h1 {
    /* outline: 1px solid red; */
    font-size: var(--fs-400);
    /* font-weight: 100; */
    /* position: absolute; */
    /* top: -3.25rem; */
    /* left: 50%; */
    /* transform: translateX(-45%); */
    /* margin-left: 10%; */
    text-align: center;
    margin-top: -.5rem;
}
.container-entornos h2 {
    /* outline: 1px solid red; */
    /* font-family: var(--ff-sans-normal); */
    font-size: 3rem;
    line-height: 1.1;
    text-align: center;
    margin-top: 3rem;
    /* font-weight: 100; */
    /* border-bottom: .2rem solid hsl( var(--clr-white) / 0.5 ); */
}
.container-entornos p {
    margin-top: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    width: 100%;
    background-color: hsl(var(--clr-dark)/0.3);
}
.container-entornos a {
    font-weight: 400;
    color: white;
    text-decoration: none;
}

.dot-indicators {
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translate(-50%, -20px);
}
.dot-indicators > * {
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    padding: 1.25rem;
    background-color: hsl( var(--clr-white) / .25);
}
.dot-indicators > *:hover,
.dot-indicators > *:focus { 
    background-color: hsl( var(--clr-white) / .5);
}

.dot-indicators > [aria-selected="true"] {
    /* background-color: hsl( var(--clr-white) / 1); */
    /* background-color: transparent; */
    outline: 5px solid hsl( var(--clr-white) / .7);;
    position: relative;
    overflow: hidden;
}

.dot-indicators > [aria-selected="true"]::before {
    content: '';
    /* border: 5px solid #ffffff; */
    position: absolute;
    top: 100%;
    left: 0;
    width: 111%;
    height: 111%;
    background-color: hsl( var(--clr-white) / .7);
    /* background-color: #ffffff; */
    animation: fillDown 7s ease-in-out forwards;
}
@keyframes fillDown {
    to {
        top: 0%;
    }
}

/* ------------------- */
/* Queries             */
/* ------------------- */
@media (max-width: 35rem){
    .video-container video {
        left: 0;
    }
    .estacion.video-container video {
        left: 500px;
    }
    .entornos .container-entornos h2 {
        font-size: 32px;
    }
}


@media (max-width: 55rem){
    .primary-navigation {
        --underline-gap: .5rem;
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%;
        list-style: none;
        padding: min(20rem, 15vh) 2rem;
        margin: 0;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 500ms ease-in-out;
    }
    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }

    .primary-navigation.underline-indicators > .active {
        /* border: solid red; */
    }
    .mobile-nav-toggle {
        display: flex;
        position: absolute;
        z-index: 2000;
        right: 1rem;
        top: 2rem;
        background-image: url(../img/icon_hamburger.svg);
        background-repeat: no-repeat;
        background-position: center;
        border: 0;
        background-color: hsl(var(--clr-dark)/.55);
    }
    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url(../img/icon_close.svg);
    }
    .background-image-container img {
        transform: translate(-25%,-10%);
    }
}

/* fix monitores grandes con poca resolucion */
@media (max-height: 768px) {
    .container-entornos h2 {
        font-size: 48px !important;
        margin-top: 12px !important;
    }
    .container-entornos p {
        padding: 2.5rem 8rem !important;
    }
}

/* desktop */
@media (min-width: 75rem){
    .video-container video {
        left: 50%;
        transform: translate(-50%,-50%);
    }
    .container-entornos {
        /* border: 1px solid blue; */
        margin-left: 20%;
        border-top-left-radius: 180px;
        width: auto;
    }
    .container-entornos .tab-list button{
        /* outline: 1px solid red; */
        font-family: var(--ff-sans-cond);
        font-weight: 100;
        font-size: var(--fs-400);
    }
    .container-entornos h1 {
        /* outline: 1px solid red; */
        font-size: var(--fs-500);
        /* position: absolute; */
        /* top: -3rem; */
        /* left: 15%; */
        /* transform: translateX(0); */
    }
    .container-entornos h2 {
        font-size: var(--fs-800);
    }
    .container-entornos p {
        font-size: var(--fs-400);
        padding: 4rem 8rem;
    }

    .app-mockup {
        width: 20%;
        /* height: auto; */
    }

    .dot-indicators {
        bottom: 16px;
    }
    

    .padding-left{
        padding-left: 350px !important;
    }

    .margin-top{
        margin-top: 100px !important;
    }
}


.primary-navigation a {
    text-decoration: none;
}

.underline-indicators > * {
    /* outline: 1px solid red; */
    cursor: pointer;
    padding: var(--underline-gap, 1rem) 0;
    border: 0;
    border-bottom: .15rem solid hsl( var(--clr-white) / 0 );
}
.underline-indicators > *:hover,
.underline-indicators > *:focus {
    border-color: hsl( var(--clr-white) / .5);
}

.underline-indicators > .active,
.underline-indicators > [aria-selected="true"] {
    color: hsl( var(--clr-white) / 1);
    border-color: hsl( var(--clr-white) / .8); 
    cursor: default;
}

.tab-list {
    --gap: 1.5rem;
}

.txt-agropecuaria {
    margin: -1rem 0;
    font-size: var(--fs-650);
}

.txt-welcome {
    /* margin-left: -28rem; */
    font-size: var(--fs-400);
}

.home-hero-txt {
    /* outline: 1px solid green; */
    background-color: hsl(var(--clr-dark)/0.5);
    width: 100%;
    color: hsl(var(--clr-white)/0.9);
    margin-top: 7rem;
    padding: .5rem 0;
}

.button-container {
    /* outline: 1px solid red; */
    position: absolute;
    /* right: 5rem; */
    bottom: 120px;
}

.large-button {    
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    justify-content: center;
    padding: 0 2em;
    border-radius: 50%;
    text-decoration: none;
    width: 100px;
    height: 125px;
    background-color: hsl(var(--clr-dark)/0.6);
}

.large-button::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: hsl( var(--clr-white) / .1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 500ms linear, transform 750ms ease-in-out;
}
 
.large-button:hover::after,
.large-button:focus::after {
    opacity: 1;
    transform: scale(1.5);
}

.large-button img {
    width: 100px;
    height: auto;
}

.social-media-icons{
    margin: 0 auto 56px auto;
    /* border: 1px solid red; */
}
.social-media-icons ul {
    padding: 0;
    list-style: none;
    /* border: 1px solid yellow; */
    /* display: inline-block; */
    /* margin: 0 1rem; */
}
.social-media-icons ul img{
    opacity: .5;
    width: 35px;
    height: auto;
}


.social-media-icons a{
    text-decoration: none;
}


 /* ------------------- */
/* Utility classes     */
/* ------------------- */
.flex {
    display: flex;
    gap: var(--gap, 1rem);
}
.grid {
    display: grid;
    gap: var(--gap, 1rem);
}
.flex-container {
    /* border: 2px solid yellowgreen; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flex-tall {
    flex: 1;
}

.block {
    display: block;
}

.sr-only {
    position: absolute; 
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px; 
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* added line */
    border: 0;
  }

/* colors */
.bg-dark { background-color: hsl( var(--clr-dark) );}
.bg-accent { background-color: hsl( var(--clr-light) );}
.bg-white { background-color: hsl( var(--clr-white) );}
.bg-transparent { background-color: transparent;}


.text-dark { color: hsl( var(--clr-dark) );}
.text-accent { color: hsl( var(--clr-light) );}
.text-white { color: hsl( var(--clr-white) );}

/* typography */
.ff-serif { font-family: var(--ff-serif); } 
.ff-sans-cond { font-family: var(--ff-sans-cond); } 
.ff-sans-cond-thin { font-weight: 100; } 
.ff-sans-normal { font-family: var(--ff-sans-normal); } 

.letter-spacing-1 { letter-spacing: 4.75px; }
.letter-spacing-2 { letter-spacing: 2.7px; }
.letter-spacing-3 { letter-spacing: 2.35px; }

.uppercase { text-transform: uppercase; }

.fs-900 { font-size: var(--fs-900); }
.fs-850 { font-size: var(--fs-850); }
.fs-800 { font-size: var(--fs-800); }
.fs-700 { font-size: var(--fs-700); }
.fs-600 { font-size: var(--fs-600); }
.fs-500 { font-size: var(--fs-500); }
.fs-400 { font-size: var(--fs-400); }
.fs-300 { font-size: var(--fs-300); }
.fs-200 { font-size: var(--fs-200); }

.fs-900,
.fs-850,
.fs-800,
.fs-700,
.fs-600 {
    line-height: 1.1;
}

.txt-center { text-align: center; }
.txt-left { text-align: left; }
.txt-right { text-align: right; }