:root {
    --primary-color: #ddad3e; 
    --secondary-color: #2ecc71; 
    --text-color: #f7f7f7; 
    /* --background-color: #3b3b3b; */
    --background-color: #212121;
}

html {
    font-size: 10px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

body {
    font-size: 1.6rem;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 80%; 
    margin: 0 auto;
    overflow-x: hidden;
}

.hamburger {
    display: none;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}
#nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}



/* Estilos de navegación */
.layout__nav {
    width: 100%;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background-color: rgba(59, 59, 59, 1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    
    
}

.layout__nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: -13rem;
    font-size: 1.4rem;
}

.layout__nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    transition: all 200ms ease-in-out;
}

.layout__nav ul li a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
    font-weight: 600;
}

.nav__logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
    
}

.nav__logo img {
    width: 4rem;
    height: 4rem;
}

.nav__redes {
    display: flex;
    gap: 2rem;
    
}

.nav__redes i {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    transition: all 200ms ease-in-out;
}

.nav__redes i:hover {
    color: var(--primary-color);
    transform: scale(1.5);
}



/* Estilos del main Section */

h1{
    margin-top: 10rem;
    margin-bottom: 2rem;
    text-align: center;
    
}
.main__container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.container__menu{
    width: 100%;
    margin: 2rem;  
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    
}
.menu__lista{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

section{
    background-color: #252525;
    padding: 4rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.lista__item{
    width: 28rem;
    background-color: #252525;
    padding: 0.3rem;
    margin: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: all 200ms ease-in-out;
}
.lista__item:hover{
    transform: scale(1.1);
    box-shadow: 0px 0px 10px var(--primary-color);
}
h2{
    color: var(--background-color);
    margin: 4rem 0;
    background-color: var(--primary-color);
    border-radius: 0 0.5rem;
    padding: 0 10px;
}
.pregunta{
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}
.respuesta{
    margin-bottom: 2rem;
    font-size: 2remrem;
    
}

/* Footer */
.footer {
    background-color: #212121; 
    color: #f7f7f7; 
    padding: 2rem;
    text-align: center;
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 2rem;
}

.footer__social a {
    color: #f7f7f7;
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.footer__social a:hover {
    color: var(--primary-color); 
    transform: scale(1.1);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__contact p {
    margin: 0;
    font-size: 1.4rem;
}

.footer__contact i {
    margin-right: 0.5rem;
}
.footer__link{
    font-size: 1.6rem;
}

.footer__credits {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #bbb;
}

.footer__credits p {
    margin: 0;
}

.contact__title{
    margin: 1rem;
}

.footer__link{
    font-size: 1.5rem;
}

/* escarapela flotante */
.floating-escarapela {
    position: fixed; /* Para mantenerlo flotando sobre la página */
    bottom: 20px; /* Ajusta la posición vertical */
    right: 20px; /* Ajusta la posición horizontal */
    z-index: 1000; /* Asegura que esté por encima del slider */
}

.floating-escarapela img {
    width: 90px; /* Ajusta el tamaño del logo */
    height: auto;
    filter: drop-shadow(10px 10px 10px black);
}
    
/* RESPONSIVE */



/* Para pantallas de 768px o menos */

@media (max-width: 768px) {
    
/* Ocultar el menú y mostrar el botón de hamburguesa */
.hamburger {
    display: block;
}

.nav-menu {
    display: none; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}


/* Al hacer clic en la hamburguesa se abrirá el menú */
.nav-menu.open {
    display: flex;
}

/* Ajuste de logo y espaciado */
.nav__logo {
    font-size: 1.8rem;
}

.layout__nav {
    padding: 1rem;
}
}



/* Para pantallas de 768px o menos */
@media (max-width: 768px) {

.hamburger {
    display: block; 
}


#nav-menu {
    display: none; 
    flex-direction: column;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(59, 59, 59, 0.9);
}

#nav-menu.active {
    display: flex; 
}

#nav-menu li {
    text-align: center;
    padding: 1rem 0;
}

.footer {
    padding: 1rem;
    font-size: 1.2rem;
}

.footer__social {
    font-size: 1.8rem;
}

.footer__contact p, .footer__credits p {
    font-size: 1.1rem;
}

.hamburger {
    display: block; 
}


#nav-menu {
    display: none; 
    flex-direction: column;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(59, 59, 59, 0.9);
}

#nav-menu.active {
    display: flex; 
}

#nav-menu li {
    text-align: center;
    padding: 1rem 0;
}
.text-overlay h1 {
    font-size: 1.8rem;
    
}

.text-overlay h2 {
    font-size: 2.5rem;
}
.text-overlay h3 {
    font-size: 1.8rem;
}
}

/* Para pantallas de 480px o menos */
@media (max-width: 480px) {
    .layout{
        width: 90%;
    }
    .main{
        margin-top: 10rem;
    }

    h1{
        margin-top: 0rem;
        margin-bottom: 4rem;
    }

html {
    font-size: 9px;
}



#nav-menu{
    display: none;
}

#nav-menu.open {
    display: block; 
}
.footer p{
    font-size: 1.5rem;
}
.category-card{
    height: 18rem;
}
.hamburger {
    display: block; 
}


#nav-menu {
    display: none; 
    flex-direction: column;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(59, 59, 59, 0.9);
}

#nav-menu.active {
    display: flex; 
}

#nav-menu li {
    text-align: center;
    padding: 1rem 0;
}

/* escarapela flotante */
.floating-escarapela {
    
    bottom: 15px; /* Ajusta la posición vertical */
    right: 15px; /* Ajusta la posición horizontal */
    
}

.floating-escarapela img {
    width: 60px; /* Ajusta el tamaño del logo */
    height: auto;
    
}


.maps {
  width: 300px;
  margin: 0 auto; /* centra horizontalmente */
  display: block; /* necesario para que margin funcione */
  border-radius: 15px;
}


}
