/* Variables de Diseño global */
:root {
    --bg-primary: #FFFFFF;
    --bg-dark: #000000;
    --bg-footer: #1B1717;
    --accent-green: #26a844;
    --accent-red: #E40044;
    --text-dark: #111111;
    --text-light: #FFFFFF;
    --font-titles: 'Chakra Petch', sans-serif;
    --font-base: 'Rubik', sans-serif;
}

/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-primary);
    color: var(--text-dark);
}

/* Header y Logo */
.main-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* ◄ ESTO centra el Logo, el Menú y el Carrito entre sí */
    padding: 10px 20px;
}
/* Forzamos al contenedor del enlace a comportarse como un bloque flexible para centrar la imagen */
.logo a {
    display: flex;
    align-items: center; /* ◄ Quita cualquier desvío de la imagen */
    text-decoration: none;
}

/* Control del tamaño del logo cuadrado 1:1 */
.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover; /* Asegura que no se deforme si la proporción llega a variar */
    display: block;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center; /* ◄ ESTO centra los textos de Inicio, Catálogo y Contacto en su propio eje */
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.cart-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 8px 16px;
    text-decoration: none;
    font-family: var(--font-titles);
    transition: all 0.3s;
}

.cart-btn:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburguesa / Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Adaptación responsive para la barra de navegación */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animación del menú hamburguesa a X */
    .menu-toggle.activo .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.activo .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.activo .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        width: 100%;
        background-color: var(--bg-dark);
        border-top: 1px solid #1f1f1f;
        order: 3;
        margin-top: 10px;
    }

    .nav-menu.activo {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0 5px 0;
        gap: 15px;
    }

    .nav-menu ul li {
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
}

/* Centrado perfecto de los enlaces de navegación en desktop */
@media (min-width: 769px) {
    .logo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }
    .header-icons {
        flex: 1;
        justify-content: flex-end;
    }
    .nav-menu {
        flex: 0 0 auto;
    }
}

/* Optimización para tablets y laptops chicas (evita que se rompa el menú por el botón Acceder) */
@media (min-width: 769px) and (max-width: 1050px) {
    .nav-menu ul {
        gap: 12px;
    }
    .nav-menu a {
        font-size: 13px;
    }
    .header-container {
        padding: 10px 15px;
    }
    .btn-acceder {
        padding: 6px 12px;
        font-size: 11px;
    }
    .auth-user-btn {
        padding: 4px 10px 4px 4px;
        font-size: 12px;
    }
}




/* Hero Section */
/* Hero Section - Rediseño Michi&Deco con Cuadrícula 3D */
.hero-section {
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; /* Evita que la grilla 3D se desborde */
}

/* Contenedor y capa de la cuadrícula en perspectiva 3D */
.hero-3d-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Asegura que no interfiera con el mouse en el botón */
    z-index: 1;
    perspective: 800px;
}

.hero-3d-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    transform: rotateX(60deg) translateZ(0);
    transform-origin: center center;
    transition: transform 0.1s ease-out; /* Movimiento suave en parallax */
}

/* Efecto haz de luz radial encima de la grilla */
.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(38, 168, 68, 0.18) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Queda sobre el fondo glow y la grilla */
    max-width: 800px; 
}

.hero-content h1 {
    font-family: var(--font-titles);
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
    /* Un sutil degradado de texto blanco a gris claro para darle un toque premium */
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    font-family: var(--font-base);
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón interactivo con los colores de Michi&Deco */
.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-green);
    padding: 14px 36px;
    text-decoration: none;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Efecto Hover: se rellena de verde cuando pasás el mouse */
.btn-primary:hover {
    background-color: var(--accent-green);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(38, 168, 68, 0.4);
    transform: translateY(-2px);
}

.ver-mas-container {
    text-align: center;
    margin-top: 40px;
}

.ver-mas-container .btn-primary {
    color: var(--bg-dark);
}

.ver-mas-container .btn-primary:hover {
    color: var(--text-light);
}



/* Sección de Productos */
.products-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-titles);
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-left: 5px solid var(--accent-green);
    padding-left: 15px;
}

/* Grilla con Grid CSS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Tarjeta de Producto */
.product-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    background-color: #fff;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-red);
    color: var(--text-light);
    font-family: var(--font-titles);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #888;
    margin-right: 8px;
    font-weight: 400;
}

.btn-add-cart {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: none;
    padding: 10px;
    width: 100%;
    font-family: var(--font-titles);
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background-color: var(--accent-green);
}

/* Footer */
.main-footer {
    background-color: var(--bg-footer);
    color: #888;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 14px;
}
/* Control de tamaño para las imágenes de los productos */
.product-image img {
    width: 100%;
    height: 380px; /* Altura fija para emparejar la grilla */
    object-fit: cover; /* Recorta la imagen proporcionalmente para que no se estire */
    display: block;
}
/* ================= PAGINA DE PRODUCTO INDIVIDUAL ================= */
.product-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.product-detail-image {
    flex: 1;
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px;
}

.product-detail-image img {
    width: 100%;
    max-height: 550px; /* Tamaño generoso para apreciar la lámpara */
    object-fit: contain; /* Evita que la foto se recorte si varía la proporción */
    display: block;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-family: var(--font-titles);
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green); /* Precio destacado con el verde de Michi&Deco */
    margin-bottom: 25px;
}

.product-description, .product-specs {
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.product-description h3, .product-specs h3 {
    font-family: var(--font-titles);
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.product-specs ul {
    list-style-type: square;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Acciones de Compra */
.purchase-actions {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 500;
    font-size: 16px;
}

.quantity-selector input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ccc;
    font-family: var(--font-base);
    font-size: 16px;
    text-align: center;
}

.btn-buy-now {
    background-color: var(--accent-green);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-family: var(--font-titles);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.btn-buy-now:hover {
    background-color: #1e8534; /* Un verde un toque más oscuro al pasar el mouse */
}

.btn-add-to-cart-page {
    background-color: transparent;
    color: var(--bg-dark);
    border: 2px solid var(--bg-dark);
    width: 100%;
    padding: 13px;
    font-family: var(--font-titles);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-cart-page:hover {
    background-color: var(--bg-dark);
    color: white;
}

/* Adaptación para Pantallas de Celulares */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 30px;
    }
}
/* ================= SECCIÓN DE CONTACTO COMPACTA (MICHI&DECO) ================= */
.body-contacto {
    background-color: #000000 !important; /* Forzamos el fondo negro puro en toda la pantalla */
}

.contacto-container {
    max-width: 650px; /* Reducimos el ancho máximo para que quede estético al no haber formulario */
    margin: 60px auto;
    padding: 0 20px;
    font-family: var(--font-base);
}

.contacto-header {
    text-align: center;
    margin-bottom: 40px;
}

.contacto-header h1 {
    font-family: var(--font-titles);
    font-size: 38px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contacto-header p {
    color: #aaaaaa;
    font-size: 15px;
    line-height: 1.6;
}

.contacto-layout-centrado {
    width: 100%;
}

.contacto-canales {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- DISEÑO DE LOS BOTONES BONITOS --- */
.contacto-card {
    display: flex;
    align-items: center;
    background-color: #0b0b0b; /* Un gris casi negro para generar un sutil contraste con el fondo de la página */
    border: 1px solid #1f1f1f;
    padding: 18px 24px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-icon {
    font-size: 26px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.03);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.card-text h3 {
    font-family: var(--font-titles);
    font-size: 18px;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.card-text p {
    color: #777777;
    font-size: 14px;
    transition: color 0.3s;
}

.card-arrow {
    margin-left: auto;
    font-size: 18px;
    color: #333333;
    transition: all 0.3s;
}

/* Efectos Interactivos (Glow Verde) */
.contacto-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(38, 168, 68, 0.2);
    background-color: #111111;
}

.contacto-card:hover .card-text p {
    color: #cccccc;
}

.contacto-card:hover .card-arrow {
    color: var(--accent-green);
    transform: translateX(4px);
}
/* ================= VENTANA DESPLEGABLE DEL CARRITO GLOBAL ================= */
.carrito-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Oculto por defecto fuera de la pantalla */
    width: 380px;
    height: 100vh;
    background-color: #0b0b0b; /* Fondo oscuro consistente con contacto */
    border-left: 1px solid #1f1f1f;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Clase de activación que maneja JS */
.carrito-sidebar.activo {
    right: 0;
}

.carrito-header-sidebar {
    padding: 24px;
    border-bottom: 1px solid #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carrito-header-sidebar h2 {
    font-family: var(--font-titles);
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

.close-carrito-btn {
    background: none;
    border: none;
    color: #666666;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-carrito-btn:hover {
    color: #ff4a4a; /* Rojo técnico de advertencia */
}

/* Área de scroll de productos */
.carrito-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.carrito-vacio-txt {
    color: #555555;
    text-align: center;
    margin-top: 40px;
    font-family: var(--font-base);
}

/* Tarjeta individual de producto dentro del carrito */
.carrito-item {
    display: flex;
    align-items: center;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

.carrito-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    background-color: #000;
}

.carrito-item-detalles {
    flex: 1;
    text-align: left !important;
}

.carrito-item-detalles h4 {
    font-family: var(--font-base);
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
    text-align: left !important;
}

.carrito-item-precio {
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left !important;
}

/* Controles de cantidad (+ / -) */
.carrito-item-controles {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carrito-item-controles button {
    background-color: #1f1f1f;
    border: 1px solid #333333;
    color: var(--text-light);
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carrito-item-controles button:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.carrito-item-controles span {
    font-size: 14px;
    color: var(--text-light);
}

.carrito-eliminar-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #444444;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.carrito-eliminar-btn:hover {
    color: #ff4a4a;
}

/* Footer fijo del menú desplegable */
.carrito-footer-sidebar {
    padding: 24px;
    border-top: 1px solid #1f1f1f;
    background-color: #090909;
}

.carrito-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-titles);
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
}

#carrito-total-precio {
    color: var(--accent-green);
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    background-color: var(--accent-green);
    color: var(--text-light);
    border: none;
    padding: 14px;
    font-family: var(--font-titles);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
    margin-bottom: 10px;
}

.btn-checkout:hover {
    opacity: 0.9;
}

.btn-vaciar {
    width: 100%;
    background: transparent;
    color: #666666;
    border: 1px solid #222222;
    padding: 8px;
    font-family: var(--font-base);
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-vaciar:hover {
    color: #ff4a4a;
    border-color: #ff4a4a;
}

/* Ajuste de pantalla responsive para celulares */
@media (max-width: 400px) {
    .carrito-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ================= BOTÓN FLOTANTE DE WHATSAPP ================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ===== BARRA DE TABS INTERNA (Catálogo / Novedades) ===== */
.catalog-tabs {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
}

.catalog-tab {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-titles);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

.catalog-tab:hover {
    color: #222;
    border-bottom-color: #bbb;
}

.catalog-tab.active {
    color: #111;
    border-bottom-color: #26a844;
}

/* ============================================================
   AUTH SYSTEM — Botón Acceder + Dropdown de usuario
   ============================================================ */

.btn-acceder {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    font-family: var(--font-titles);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-acceder:hover {
    background: #26a844;
    border-color: #26a844;
    color: #fff;
}

.auth-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 5px 12px 5px 5px;
    cursor: pointer;
    color: #fff;
    font-family: var(--font-base);
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}
.auth-user-btn:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}
.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.auth-avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #26a844;
    color: #fff;
    font-family: var(--font-titles);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-username {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auth-chevron { opacity: 0.5; }

#michi-auth-wrapper { position: relative; }

.auth-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    min-width: 200px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 200;
}
.auth-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.auth-dropdown-email {
    padding: 8px 10px 10px;
    font-size: 11px;
    color: #555;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 5px;
    word-break: break-all;
}
.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: #ccc;
    font-family: var(--font-base);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.auth-dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

#auth-guard-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s;
}
#auth-guard-overlay.fade-out { opacity: 0; }
.auth-overlay-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #666;
    font-family: var(--font-base);
    font-size: 14px;
}

@keyframes michi-spin { to { transform: rotate(360deg); } }
.auth-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #26a844;
    border-radius: 50%;
    animation: michi-spin 0.7s linear infinite;
}

/* Adaptación responsive para el botón de usuario en el header móvil */
@media (max-width: 768px) {
    .auth-user-btn {
        padding: 4px !important;
        border-color: transparent !important; /* Más limpio en celular */
        background: rgba(255, 255, 255, 0.05) !important;
    }
    .auth-username,
    .auth-chevron {
        display: none !important;
    }
}

