/* Variables */
:root {

    --max-width: 1100px;
    /* max width for content */

    /* light theme */
    --theme-light-font-color: rgb(55, 55, 55);
    --theme-light-font-color_: 55, 55, 55;
    --theme-light-acent-color: rgb(23, 93, 173);
    --theme-light-acent-color_: 23, 93, 173;
    --theme-light-borders: rgb(115, 115, 115);

}

/* -- Text style -- */
html {
    font-size: 16px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    min-width: 360px;
}

body {
    margin: 0;
    color: var(--theme-light-font-color);
}

a {
    text-decoration: 1px underline dotted;
}

a,
a:visited {
    color: var(--theme-light-font-color);
}

a:hover {
    color: var(--theme-light-acent-color);
}

.blur {
    filter: blur(3px);
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.underline {
    text-decoration: 1px underline;
}

.no-margin {
    margin: 0 !important;
}

.opacity_hide {
    opacity: 0 !important;
}

.rounded {
    border-radius: 50%;
}

.brand {
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brand span {
    color: #000;
}

/* -- Buttons and inputs -- */
button {
    background-color: rgba(var(--theme-light-acent-color_), 0.7);
    border: 1px solid rgba(var(--theme-light-acent-color_), 0.72);
    padding: 5px 10px;
    border-radius: 0.45em;
    font-size: 1em;
    color: white;
}

button.light,
input.light,
a.light {
    background-color: rgba(var(--theme-light-acent-color_), 0.25);
    border: 1px solid rgba(var(--theme-light-acent-color_), 0.27);
    color: var(--theme-light-acent-color);
}

button.clear,
input.clear {
    background-color: rgba(var(--theme-light-acent-color_), 0.05);
    border: 1px solid rgba(var(--theme-light-acent-color_), 0.15);
    color: var(--theme-light-acent-color);
}

button.rounded,
input.rounded,
a.rounded {
    border-radius: 500px;
}

input.light,
input.clear {
    border: 2px solid transparent;
    border-radius: 0.45em;
    font-size: 1em;
    padding: 5px 10px;
}

button:hover,
input.light:hover,
input.clear:hover {
    color: white;
    background-color: rgba(var(--theme-light-acent-color_), 1);
    cursor: pointer;
}


/* -- Predefined margins -- */

/* for element */
.margin-top-0px { margin-top: 0px; }
.margin-top-5px { margin-top: 5px; }
.margin-top-10px { margin-top: 10px; }
.margin-top-15px { margin-top: 15px; }
.margin-top-20px { margin-top: 20px; }
.margin-top-25px { margin-top: 25px; }
.margin-top-30px { margin-top: 30px; }
.margin-top-40px { margin-top: 40px; }
.margin-top-50px { margin-top: 50px; }
.margin-top-60px { margin-top: 60px; }

.margin-left-0px { margin-left: 0px; }
.margin-left-5px { margin-left: 5px; }
.margin-left-10px { margin-left: 10px; }
.margin-left-15px { margin-left: 15px; }
.margin-left-20px { margin-left: 20px; }
.margin-left-25px { margin-left: 25px; }
.margin-left-30px { margin-left: 30px; }

.margin-bottom-0px { margin-bottom: 0px; }
.margin-bottom-5px { margin-bottom: 5px; }
.margin-bottom-10px { margin-bottom: 10px; }
.margin-bottom-15px { margin-bottom: 15px; }
.margin-bottom-20px { margin-bottom: 20px; }
.margin-bottom-25px { margin-bottom: 25px; }
.margin-bottom-30px { margin-bottom: 30px; }

.margin-right-0px { margin-right: 0px; }
.margin-right-5px { margin-right: 5px; }
.margin-right-10px { margin-right: 10px; }
.margin-right-15px { margin-right: 15px; }
.margin-right-20px { margin-right: 20px; }
.margin-right-25px { margin-right: 25px; }
.margin-right-30px { margin-right: 30px; }


/* for inside elements */
.margin-betwen-10px>* { margin-right: 10px; }
.margin-betwen-10px>*:last-child { margin-right: 0px; }

.margin-betwen-20px>* { margin-right: 20px; }
.margin-betwen-20px>*:last-child { margin-right: 0px; }


/* -- Overlay -- */
#overlay,
.overlay {
    display: none;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    transition: all 0.3s ease-in-out;
}

#overlay.show,
.overlay.show {
    display: block;
    opacity: 1;
}

/* -- Header -- */
header {
    z-index: 1;
    position: relative;
    width: 100%;
    width: fit-content;
    width: -webkit-fill-available;
    max-width: -moz-available;
}

header .header_top,
header .search_and_user {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

header .header_top h1 {
    width: -webkit-fill-available;
    margin: 0;
    margin-top: 8px;
    font-size: 1.2em;
    color: rgba(var(--theme-light-font-color_), 0.8);
    transition: all 0.5s ease-in-out;
}

header .header_top div:last-child {
    min-width: 125px;
}

header .search_and_user {
    right: 0;
    z-index: 1;
}

header .header_top .logo,
header .search_and_user .logo {
    padding: 6px 20px 0 20px;
}

header .search_and_user .logo {
    opacity: 0;
}

header .search_and_user {
    position: absolute;
}

header .search_and_user.input_focus {
    width: -webkit-fill-available;
}

/* -- Searchbox -- */
header #searchbox {
    margin: 0 20px;
}

header #searchbox input {
    color: transparent;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    padding: 6px;
    outline: 2px solid transparent;
    border: 2px solid rgba(var(--theme-light-font-color_), 0.5);
    border-radius: 28px;
    font-size: 1.2rem;
    background-image: url('../img/searchicon_light.png');
    background-position: 6px 6px;
    background-repeat: no-repeat;
    transition: all 0.5s ease-in-out;
    text-align: center;
}

header #searchbox input:focus,
header #searchbox input:focus-visible {
    color: rgb(var(--theme-light-font-color_));
    border-color: rgba(var(--theme-light-acent-color_), 0.75);
    outline-color: rgba(var(--theme-light-acent-color_), 0.75);
    filter: drop-shadow(0px 0px 2px black);
    width: 55vw;
    padding-left: 34px;
    padding-right: 3px;
    margin-right: 0;
    height: 38px;
}

/* -- Userbox -- */
header #userbox {
    margin-right: 25px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid var(--theme-light-borders);
    outline: 2px solid transparent;
    border-radius: 28px;
    background-color: white;
    background-image: url('../img/user_light.png');
    background-position: 0px 6px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.4s;
}

header #userbox.active {
    border-color: rgba(var(--theme-light-acent-color_), 0.75);
    outline-color: rgba(var(--theme-light-acent-color_), 0.75);
    filter: drop-shadow(0px 0px 2px black);
}

header #userbox>div {
    opacity: 0;
    position: absolute;
    top: -500px;
    right: 0;
    min-width: 210px;
    width: 50vw;
    max-width: 300px;
    padding: 25px;
    cursor: auto;
    transition: opacity 0.2s cubic-bezier(0.21, 0.72, 0.16, 1.02), top 0.4s cubic-bezier(0.02, 1, 0.75, 0.98);
    background-color: #eee;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

header #userbox.active>div {
    display: block;
    top: 65px;
    opacity: 1;
}

header #userbox fieldset {
    margin-bottom: 17px;
}

header #userbox fieldset,
header #userbox fieldset input[type=text],
header #userbox fieldset input[type=password] {
    border: 1px solid rgba(var(--theme-light-acent-color_), 0.45);
    border-radius: 5px;
}

header #userbox fieldset input[type=text],
header #userbox fieldset input[type=password] {
    padding: 5px;
}

header #userbox fieldset legend {
    color: rgba(var(--theme-light-acent-color_), 0.65);
}

header #userbox fieldset>form>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 15px;
}

header #userbox fieldset>form>div:last-child {
    margin-bottom: 5px;
}

header #userbox fieldset>form>div label {
    width: 35%;
}

header #userbox fieldset>form>div input {
    width: 60%;
}

header #userbox fieldset>form>div input[type=submit] {
    width: 45%;
}

/* -- Navigation -- */
section.categories nav ul {
    padding: 0px;
}

section.categories nav ul li {
    display: inline-block;
    margin: 10px 5px;
}

section.categories nav ul li a {
    text-decoration: none;
    padding: 10px;
    border-radius: 2px;
    border-bottom: 3px solid transparent;
    transition: all 0.4s;
}

section.categories nav ul li:first-child {
    margin-left: 0;
}

section.categories nav ul li a:hover,
section.categories nav ul li a.active {
    border-bottom: 3px solid var(--theme-light-acent-color);
}


/* -- Footer -- */
main,
section.categories,
footer>div {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px 10px 20px;
}

footer {
    background-color: rgba(var(--theme-light-acent-color_), 0.15);
    padding-top: 20px;
}

footer>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

footer div>* {
    width: 100%;
}


/* Product gallery */
.product-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-gallery div {
    overflow: hidden;
    scroll-behavior: smooth;
    margin: 0 15px;
    border-radius: 10px;
}

.product-gallery div div,
.product-gallery div figure {
    display: table-cell;
    padding: 0 10px;
}

.product-gallery div div:first-child {
    padding-left: 2px;
}

.product-gallery div div:last-child {
    padding-right: 2px;
}

.product-gallery div div>img {
    border: 0px solid transparent;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
    cursor: pointer;
}

.product-gallery.landscape div div>img,
.product-gallery.portrait div div>img {
    width: 80vw;
}

.product-gallery div div:first-child>img,
.product-gallery div div:last-child>img {
    margin-right: 0px;
}

.product-gallery button,
#full-screen-image button {
    position: absolute;
    color: rgba(var(--theme-light-font-color_), 0.5);
    background-color: white;
    font-size: 1.5rem;
    line-height: 1.5em;
    border: 0px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
}

.product-gallery button.left,
#full-screen-image button.left {
    left: -10px;
    z-index: 5;
    transform: scaleX(-1);
}

.product-gallery button.right,
#full-screen-image button.right {
    right: -8px;
    z-index: 5;
}


/* -- Small detailed product for grid or table -- */

figure.app-small-detailed {
    position: relative;
    display: grid;
    grid-template-columns: max-content auto;
    margin: 0px;
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
}

figure.app-small-detailed.hover,
figure.app-small-detailed:hover,
.product-gallery figure.app-small-detailed:hover {
    background-color: #c0c0c0;
    cursor: pointer;
}

.product-gallery figure.app-small-detailed {
/*    background-color: #efefef; */
    border-radius: 20px;
    border-collapse: separate; 
    border-spacing: 10px;
}
.product-gallery figure.app-small-detailed:first-child {
}

figure.app-small-detailed>img {
    width: 64px;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
}
.product-gallery figure.app-small-detailed>img {
    width: 260px;
    margin-top: 10px;
}

.product-gallery figure.app-small-detailed .information img {
  width: 3vw !important;
  box-shadow:0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
}

.product-gallery figure.app-small-detailed .information {
  display: grid !important;
  grid-template-columns: max-content auto;
  margin: 10px 0px !important;
  gap: 20px;
}

figure.app-small-detailed figcaption p {
    margin: 0px;
}

figure.app-small-detailed figcaption h4 {
    margin: 0px;
    font-weight: 600;
    font-size: 1em;
}

figure.app-small-detailed figcaption h5 {
    margin: 0px;
    font-weight: 100;
    font-size: 1em;
    color: #3a3a3a;
}

figure.app-small-detailed figcaption p.punctuation span {
    vertical-align: text-bottom;
}

figure.app-small-detailed figcaption p i {
    font-size: 0.6rem;
    margin-left: 5px;
    opacity: 0.8;
}

figure.app-small-detailed .over {
    cursor: default;
    display: none;
    position:absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    border-radius: 8px;
    grid-template-columns: 50% 50%;
    align-items: stretch;
    justify-items: stretch;
}

figure.app-small-detailed:hover .over,
figure.app-small-detailed.hover .over {
    display: grid;
}

figure.app-small-detailed .over a {
    display: grid;
    align-items: center;
    justify-content: center;
    align-content: space-around;
    margin: 8px;
    padding: 10px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 5px;
    background-color: #555555cc;
}

figure.app-small-detailed .over a:hover {
    background-color: #222222cc;
}

figure.app-small-detailed .over a:first-child {
    margin-right: 4px;
}
figure.app-small-detailed .over a:last-child {
    margin-left: 4px;
}

figure.app-small-detailed .over a i {
    font-size: 1.2em;
}

figure.app-small-detailed .over a * {
    color: #eee;
    display: block;
}

/* -- Carousel app small app gallery */
.product_img {
    width: 15vw;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
  
  }
  

/* -- Overlay fullscreen -- */
#full-screen-image {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease-in-out;
}

#full-screen-image.show {
    opacity: 1;
}

#full-screen-image img {
    border: 0px solid transparent;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 60%), 0 1px 3px 1px rgba(60, 64, 67, 60%);
    margin: auto;
    z-index: 15;
    transition: all 0.25s ease-in-out;
}

#full-screen-image img.side {
    position: absolute;
    z-index: 14;
}

/* -- Sizes to flex -- */
.col-sm {
    width: 30%;
}

.col-md {
    width: 70%;
}

.col-mid {
    width: 50%;
}

.col-xl {
    width: 60%;
}

.col-x {
    width: 40%;
}


/* Grilla para mostrar apps */

.grid-list {
    display: grid;
    grid-template-columns: 100%;
    gap: 15px 5px;
}
  


/* Menú vertical */
nav.vertical ul {
    grid-area: links;
    margin: 0;
    padding: 0;
}

nav.vertical ul li {
    width: 100%;
}

nav.vertical ul li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
}

nav.vertical ul li:hover>a,
nav.vertical ul li.active>a {
    background-color: #999;
}
nav.vertical ul li:hover>a:hover,
nav.vertical ul li.active>a {
    color: var(--theme-light-acent-color);
}

nav.vertical ul li>ul>li a {
    padding-left: 20px;
}



/* -- Media queries -- */
@media screen and (min-width: 516px) {
    .product-gallery.landscape div div>img {
        width: 400px;
    }

    .product-gallery.portrait div div>img {
        width: 200px;
    }

    header .header_top h1 {
        font-size: 1.5em;
    }
}

@media screen and (min-width: 570px) {
    footer>div>* {
        width: 30%;
    }

    header .header_top h1 {
        font-size: 1.8em;
    }

    header #searchbox input:focus,
    header #searchbox input:focus-visible {
        margin-right: 15vw;
    }
}

@media screen and (min-width: 685px) {
    .grid-list {
        grid-template-columns: 50% 50%;
    }
}

@media screen and (min-width: 1010px) {
    .grid-list {
        grid-template-columns: 33% 33% 33%;
    }
}

@media screen and (min-width: 1250px) {
    .grid-list {
        grid-template-columns: 25% 25% 25% 25%;
    }
}
