/* --------------UNIVERSAL STYLES-------------- */

@font-face {
  font-family: 'Satoshi-Variable';
  src: url('./fonts/Satoshi-Variable.woff2') format('woff2'),
       url('./fonts/Satoshi-Variable.woff') format('woff'),
       url('./fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-display:block;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi-VariableItalic';
  src: url('./fonts/Satoshi-VariableItalic.woff2') format('woff2'),
       url('./fonts/Satoshi-VariableItalic.woff') format('woff'),
       url('./fonts/Satoshi-VariableItalic.ttf') format('truetype');
  font-weight: 300 900;
  font-display: block;
  font-style: italic;
}

:root {
    --secondary-color: #ffead0;
    --primary-color: #087e8b; /* ff4242 rojo 426a5a 629460  verde */
    --terciary-color: #2d3142;  
    --text-color: var(--primary-color);
    --secondary-text-color: #211f18;
    --hover-text-color: rgb(99, 33, 33);

    --gap-width: min(15px,2vw);
    --gap-width-list: min(15px,3vw);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    /* outline: solid red; */
}

a {
    color: var(--text-color);
    text-decoration: none;
}

    nav > ul > li > a:hover, footer > p > a:hover  {
        color: var(--hover-text-color);
    }

li, ul {
    list-style-type: none;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display:block
}

/* --------------TEXT STYLES-------------- */

h1 {
    font-weight: 900;
    font-size: min(20vw, 6rem);
    line-height: 1;
    margin-bottom: 20px; 
}

h2 {
    font-weight: 200;
    font-size: min(12.5vw, 3rem);
    line-height: min(14.583vw, 3.5rem);
}

h3 {
    margin-bottom:10px;
}

    .sectionTitle {
        margin-bottom: 20px;
    }

p {
    font-weight: 350;
}

/* --------------BASIC LAYOUT-------------- */

html {
    background-color: var(--secondary-color);
    padding: calc(var(--gap-width)*2);
}

body {
    color: var(--text-color);
    font-family: "Satoshi-Variable";
    font-size: 1.5rem;
    text-align: center;
}

.container {
    display:flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    font-size: 1.2rem; 
    display:flex;
    justify-content: space-between;
}

    nav > ul {
        display: flex;
    }

    nav > ul > li > a {
        padding: 10px 25px 10px 25px;
    }

    @media (max-width: 900px) {
        nav {
            flex-direction: column;
            align-items: center;
            gap:30px;
            font-size: min(4.7vw,1.6rem);
        }

        #socials {
            font-size: min(3.5vw,1rem);
            opacity: 0.5;
        }

        nav > ul > li > a {
        padding: 10px 4vw 10px 4vw;
        }
    }

header {
    margin:60px 0px 80px 0px;
}

.content {
    max-width: 900px;
    width: 100%;
    margin: auto;
}

footer {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content:center;
}

    footer > p {
        font-size: 1.2rem;
        line-height: 2rem;
    }

/* --------------CONTENT STYLES-------------- */


.row {
    display: flex;
    align-items: center;
    gap: var(--gap-width);
    margin-bottom: var(--gap-width);
}
    @media (max-width:500px) {
        .row {
            flex-wrap: wrap;
        }
    }

.imageContent {
    height: 100%;
    flex: 1 1 100%;
}

.presentation {
    margin-bottom: 100px;
}
    .presentation > p {
        margin-bottom: 10px;
    }

.list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-width);
    margin-bottom: var(--gap-width);
}

.listContent {
    width:200px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    flex: auto;
    padding: calc(var(--gap-width-list)/2);
    font-size: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--gap-width);
}

    .imageContainer {
        height: min(300px, 40vw);
    }
    
    .imageContainer > img {
        object-position:top;
    }

    .textContainer  {
        height: fit-content;
        margin-bottom: 6px;
    }

    .textContainer >h3 {
        margin: 0;
    }

.button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: var(--gap-width);
}

/* --------------NEAT-GALLERY STYLES-------------- */

.neat-gallery {
    list-style: none;
    margin: auto;
    padding: 0;
}

.neat-gallery-layout-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-width);
}

.neat-gallery-layout-grid > li {
    flex:1 1 auto;
    height: 250px;
    max-width: 800px;
    width: fit-content;
    /* padding: calc(var(--gap-width)/2); */
    /* background-color: var(--primary-color); */
    border-radius: 2.5px;
}

@media (max-width:700px) {
    .neat-gallery-layout-grid > li {
        height: 50vw;
         
    }
}

.neat-gallery-img {
    width: 100%;
    height : 100%;
    object-fit: cover;
    object-position:center;
    vertical-align: bottom
}

.gallery {
    max-width: 90vw;
    margin: auto;
    margin-top: 0;
    /* background-color: var(--primary-color);
    padding: var(--gap-width); */
    margin-bottom: var(--gap-width);
    height: fit-content;
}

    .gallery > ul {
        margin-bottom: var(--gap-width);
    }

/* --------------ANIMATION-------------- */
@view-transition {
  navigation:auto;
}

.neat-gallery-layout-grid > li, .listContent, .button {
    transition: all 0.05s ease-in-out;
}

.neat-gallery-layout-grid > li:hover, .listContent:hover, .button:hover {
    transform: scale(1.05);
}

@media (pointer: coarse) {
    .neat-gallery-layout-grid > li, a.contentModule {
        transition: all 0.05s ease-in-out;
    }

    .neat-gallery-layout-grid > li:hover, a.contentModule:hover {
        transform: scale(1);
    }
}
