* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    scroll-behavior: smooth;
    user-select: none;
}

body {
    background-color: #101010;
    overflow-x: hidden;
    height: 100vh;
}

h1 {
    font-family: "Boldonse";
    color: #F7F7F7;
    font-size: 37px;
}

h2 {
    font-family: "Noto Sans";
    font-size: 40px;
    color: white;
}

h3 {
    font-family: "Noto Sans";
    font-size: 25px;
}

p, input, a, label, strong {
    font-family: "Montserrat";
}

a {
    font-weight: bold;
}

ul {
    list-style: none;
    font-family: "Montserrat";
    font-size: 17px;
}

button {
    outline: none;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 17px;
    background-color: #393E46;
    color: white;
    cursor: pointer;
    font-family: "Montserrat";
    padding: 8px;
    position: relative;
}

#texto-advertencia {
    color: yellow;
}

#intro-titulo {
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    top: 30px;
}

#id-btn-iniciar-sesion {
    position: absolute;
    right: 6%;;
    z-index: 0;
}

#advertencia-proyecto {
    position: absolute;
    left: 6%;
    color: yellow;
}

.clase-btn-iniciar-sesion::after, #btn-carrito::after {
    content:"";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #393E46;
    left: 0px;
    top: 0px;
    border-radius: 10px;
}

.clase-btn-iniciar-sesion::before, #btn-carrito::before {
    content: "";
    background: linear-gradient(
        45deg,
        #FF0000, #FF7300, #FFFB00, #48FF00,
        #00FFD5, #002BFF, #FF00C8, #FF0000
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}

@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 400% 0;}
}

.clase-btn-iniciar-sesion:hover::before, #btn-carrito:hover::before{
    opacity: 1;
}

#genero {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.mujer-hombre {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-direction: row;
    overflow: hidden;
    justify-content: center;
}

#img-mujer, #img-hombre, #img-mujer-seccion, #img-hombre-seccion {
    width: 375px;
    height: 563px;
    cursor: pointer;
    transition: transform ease 0.5s;
}

#img-mujer-seccion, #img-hombre-seccion {
    cursor: default;
}

#img-hombre {
    background: url("img\ hombre\ inicio.jpeg") center/cover no-repeat;
}

#img-mujer {
    background: url("img\ mujer\ inicio.jpeg") center/cover no-repeat;
}

#img-hombre::after, #img-mujer::after {
    content: "";
    position: absolute;
    background: linear-gradient(to top, #000000, transparent);
    inset: 0px;
}

.mujer-hombre-carrusel {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    width: 100%;
    height: 640px;
    display: flex;
    justify-content: center;
}

.mujer-hombre-carrusel::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.carrusel-img {
    display: flex;
    width: 266.64%;
    height: 100%;
    animation: deslizarLateral 24s infinite ease-in-out;
}

.carrusel-img img {
    width: 33.33%;
    height: 100%;
    object-fit: cover;
}

@keyframes deslizarLateral {
    0%, 10% { transform: translateX(0); }
    12.5%, 22.5% { transform: translateX(-33.3%); }
    25%, 35% { transform: translateX(-66.66%); }
    37.5%, 47.5% { transform: translateX(-99.99%); }
    50%, 60% { transform: translateX(-133.32%); }
    62.5%, 72.5% { transform: translateX(-166.65%); }
    75%, 85% { transform: translateX(-199.98%); }
    87.5%, 97.5% { transform: translateX(-233.31%); }
    100% { transform: translateX(-266.64%); }
}

.secciones-mujer-hombre {
    padding: 15px 40px 15px 40px;
}

.ropa-mujer-hombre-img {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.secciones-mujer-hombre h2 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ropa-mujer-hombre img {
    width: 100%;
}

.ropa-mujer-hombre {
    display: flex;
    flex-direction: column;
    width: 20%;  
    height: auto;
    outline: solid 1px white;
    padding: 10px;
    gap: 3px;
}

.ropa-mujer:hover {
    outline: solid 3px #1e8bca;
    cursor: pointer;
} 

.ropa-hombre:hover {
    outline: solid 3px #c94d23;
    cursor: pointer;
} 

.ropa-mujer-hombre strong {
    color: white;
    font-size: 19px;
}

.precio {
    margin-top: auto;
}

.ropa-mujer-hombre p {
    color: #f5f5f5;
    font-size: 12px;
}

.ropa-mujer-hombre-zapatillas {
    background-color: white;
    padding: 13px;
}

.h2-mujer-hombre {
    position: absolute;
    top: 80%;
    color: white;
    z-index:2;
}

.h2-mujer-hombre-seccion {
    font-size: 80px;
}

#p-mujer, #p-hombre {
    position: absolute;
    top: 77%;
    color: white;
    z-index:2;
}

.mujer-hombre:hover #img-hombre, .mujer-hombre:hover #img-mujer{
    transform: scale(1.1);
}

.clase-seccion-genero {
    display: none;
}

.seccion-mujer-hombre-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    grid-area: header;
    z-index: 100;
    background-color: #101010;
}

.titulo-header {
    margin-left: 20px;
}

.lista-header {
    display: flex;
    gap: 30px;
    color: white;
    justify-content: flex-end;
    margin-right: 56px;
}

.buscador {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 17px;
    outline: none;
    overflow: hidden;
    font-family: "Montserrat";
}

.search {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
}

.btn-buscador {
    outline: none;
    border: none;
    border-radius: 0px 12px 12px 0px;
    padding: 15px 40px;
    font-size: 17px;
    background-color: #393E46;
    color: white;
    cursor: pointer;
    font-family: "Montserrat";
    padding: 8px;
}

.li-header {
    display: flex;
    gap: 10px;
    cursor: pointer;

}

.sidebar {
    background-color: #FFFFFF;
    width: max-content;
    padding: 1.5rem 1rem;
    align-self: start;
    grid-area: sidebar;
    height: 100%;
}

.sidebar:hover .li-sidebar-mujer , .sidebar:hover .li-sidebar-hombre{
    grid-template-columns: 40px 1fr;
}

.ul-sidebar {
   padding: 0px;
   display: flex;
   flex-direction: column;
   gap: .4rem;
}

.li-sidebar-mujer ,.li-sidebar-hombre {
    padding: .8rem 1.3rem;
    border-radius: 3px;
    display: grid;
    align-items: center;
    grid-template-columns: 40px 0fr;
    color: #393E46;
    transition: grid-template-columns .4s;
    justify-content: center;
}

.li-sidebar-mujer:not(:has(.logo-sidebar)):hover {
    background-color: #4d87a8;
    color: white;
    cursor: pointer;
}

.li-sidebar-hombre:not(:has(.logo-sidebar)):hover {
    background-color: #9B4A2E;
    color: white;
    cursor: pointer;
}

.li-sidebar-hombre:hover svg, .li-sidebar-mujer:hover svg {
    fill: white;
}

.li-sidebar:has(.logo-sidebar) {
    margin-bottom: 1rem; 
}

.logo-sidebar {
    max-width: 45px;
}

.elementos-sidebar-logo {
    max-width: 160px;
}

.elementos-sidebar-logo {
    font-family: "Boldonse";
}

.elementos-sidebar {
    overflow: hidden;
    text-wrap: nowrap;
}

.icon-sidebar {
    justify-self: center;
}

#id-iniciar-sesion, #id-registro {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
}

.animacion-desaparecer {
    animation-name: desaparecer;
    animation: desaparecer 4s ease-out forwards; 
}

.animacion-aparecer {
    animation-name: aparecer;
    animation: aparecer 4s ease-out forwards; 
}

.flex {
    display: flex;
}

@keyframes aparecer {
    10% {
        transform: translateY(0%);
    }
    60% {
        transform: translateY(0%);
        background-color: rgba(0, 0, 0, 0.85);
    }
    100% {
        transform: translateY(0%);
        background-color: rgba(0, 0, 0, 0.85);
    }
}

@keyframes desaparecer {
    0% {
        transform: translateY(0%);
    }
    10% {
        transform: translateY(-100%);
    }
    60% {
        background-color: rgba(0, 0, 0, 0.85);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.85);
    }
}

.registro-iniciar-sesion {
    color: white;
    display: flex;
    flex-direction: row;
}

.registro-iniciar-sesion h1 {
    font-size: 36px;
    text-align: center;
}

.registro-iniciar-sesion .input-registro-inicio-sesion {
    width: 100%;
    height: 50px;
    margin: 30px 0px;
    position: relative;
}

#cruz-registro, #cruz-sesion {
    content: "\F659";
    position: absolute;
    right: 0px;
    top: 0px;
    font-size: 23px;
    z-index: 1;
    cursor: pointer;
    padding: 13px;
}

.input-registro-inicio-sesion input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid #393E46;
    border-radius: 40px;
    font-size: 16px;
    color: white;
    padding: 20px 45px 20px 20px;
}

.input-registro-inicio-sesion input::placeholder {
    color: white;
}

.input-registro-inicio-sesion i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.input-registro-inicio-sesion .olvidar-contraseña {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0px 15px;
}

.input-registro-inicio-sesion label input {
    accent-color: white;
    margin-right: 3px;
}

.input-registro-iniciar-sesion a {
    color: white;
    text-decoration: none;
}

.olvidar-contraseña:hover {
    text-decoration: underline;
    cursor: pointer;
}

#btn-iniciar-sesion-menu, #btn-registro-menu {
    width: 100%;
    height: 45px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .1);
    font-size: 16px;
    color: white;
    font-weight: 600px;
    margin-top: 35px;
    margin-bottom: 35px;
}

#iniciar-sesion-menu, #registro-menu {
    background-color: transparent;
    border-radius: 0px 20px 20px 0px;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
    padding: 30px 40px;
    text-align: center;
    width: 420px;
}

.cambio-sesion-registro {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
    border-radius: 20px 0px 0px 20px;
    padding: 30px 40px;
    width: 305px;
}

.div-seccion-mujer-hombre {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: 
        "sidebar header"
        "sidebar carrusel"
        "sidebar gorras"
    ;
    min-height: 105vh;
    width: 100%;
}

.contenedor-derecho {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.oculto {
    display: none !important;
}

.li-sidebar-volver-inicio {
    font-weight: bold;
}

a[href="#gorras-hombre"], a[href="#camisetas-hombre"], a[href="#pantalones-hombre"], a[href="#zapatillas-hombre"],
a[href="#gorras-mujer"], a[href="#camisetas-mujer"], a[href="#pantalones-mujer"], a[href="#zapatillas-mujer"]{
    text-decoration: none;
}

#vista-detalle {
    display: none;             
    justify-content: center; 
    align-items: center;      
    
    
    min-height: 100vh;         
    width: 100%;
    
    
    padding: 40px;
    box-sizing: border-box;
    background-color: #101010;
}

.detalle-layout {
    display: flex;
    gap: 80px;                 /* Espacio generoso entre imagen y texto */
    max-width: 1100px;
    width: 100%;
    
    /* 2. Alineación interna */
    align-items: flex-start;   /* Mantiene la parte superior de la imagen y el texto alineados */
    margin: 0 auto;
}

.contenedor-zoom {
    flex: 0.7;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    top: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#detalle-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.info-compra {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#detalle-nombre {
    font-family: "Boldonse", sans-serif;
    font-size: 42px;
    color: #F7F7F7;
    margin-bottom: 5px;
}

#detalle-color {
    font-family: "Montserrat", sans-serif;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#detalle-precio {
    font-family: "Noto Sans", sans-serif;
    font-size: 32px;
    color: white;
    margin-bottom: 30px;
}

.acciones-compra {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

#btn-carrito, #btn-comprar {
    width: 100%;
    padding: 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#btn-carrito {
    position: relative;
    width: 100%;
    padding: 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: visible;
    color: white;
}

#btn-comprar {
    color: white;
    border: none;
}

#btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

#contenedor-tallas-moderno {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.talla-item {
    background-color: transparent;
    border: 1px solid #393E46; 
    color: white;
    padding: 10px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 60px; 
}

.talla-item:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.talla-item.selected {
    background-color: white;
    color: #101010;
    border-color: white;
    font-weight: bold;
}

#volver-seccion-comprar, #volver-seccion-comprar-carrito {
    position: absolute;
    right: 90%;
    bottom: 90%;
    display: flex;
    gap: 5px;
    font-size: 23px;
    align-items: center;
    color: white;
}

#volver-seccion-comprar:hover, #volver-seccion-comprar-carrito {
    cursor: pointer;
}

#seccion-carrito {
    background-color: #1a1a1a;
    border: 1px solid #393E46;
    padding: 20px;
    margin-top: 50px;
    border-radius: 8px;
    color: white;
}

.item-carrito {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #333;
    padding: 10px 0;
}

.item-carrito img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

#id-seccion-cesta {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: #101010; 
    z-index: 1000; 
    flex-direction: column;
}

.cesta-resumen h2 {
    font-family: 'Boldonse'; 
    color: white; 
    margin-bottom: 20px;
}

.cesta-resumen hr {
    border: 0; 
    border-top: 1px solid #393E46; 
    margin: 20px 0;
}

.cesta-grid-detalle {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 60px 10%;
    overflow-y: auto;
}

.cesta-item-bloque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #393E46;
    animation: fadeIn 0.5s ease;
}

.linea-pago {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat';
    color: #F7F7F7;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-mujer-hombre h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-mujer-hombre {
    padding: 60px;
    display: flex;
    align-items: center;
}

.info-ubicacion {
    position: absolute;
    left: 78%;
    color: white; 
    font-family: 'Montserrat'; 
    font-size: 14px; 
}

.flecha-contenedor-zoom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 23px;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 10%;
    z-index: 10;
}

#flecha-izq { 
    left: 10px; 
}

#flecha-der { 
    right: 10px; 
}

#notificaciones-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.notificacion {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.4s ease forwards, fadeOutLeft 0.7s ease 1s forwards;
}

.notificacion.exito {
    background-color: rgba(46, 139, 87, 0.85); 
    border-left: 4px solid #2ecc71;
}

.notificacion.error {
    background-color: rgba(178, 34, 34, 0.85);
    border-left: 4px solid #e74c3c;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.control-cantidad {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #393E46;
    border-radius: 8px;
    padding: 5px 10px;
}

.btn-cantidad {
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.btn-cantidad::after, .btn-cantidad::before {
    display: none; 
}

.btn-cantidad.deshabilitado {
    color: #888;
    cursor: not-allowed;
}

.cantidad-numero {
    font-family: 'Montserrat';
    color: white;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.ropa-mujer-hombre-zap {
    margin-bottom: 30px;
}