:root {
    color-scheme: dark;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #292929;
}

/* HEADER */
header {
    display: grid;
    grid-template-columns: max-content max-content auto;
    align-items: center;
    background-color: #1b1b1b;
    border-top: 3px solid #ffa31a;
    padding: .5rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 3rem;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 99;
}

header div {
    margin: 0 .5rem;
}

header .brand {
    font-size: .9rem;
    text-align: start;
    margin-left: .5rem;
}

header .brand a {
    text-decoration: none;
    color: #808080;
}

header span {
    color: #ffa31a;
    font-size: 1.1rem;
}

header .logo {
    text-align: center;
}

header img {
    max-height: 3rem;
    vertical-align: middle;
    float: left;
}

header .menu-icon {
    text-align: end;
    margin-right: .5rem;
}

.short-text {
    display: inline;
}

.full-text {
    display: none;
}

/* NAV MENU */
nav {
    background-color: #1b1b1b;
    position: fixed;
    bottom: 4rem;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 98;
    display: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    position: relative; /* Para el posicionamiento del submenú */
    margin: .5rem 0;
}

nav ul a {
    text-decoration: none;
    color: #808080;
    font-weight: bold;
    padding: .5rem 1rem .35rem .5rem;
    display: block;
}

/* Estilos para dropdown */
.dropdown > a::after {
    content: ' ▼';
    font-size: 0.6rem;
}

/* Submenú (oculto inicialmente) */
.submenu {
    display: none;
    background-color: #4466ab;
    padding: 0;
    list-style: none;
}

/* Mostrar submenú al hacer click en el elemento padre */
/* .dropdown:active .submenu,
.dropdown:hover .submenu {
    display: block;
} */

/* Elementos del submenú */
.submenu li {
    margin: 0;
}

.submenu a {
    padding: .5rem 1.5rem;
}

/* Main */
main {
    min-height: calc(100vh - 8rem);
    margin: 0 .4rem;
    font-family: "Titillium Web", sans-serif;
    font-weight: 500;
    font-style: normal;
}

h1 {
    text-transform: capitalize;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500 ;
    font-style: normal;
    font-size: 2rem;
}

h2 {
    text-transform: capitalize;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500 ;
    font-style: normal;
    font-size: 1.6;
}

h3, h4 {
    text-transform: capitalize;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400 ;
    font-style: normal;
    font-size: 1.45rem;
}

p {
    font-size: 1.3rem;
}

ul, ol {
    font-size: 1.2rem;
}

textarea {
    resize: none;
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    padding: 12px 20px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #1b1b1b;
    field-sizing: content;
}

select {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 4px;
    background-color: #1b1b1b;
}

label {
    font-size: 1.5rem;
}

.button {
    display: inline-block;
    border-radius: 4px;
    background-color: #ffa31a;
    border: none;
    color: #292929;
    text-align: center;
    font-size: 1.3rem;
    padding: 1.1rem;
    width: 10rem;
    transition: all 0.5s;
    cursor: pointer;
    margin: .5rem;
}
  
.button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}
  
.button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}
  
.button:hover span {
    padding-right: 1.3rem;
}
  
.button:hover span:after {
    opacity: 1;
    right: 0;
}

.download {
    background-color: #808080;
    color: #292929;
    width: 15rem;
}

input[type=file] {
    width: 100%;
  max-width: 100%;
  color: #ffffff;
  border-radius: 4px;
  background: #1b1b1b;
}

input[type=file]::file-selector-button {
    display: inline-block;
    border-radius: 4px;
    background-color: #ffa31a;
    border: none;
    color: #292929;
    text-align: center;
    font-size: 1rem;
    padding: .5rem;
    width: 8rem;
    transition: all 0.5s;
    cursor: pointer;
    margin: .5rem;
}

/* FOOTER */
footer {
    background-color: #1b1b1b;
    color: #ffa31a;
    text-align: center;
    padding: 1rem 1rem 5rem 1rem;
    margin-top: 1rem;
    border-top: 3px solid #ffa31a;
}

footer .pie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer .pie .copy, .footer-list {
    margin: auto;
    color: #808080;
}

footer .pie .footer-list ul {
    text-align: start;
    padding: 0;
    list-style: none;
}

footer .pie .footer-list ul a {
    color: #808080;
    text-decoration: none;
}

/* AVISO COOKIES */

.cookie-notice {
    display: none;
    background: #1b1b1b;
    width: 100%;
    line-height: 150%;
    border-radius: 10px;
    position: fixed;
    bottom: 20px;
    z-index: 100;
    box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cookie-notice .cookie-img {
    display: none;
}

.cookie-notice .cookie-title {
    margin-bottom: 15px;
    font-family: 'Work Sans', sans-serif;
    color: #1b1b1b;
}

.cookie-notice .cookies-p {
    margin-bottom: 15px;
    font-family: 'Work Sans', sans-serif;
}

.cookie-notice .btn-cookies {
    width: 100%;
    background: #ffa31a;
    border: none;
    color: #1b1b1b;
    font-family: 'Work Sans', sans-serif;
    text-align: center;
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease all;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.cookie-notice .btn-cookies:hover {
    background: #1b1b1b;
    color: #ffa31a
}

.cookie-notice .enlace {
    color: #ffa31a;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
}

.cookie-notice .enlace:hover {
    text-decoration: underline;
}

/* ||||||||| DESKTOP ||||||||| */
@media screen and (min-width: 809px) {

    /* Main */
    main {
        max-width: 900px;
        margin: 0 auto;
    }

    /* HEADER */
    header {
        position: static;
        grid-template-columns: 25% auto;
        padding-bottom: 1rem;
        border-top: none;
    }

    header img {
        float: right;
        max-height: 3.5rem;
        transition: scale 400ms;
        transition-duration: 0.5s;
    }

    header img:hover {
        scale: 1.1;
    }

    header .menu-icon {
        display: none;
    }

    .short-text {
        display: none;
    }
    
    .full-text {
        display: inline;
        font-size: 1.5rem;
    }

    /* NAV MENU */
    nav {
        background-color: #1b1b1b;
        display: block;
        position: static;
        width: 100%;
        height: 2.5rem;
        text-align: center;
        border-bottom: 3px solid #ffa31a;
        border-top: none;
    }

    nav ul {
        display: flex;
        justify-content: center;
    }

    nav ul li {
        margin: auto .5rem;
        padding: 0;
        display: inline-block;
    }

    .dropdown > a::after {
        content: '';
    }

    nav ul li a:hover {
        color: #ffa31a;
        background-color: #1b1b1b;
    }

    /* Ajustes del submenú para escritorio */
    .submenu {
        display: none;
        position: absolute;
        background-color: #1b1b1b;
        top: 100%; /* Justo debajo del elemento padre */
        left: 0;
        min-width: 150px;
        z-index: 99;
    }

    .submenu li {
        display: block;
    }

    /* Mostrar submenú al hacer hover en escritorio */
    .dropdown:hover .submenu {
        display: block;
    }

    /* AVISO COOKIES */
    .cookie-notice {
        padding: 20px;
        width: calc(100% - 40px);
        max-width: 300px;
        left: 20px;
        
    }

    .cookie-notice .cookie-img {
        display: block;
    }
}