:root {
  --colorOscuro: #5e103a;
  --colorMedio: #c01c5e;
  --colorClaro: #f369a7;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1e1e1e;
    font-family: sans-serif;
}
.decor-none{
    text-decoration: none;
}
/* BARRA NAV*/
.nav {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    grid-template-rows: auto auto;
    background-color: #1e1e1e;
    color: var(--colorMedio)  ;
    padding: 15px 20px;
    gap: 10px 0;
    align-items: center;
}

/* PRIMERA FILA */
.titulo {
    grid-column: 1;
    grid-row: 1;
    font-size: 2.4rem;
    font-family: 'bubblegum sans';
    letter-spacing: 2px;
    font-weight: bold;
    justify-self: start;
}

.letra-3d {
    background: radial-gradient(circle at 50% 50%, var(--colorClaro) 10%, var(--colorMedio) 60%, var(--colorOscuro) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.8));
}

.enlaces {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-self: center;
}

/* SEGUNDA FILA */


.iconos {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-self: end;
}

.enlaces a {
    color: inherit;
    font-family: 'baloo 2';
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.8));
    font-weight: lighter;
    text-decoration: none;
}

.enlaces a:hover {
    text-decoration: underline;
}

.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-btn {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    background-color: white;
    color: var(--colorMedio);
    padding: 0;
    cursor: pointer;
}

.nav-search-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#input-busqueda {
    order: 2;
    height: 32px;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    color: var(--colorMedio);
    padding: 0 8px;
}

#input-busqueda::placeholder {
    color: var(--colorMedio);
}

.resultados-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    min-width: 260px;
    max-width: min(360px, 85vw);
    max-height: 320px;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    padding: 0.5rem;
}

.resultados-dropdown[hidden] {
    display: none;
}

.resultado-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem;
    color: var(--colorClaro);
    text-decoration: none;
    border-bottom: 1px solid var(--colorMedio);
    filter: none;
}

.resultado-item:last-child {
    border-bottom: 0;
}

.resultado-item span,
.resultado-vacio {
    color: #efdae4;
    font-size: 0.9rem;
    line-height: 1.3;
}

.resultado-vacio {
    margin: 0;
    padding: 0.6rem;
}

.resaltado {
    background-color: var(--colorClaro);
    color: #1e1e1e;
    border-radius: 4px;
    padding: 0 0.15rem;
}
/*HEADER*/
.header-principal {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto; 
    width: 100%;
    padding: 4% 15%;        
    box-sizing: border-box;
}

.header-texto-top {
    grid-row: 1;
    justify-self: start;   
    align-self: start;      
    font-size: 2.4rem;      
    font-family: 'bubblegum sans', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    white-space: nowrap;    
}

.header-texto-bottom {
    grid-row: 2;
    justify-self: end;     
    align-self: end;        
    font-family: 'bubblegum sans', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    white-space: nowrap;    
}


.header-texto-bottom .letra-3d {
    font-size: 1.7rem;      
}
/*ICONOS*/
.iconos{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; 
}
.iconos img {
    height: 28px;
    width: auto;
    display: block;
    background-color: white;
    border: 1px solid var(--colorMedio);
    border-radius: 5px;
    padding: 3px;
    cursor: pointer;

}

footer .iconos {
    width: 100%;
    justify-content: center;
    justify-self: center;
    padding: 2rem;
}
/* boton hamburguesa */
.menu-hamburguesa {
    display: none; 
    background: none;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    color: var(--colorMedio);
    cursor: pointer;
    padding: 5px;
    width: 44px;
    height: 44px;
}

@media (max-width: 768px) {
    
    .nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end; 
        padding: 15px;
    }

    /*botón hamburguesa */
    .menu-hamburguesa {
        display: block; 
    }

    .enlaces {
        display: none;
        flex-direction: column; 
        width: 100%; 
        margin-top: 15px;
        gap: 15px;
        text-align: center;
    }


    .enlaces.mostrar {
        display: flex;
    }

   
    .nav-search-container {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
