/* =====================================================
   ÍNDICE
   1. ESTRUCTURA BASE Y LAYOUT
   2. BUSCADOR (SEARCH)
   3. ENLACES, USUARIO Y BOTONES (AUTH/SOCIAL)
   4. MENÚ DESPLEGABLE (MAIN-NAV & HAMBURGUESA)
   5. SUB-NAVEGACIÓN (ANIMALES)
   6. ANIMACIONES GLOBALES
   7. RESPONSIVE / MÓVIL
===================================================== */

.site-header a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

.header-container, .header-side-block, .header-left-group, .header-right-group,.header-nav-links, .header-auth-actions, .header-user-actions, .header-search, .search-form, .user-profile .profile-link, .animal-item, .social-icon, .banner-content {
    display: flex;
    align-items: center;
}

/* =====================================================
   1. ESTRUCTURA BASE Y LAYOUT
===================================================== */
.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    position: sticky; 
    height: var(--header-height);
    top: 0; left: 0; z-index: 999;
    border-bottom: 1px solid rgba(237, 237, 237, 0.5);
}

@media (max-width: 768px) {
    .site-header {
        height: var(--header-height-mobile);
    }
}

.header-container { justify-content: space-between; padding: 14px 0px 0px 0px; }

/* Bloques Laterales Flexbox */
.header-side-block { flex: 1; height: 33px; }
.header-left { justify-content: flex-start; gap: 25px; }
.header-right { justify-content: flex-end; gap: var(--gap-actions-separation); }

/* Grupos y Logo */
.header-left-group, .header-right-group { flex: 1; }
.header-left-group { gap: 25px; }
.header-right-group { 
    justify-content: flex-end; 
    gap: var(--gap-actions-separation); 
}

.logo {
    flex: 0.7;
    display: flex;
    justify-content: flex-start;
}

.logo a { font-size: 20px; font-weight: bold; color: var(--font-color-normal); }

/* =====================================================
   2. BUSCADOR (SEARCH)
===================================================== */
.header-search { flex: 1.2; justify-content: center; max-width: 400px; }

.search-form {
    position: relative; 
    background: #f0f0f0;
    border-radius: var(--border-radius);
    height: 40px; width: 100%; 
}

.search-input {
    background: transparent; border: none; outline: none;
    text-align: center; height: 100%; width: 100%;
    font-size: 14px; color: var(--font-color-normal);
}

.search-button { background: none; border: none; cursor: pointer; padding-left: 16px; }
.search-button img { opacity: 0.4; width: 31px; }

.search-input::placeholder {
    font-size: 12px;
}

/* Resultados de Búsqueda en Vivo */
.live-search-results {
    position: absolute; top: 100%; left: 0; width: 100%; 
    background: #fff; border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999; max-height: 400px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; pointer-events: none;
}
.live-search-results.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.search-image-square {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}


/* Contenedor Principal */
.search-results-container {
    width: min(90vw);
    margin: 20px auto;
}



.search-header {
    margin-bottom: 30px;
    border-left: 4px solid #003366;
    padding-left: 15px;
}

/* Grid de Resultados */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* Tarjeta Individual */
.result-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-link { text-decoration: none; color: inherit; }

/* Imagen y Badge de Capítulos */
.card-image {
    position: relative;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chapter-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 51, 102, 0.9); /* Tu azul institucional */
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

/* Contenido de la tarjeta */
.card-content {
    padding: 15px;
}

.result-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Corta el texto a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-type {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Asegura que sea circular */
    object-fit: cover;  /* Evita que la imagen se estire si no es cuadrada */
    display: block;
}



/* =========================
   CONTENEDOR DE RESULTADOS
========================= */

#search-results-container {
    position: absolute;
    top: 100%; /* Aparece justo debajo del form */
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 450px; /* Altura máxima antes de scroll */
    overflow-y: auto;
    z-index: 9999; /* Por encima de los lobos/ciervos */
    margin-top: 2px;
}

/* Ocultar si está vacío */
#search-results-container:empty {
    display: none;
}

/* =========================
   DISEÑO DE LAS CARDS (ESTRUCTURA)
========================= */

.search-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease, transform 0.1s ease;
}

.search-card:hover {
    background-color: #f9f9f9;
}

.search-card:active {
    transform: scale(0.99);
}

/* Miniatura */
.search-card img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0; /* Evita que la imagen se deforme */
    background: #eee;
}

/* Textos */
.search-card-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Personalización del Scroll */
#search-results-container::-webkit-scrollbar {
    width: 6px;
}
#search-results-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Contenedor oculto por defecto */
#search-results-container {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 9999;
}

/* Solo se muestra cuando JS añade esta clase */
#search-results-container.is-visible {
    display: block;
}





/* Miniatura Cuadrada Perfecta */
.search-card img {
    width: 65px;
    height: 65px; /* Altura igual al ancho */
    aspect-ratio: 1 / 1; 
    object-fit: cover; /* Recorta la imagen para llenar el cuadrado */
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
    border: 1px solid #eee;
}

/* Ajuste del contenedor de texto para centrarlo verticalmente con la imagen */
.search-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 2px;
}

.search-card-meta {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    text-transform: capitalize;
}






/* =====================================================
   3. ENLACES, USUARIO Y BOTONES (AUTH/SOCIAL)
===================================================== */
.header-nav-links, .header-auth-actions {
    gap: var(--gap-actions-separation);
}

.header-navigation-actions {
    gap: var(--gap-special);
}

.header-user-actions {
    gap: 25px; 
    margin: 0 20px;
}

/* Enlaces Generales */
.action-link, .auth-link {
    font-family: var(--font-main); display: flex;
    font-size: 14px; font-weight: bold; line-height: 1.2;
    flex-direction: column; text-align: center; white-space: nowrap;
}

.action-link:hover {
    color: var(--color-secundary); 
}

.action-link.two-lines span,
.auth-link.two-lines span {
    display: block;
    line-height: 1.1;
}

/* Auth Link Custom (Log in / Register) */
.auth-link.register.two-lines {
    flex-direction: column;
    text-decoration: none;
    white-space: normal; 
}

.auth-link.register.two-lines span:first-child {
    padding-bottom: 2px;
}

.auth-link.register span:last-child {
    display: block; width: 100%; border-top: 1px solid #333; padding-top: 2px;
}

/* Redes Sociales */
.header-social-links { display: flex; gap: 12px; border-right: 1px solid rgba(0,0,0,0.1); padding-right: 10px; }
.social-icon { width: 20px; height: 20px; opacity: 0.6; justify-content: center; }
.social-icon:hover { opacity: 1; transform: translateY(-2px); }


.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Perfil de Usuario Logueado */
.user-logged-in-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 18px;
}

.user-logged-in {
    display: flex;
    align-items: center;
    gap: var(--gap-actions-separation);
}

.user-profile .profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.username-text {
    font-weight: 600;
    font-size: var(--font-size-normal);
    color: var(--font-color-normal);
}

.site-header a.tier-status-btn {
    font-size: 12px;
    color: var(--color-primary); 
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}


/* =====================================================
   4. MENÚ DESPLEGABLE (MAIN-NAV & HAMBURGUESA)
===================================================== */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 33px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.main-nav {
    position: absolute;
    top: 65px; 
    right: 20px; 
    width: 480px; 
    max-width: calc(100vw - 40px);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-radius: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all var(--transition-normal);
}

.main-nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-banner {
    background-color: var(--color-primary); 
    color: #fff;
    padding: 10px 15px;
    text-align: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.banner-text-ja {
    font-size: 14px;
    font-weight: bold;
}

.banner-logo {
    font-size: 12px;
    font-weight: lighter;
    opacity: 0.8;
}

/* Grilla Kinks */
.menu-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    margin: 0;
    list-style: none;
    max-height: 400px; 
    overflow-y: auto;
    border-bottom: 1px solid #f3f3f3;
}

.menu-icon-grid .menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 10.5px;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.menu-icon-grid .menu-item a:hover {
    transform: translateY(-3px);
    color: var(--color-primary);
}

.menu-icon-grid .menu-item a::before {
    content: ""; 
    width: 45px;
    height: 45px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.menu-icon-grid .menu-item a:hover::before {
    background: #fff0f9;
    border-color: var(--color-primary);
}

/* Custom Scrollbar Menú */
.menu-icon-grid::-webkit-scrollbar { width: 4px; }
.menu-icon-grid::-webkit-scrollbar-track { background: transparent; }
.menu-icon-grid::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }
.menu-icon-grid::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Grilla Géneros */
.main-nav .menu-genres-container,
.main-nav ul:not(.menu-icon-grid) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 15px 20px;
    background: #fafafa; 
    list-style: none;
    margin: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.main-nav ul:not(.menu-icon-grid) li a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px; 
    font-weight: 700;
    color: #888;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.main-nav ul:not(.menu-icon-grid) li a:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}







/* Ocultar las barras CSS en Desktop por defecto */
.menu-toggle .bar {
    display: none; 
}

@media (max-width: 768px) {
    /* --------------------------------------
       FULL SCREEN MENU MOBILE
       -------------------------------------- */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        background: #ffffff;
        z-index: 990; /* Se sitúa estratégicamente justo debajo de los elementos del header */
        
        /* Layout interior */
        display: flex;
        flex-direction: column;
        padding-top: 10px; /* Evita que el logo y la X tapen el contenido superior del menú */
        overflow-y: auto;
        overflow-x: hidden;
        
        /* Animación de Arriba hacia Abajo */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s;
    }

    .main-nav.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Aseguramos que el contenedor del header (logo, botón) quede intacto y siempre visible por encima del overlay */
    .header-container {
        position: relative;
        z-index: 999;
    }

    /* --- ANIMACIÓN BOTÓN HAMBURGUESA A "X" --- */
    .menu-toggle .icon-desktop {
        display: none; /* Ocultamos el ícono SVG en móvil */
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        position: relative;
        background: transparent;
        border: none;
    }

    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--font-color-normal);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .menu-toggle.is-active {
        z-index: 1000;
    }

    /* Transformación exacta a "X" */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* --- DISTRIBUCIÓN ORDENADA DE LOS MENÚS INTERNOS --- */
    .menu-banner {
        flex-shrink: 0;
        padding: 30px 15px 20px 0;
        margin-top: -10px;
    }

    .menu-icon-grid {
        max-height: none !important; /* Permitimos que fluya natural en toda la pantalla */
        padding: 10px 20px;
        border-bottom: none;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas espaciosas para móvil */
        gap: 15px;
    }

    .main-nav ul:not(.menu-icon-grid) {
        justify-content: center;
        padding: 15px 20px;
        background: transparent !important; /* Se fusiona limpio con el fondo blanco del overlay */
    }

    /* Línea separadora sutil entre Categories y Help */
    .main-nav .menu-category-grid {
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0 !important;
        margin-bottom: 10px;
    }
}







/* =====================================================
   5. SUB-NAVEGACIÓN (ANIMALES)
===================================================== */
.animal-sub-nav {
    overflow: visible !important; 
    position: relative;
    z-index: 10;
    padding: 17px 0 7px 0;
    width: 100%;
}

.animal-nav-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    overflow: visible !important;
    scrollbar-width: none; 
}

.animal-nav-wrapper::-webkit-scrollbar {
    display: none; 
}

.animal-item {
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition-fast-soft);
    min-width: 60px;
    position: relative;
    opacity: 0;
    animation: waveJumpAndFade 0.7s ease-out both;
    z-index: 5; 
}

.animal-item:active, .animal-item:hover {
    z-index: 100;
}

.animal-item.is-ready {
    opacity: 1;
}

.animal-icon {
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.animal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
    transition: var(--transition-fast-soft);
}

.animal-item span {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.animal-item:hover .animal-icon img,
.animal-item.is-active .animal-icon img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.animal-item:hover span,
.animal-item.is-active span {
    color: #111;
}


/* =====================================================
   6. ANIMACIONES GLOBALES
===================================================== */
@keyframes fadeInRow {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(20px); }
    50% { opacity: 1; transform: scale(1.1) translateY(-5px); }
    70% { transform: scale(0.9) translateY(2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes waveJump {
    0% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    60% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}

@keyframes waveJumpAndFade {
    0% { opacity: 0; transform: translateY(10px); }
    50% { opacity: 1; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   7. RESPONSIVE / MÓVIL
===================================================== */
@media (max-width: 768px) {
    
    /* Ocultamos elementos innecesarios en móvil */
    .header-nav-links,
    .header-user-actions,
    .header-social-links
     {
        display: none !important;
    }

    .header-container {
        padding: 7px 0px 0px 0px;
    }

    .header-side-block.header-right, 
    .header-auth-actions {
        gap: 10px;
    }

    /* Buscador Móvil Expandible */
    .search-form {
        background: transparent !important; 
        width: auto;
        transition: var(--transition-fast-soft);
        justify-content: flex-end;
    }

    .search-input {
        width: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-fast-soft);
        background: #f0f0f0; 
        border-radius: 5px;
    }
    .search-button {
        padding: 10px;
        z-index: 10;
    }

    .search-button img {
        opacity: 1;
        width: 26px;
    }

    .search-form.is-active {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px; 
        background: #fff !important; 
        z-index: 999;
        display: flex;
        padding: 0 15px;
        align-items: center;
    }

    .search-form.is-active .search-input {
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 15px;
        height: 40px;
        margin-left: 10px;
        text-align: left; 
    }
    
    .search-form.is-active .live-search-results {
        top: 60px;
        width: 100%;
    }

    /* Sub-Navegación Animales Móvil */
    .animal-nav-wrapper {
        justify-content: flex-start;
        padding: 10px 0px;
        gap: var(--gap-actions-separation);
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
    
    .animal-sub-nav {
        padding: 0;
    }

    .animal-icon {
        height: 25px;
    }
}

/* Micro-ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .main-nav {
        width: 92vw;
        right: 4vw;
        top: 60px;
    }
    
    .menu-icon-grid {
        grid-template-columns: repeat(3, 1fr); 
        max-height: 350px;
    }

    .main-nav ul:not(.menu-icon-grid) {
        justify-content: center; 
    }
}





/* --- Ajuste de Kinks como Botones (Sin Iconos) --- */
.menu-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas para que los botones tengan mejor ancho */
    list-style: none;
    margin: 0;
    padding: 15px;
    gap: 10px;
    border-bottom: 1px solid #eee;
    background-color: #fcfcfc;
}

.menu-icon-grid .menu-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    color: #444;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Eliminamos el círculo del icono por completo */
.menu-icon-grid .menu-item a::before {
    display: none !important;
    content: none !important;
}

/* Efecto Hover para los botones */
.menu-icon-grid .menu-item a:hover {
    border-color: #003366;
    color: #003366;
    background-color: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}




.tier-status-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s ease;
    white-space: nowrap;
}

/* Ajuste para mobile si el espacio es poco */
@media (max-width: 768px) {
    .tier-status-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}





/* Contenedor del letrero orientado hacia abajo */
.soon-badge {
    position: absolute;
    top: 100%; /* Empieza justo debajo del botón */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: 10px; /* Espacio entre el botón y el letrero */
}

/* La flechita ahora apunta hacia ARRIBA */
.soon-badge::after {
    content: "";
    position: absolute;
    bottom: 100%; /* Se coloca en la parte superior del letrero */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent; /* Flecha hacia arriba */
}

/* Animación de entrada hacia abajo */
.soon-badge.is-visible {
    opacity: 1;
    visibility: visible;
    margin-top: 15px; /* Pequeño desplazamiento al aparecer */
}