.bienvenida_para_tel {
    display: none;
}

.bienvenida_para_pc {
    display: block; 
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    color: #fff;
    background-color: #000;
    background-image: url('img_visuales/fondo2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* --- ESTILOS PARA HEADER FIJO Y ENCOGIBLE --- */
header {
    position: sticky; /* Hace que el header se quede fijo */
    top: 0;
    z-index: 999; /* Lo pone por encima del contenido, pero debajo de la modal */
    background-color: #000; /* Fondo sólido para que no se vea el contenido detrás */
    color: white;
    box-shadow:
        0 2px 6px 0 #4cf504,
        0 1px 4px 0 #4cf504;
    transition: all 0.3s ease-in-out; /* Transición suave para todos los cambios */
}

header.header-shrink .linea_superior {
    padding-top: 0;
    padding-bottom: 0;
}

header.header-shrink .logo {
    height: 50px; /* Altura reducida */
}

header.header-shrink .carrito-link img {
    width: 45px; /* Tamaño reducido */
}

header.header-shrink .menu-casco {
    transform: scale(0.85); /* Lo hace un poco más pequeño */
}

.linea_superior {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Cambiado para mejor distribución */
    padding: 5px 0;
    width: 100%;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.logo {
    height: 120px;
    margin: 10px 20px 10px 30px;
    transition: all 0.3s ease-in-out;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
    color: white;
    min-height: 0;
}

.bienvenido {
    background-image: url('img_visuales/smmotoshopfondo(3).jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 80px);
    margin: 30px 0;
    box-sizing: border-box;
    min-height: 0;
    min-width: 0;
    padding: 40px 20px;
    box-shadow:
        0 2px 6px 0 #b50fe7,
        0 1px 4px 0 #b50fe7;
    border: 2px solid #b50fe7;
    position: relative;
    z-index: 1;
}

.bienvenido_como_comprar {
    background-image: url('img_visuales/SMMOTOSHOPFONDO\(2\).jpg'); /* Cambia por la ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 0 12px #ff00fe;
    padding: 40px 30px;
    color: #fff;
}

.bienvenido_como_comprar h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.bienvenido_como_comprar a {
    color: #1fffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, text-shadow 0.2s;
}

footer {
    background-color: rgba(0, 0, 0, 0.918);
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
    box-shadow:
        0 -4px 12px 0 #1fffff,
        0 -2px 8px 0 #1fffff;
    z-index: 2;
}

footer p {
    text-shadow:
        0 0 3px #00fff7,
        0 0 6px #00fff7,
        0 0 12px #00fff7;
}

.contacto {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* Elimina o ajusta estos z-index para evitar conflictos */
main, footer, .bienvenido {
    position: relative;
    z-index: auto;
}

/* Textos */
h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow:
        0 0 5px #4cf504,
        0 0 10px #4cf504,
        0 0 20px #4cf504,
        0 0 40px #4cf504;
}
p {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow:
        0 0 3px #b50fe7,
        0 0 6px #b50fe7,
        0 0 12px #b50fe7;
}

/* Botón con efecto neon atenuado */
.bienvenido button {
    background: transparent;
    border: 2px solid #1fffff;
    color: #ffffff;
    background-color: #1fffff50;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 0 4px #1fffff,
        0 0 8px #1fffff;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    -webkit-text-stroke: 0px;
}
.bienvenido button:hover {
    background: #1fffff;
    color: #000;
    box-shadow:
        0 0 8px #1fffff,
        0 0 16px #1fffff;
}

/* Menú casco (3 puntos tipo casco) */
.menu-casco {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: auto;
    margin-right: 20px;
    background: none;
    border: none;
    outline: none;
}
.menu-casco span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 3px 0;
    border-radius: 50%;
    background: #ff00fe;
    box-shadow: 0 0 6px #ff00fe, 0 0 12px #ff00fe;
    transition: background 0.2s;
}

/* Menú desplegable */
.menu-desplegable {
    display: none;
    position: absolute;
    top: 100px;
    right: 30px;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 12px;
    box-shadow: 0 0 16px #ff00fe;
    z-index: 9998;
    min-width: 180px;
    padding: 10px 0;
    animation: fadeInMenu 0.2s;
}
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.menu-desplegable ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-desplegable li {
    text-align: right;
}
.menu-desplegable li a {
    display: block;
    padding: 14px 30px 14px 20px;
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    border-radius: 6px 0 0 6px;
    transition: background 0.2s, color 0.2s;
}
.menu-desplegable li a:hover {
    background: linear-gradient(90deg, #ff00fe, #00CFFF);
    color: #fff;
    text-shadow: 0 0 8px #ff00fe;
}
.menu-desplegable.activo {
    display: block;
}

/* Estilos para la lista de contactos */
.contacto-lista ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacto-lista li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30,30,30,0.85);
    border-radius: 10px;
    box-shadow: 0 0 8px #ff00fe;
    margin-bottom: 18px;
    padding: 14px 18px;
    transition: background 0.2s;
}

.contacto-lista a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: #fff;
    font-size: 1.1em;
    font-family: 'Orbitron', sans-serif;
}

.contacto-nombre {
    flex: 1;
    text-align: left;
}

.contacto-icono {
    margin-left: 18px;
    display: flex;
    align-items: center;
}

.contacto-lista a:hover .contacto-nombre {
    color: #ff00fe;
}

/* MEJORA: Elimina estilos para .navbar y .dropdown-menu si no los usas */