﻿/* =====================================================
   POSEIDON THEME â€” header.css
   GAP-style mega menu + inline search
   ===================================================== */

:root {
    --poseidon-header-bg:        rgba(255,255,255,1);
    --poseidon-header-bg-scroll: rgba(255,255,255,0.96);
    --poseidon-mega-bg:          rgba(255,255,255,0.98);
    --poseidon-submenu-hover:    rgba(0,0,0,0.04);
    --poseidon-nav-color:        #231f20;
    --poseidon-nav-color-scroll: #231f20;
    --poseidon-accent:           #67bf99;
    --poseidon-speed:            0.25s;
    --poseidon-topbar-bg:        rgba(26,26,26,1);
    --poseidon-topbar-color:     #ffffff;
    --poseidon-muted:            #6b7280;
    --poseidon-border:           rgba(0,0,0,0.08);
    --poseidon-header-h:         64px;
    --poseidon-topbar-h:         36px;
    --poseidon-font:             'Inter', sans-serif;
    --poseidon-container:        1280px;
}

.poseidon-header *, .poseidon-header *::before, .poseidon-header *::after { box-sizing: border-box; }

/* =====================================================
   TOPBAR
   ===================================================== */
.poseidon-topbar {
    background: var(--poseidon-topbar-bg);
    color: var(--poseidon-topbar-color);
    height: var(--poseidon-topbar-h);
    width: 100%;
}
.poseidon-topbar__inner {
    max-width: var(--poseidon-container);
    margin: 0 auto; padding: 0 24px; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.poseidon-topbar__links { display: flex; list-style: none; margin: 0; padding: 0; }
.poseidon-topbar__links li a {
    display: block; padding: 4px 10px; font-size: 12px; font-weight: 400;
    color: var(--poseidon-topbar-color); opacity: .75;
    transition: opacity var(--poseidon-speed);
}
.poseidon-topbar__links li a:hover { opacity: 1; }
.poseidon-topbar__social { display: flex; align-items: center; gap: 6px; }
.poseidon-topbar__social-link {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    color: var(--poseidon-topbar-color); opacity: .7;
    transition: opacity var(--poseidon-speed), transform var(--poseidon-speed);
}
.poseidon-topbar__social-link:hover { opacity: 1; transform: translateY(-1px); }
.poseidon-topbar__social-link svg { width: 13px; height: 13px; }

/* =====================================================
   HEADER PRINCIPAL
   ===================================================== */
.poseidon-header {
    position: sticky; top: 0; z-index: 1000;
    width: 100%; font-family: var(--poseidon-font);
}

.poseidon-main-header {
    background: var(--poseidon-header-bg);
    height: var(--poseidon-header-h); width: 100%;
    transition: background var(--poseidon-speed), box-shadow var(--poseidon-speed);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.poseidon-header.is-scrolled .poseidon-main-header {
    background: var(--poseidon-header-bg-scroll);
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

/* Hover del header: mismo color de fondo que el scroll */
.poseidon-main-header:hover {
    background: var(--poseidon-header-bg-scroll);
}

/* Color de texto fijo durante scroll/hover â€” garantiza legibilidad */
.poseidon-header.is-scrolled .poseidon-nav__link,
.poseidon-main-header:hover .poseidon-nav__link,
.poseidon-header.is-scrolled .poseidon-logo__text,
.poseidon-main-header:hover .poseidon-logo__text {
    color: var(--poseidon-nav-color-scroll);
}

.poseidon-header.is-scrolled .poseidon-nav__chevron,
.poseidon-main-header:hover .poseidon-nav__chevron {
    color: var(--poseidon-nav-color-scroll);
}

/* Esconder topbar y announcement bar al hacer scroll */
.poseidon-header__above {
    max-height: 100px;
    overflow: hidden;
    transition: max-height var(--poseidon-speed) ease, opacity var(--poseidon-speed) ease;
}
.poseidon-header.is-scrolled .poseidon-header__above {
    max-height: 0;
    opacity: 0;
}

.poseidon-header.is-scrolled .poseidon-ann {
    /* announcement bar below the nav */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height var(--poseidon-speed) ease, opacity var(--poseidon-speed) ease;
}

.poseidon-main-header__inner {
    max-width: var(--poseidon-container);
    margin: 0 auto; padding: 0 24px; height: 100%;
    display: flex; align-items: center; gap: 0;
}

/* â”€â”€ Logo â”€â”€ */
.poseidon-logo { flex-shrink: 0; margin-right: 32px; }
.poseidon-logo a img { height: 34px; width: auto; display: block; }
.poseidon-logo__text {
    font-size: 22px; font-weight: 700;
    color: var(--poseidon-nav-color); letter-spacing: -.5px; white-space: nowrap;
}

/* â”€â”€ Nav â”€â”€ */
.poseidon-nav { display: flex; height: 100%; }

.poseidon-nav__list {
    display: flex; align-items: center; height: 100%;
    list-style: none; margin: 0; padding: 0; gap: 0;
}

.poseidon-nav__item {
    position: static; height: 100%; display: flex; align-items: center;
}

.poseidon-nav__link {
    display: flex; align-items: center; gap: 4px;
    height: 100%; padding: 0 14px;
    font-size: 14px; font-weight: 500;
    color: var(--poseidon-nav-color); white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--poseidon-speed), border-color var(--poseidon-speed);
    text-decoration: none; cursor: pointer;
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--poseidon-font);
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.poseidon-nav__link:hover,
.poseidon-nav__item.is-active > .poseidon-nav__link,
.poseidon-nav__item--has-dropdown:hover > .poseidon-nav__link {
    border-bottom-color: var(--poseidon-nav-color);
}

/* Ãtem con clase "accent" en el admin */
.poseidon-nav__item.accent > .poseidon-nav__link {
    color: var(--poseidon-accent);
}

.poseidon-nav__chevron {
    flex-shrink: 0; opacity: .5;
    transition: transform var(--poseidon-speed), opacity var(--poseidon-speed);
}
.poseidon-nav__item--has-dropdown:hover > .poseidon-nav__link .poseidon-nav__chevron {
    transform: rotate(180deg); opacity: .8;
}

/* =====================================================
   MEGA MENÃš â€” 100% ancho, columnas centradas
   ===================================================== */
.poseidon-mega-menu {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: var(--poseidon-mega-bg);
    border-bottom: 1px solid var(--poseidon-border);
    box-shadow: 0 15px 18px rgba(0, 0, 0, 0.05);
    opacity: 0; visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--poseidon-speed), visibility var(--poseidon-speed), transform var(--poseidon-speed);
    pointer-events: none;
    z-index: 999;
}

.poseidon-nav__item--has-dropdown:hover > .poseidon-mega-menu,
.poseidon-nav__item--has-dropdown:focus-within > .poseidon-mega-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0); pointer-events: auto;
}

/* Inner: imagen izq + columnas centradas + imagen der */
.poseidon-mega-menu__inner {
    max-width: var(--poseidon-container);
    margin: 0 auto; padding: 32px 24px 36px;
    display: flex; align-items: flex-start; gap: 0;
}

/* Contenedor de imÃ¡genes lado derecho */
.poseidon-mega-menu__images {
    flex-shrink: 0; display: flex; gap: 12px;
    width: 0; overflow: hidden;
    transition: width var(--poseidon-speed);
}

.poseidon-mega-menu__images.has-img {
    width: 392px; /* 2 Ã— 190px + gap 12px */;
    margin-left: 32px;
}

.poseidon-mega-menu__img {
    width: 190px; flex-shrink: 0;
}

.poseidon-mega-menu__img img {
    width: 100%; display: block;
    border-radius: 4px;
    aspect-ratio: 3/4; object-fit: cover;
}

/* Columnas: alineadas a la izquierda */
.poseidon-mega-menu__columns {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* Cada columna */
.poseidon-mega-menu__col {
    min-width: 150px;
    /* NO flex:1 â†’ asÃ­ no se estiran, quedan centradas */
}

/* TÃ­tulo de columna */
.poseidon-mega-menu__col-title {
    display: block;
    font-size: 14px; font-weight: 700;
    color: var(--poseidon-nav-color);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--poseidon-border);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Lista de links */
.poseidon-mega-menu__col-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0;
}

/* Cada link */
.poseidon-mega-menu__col-link {
    display: block;
    padding: 6px 8px;
    font-size: 13px; font-weight: 400;
    color: var(--poseidon-nav-color);
    border-radius: 4px;
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
    text-decoration: none; white-space: nowrap;
}

.poseidon-mega-menu__col-link:hover {
    background: var(--poseidon-submenu-hover);
}

.poseidon-mega-menu__col-link.is-accent {
    color: var(--poseidon-accent); font-weight: 500;
}

.poseidon-mega-menu__col-link.is-accent:hover {
    background: var(--poseidon-submenu-hover);
}

/* =====================================================
   BUSCADOR INTEGRADO
   ===================================================== */

/* Wrapper: se empuja al final de la nav con margin-left: auto */
.poseidon-search-wrap {
    position: static; /* el panel de resultados es absoluto al .poseidon-main-header */
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0 0 0 24px;
}

/* Formulario: solo border-bottom, sin caja */
.poseidon-search-form {
    display: flex;
    align-items: center;
    height: 100%;
    border-bottom: 1.5px solid var(--poseidon-nav-color);
    gap: 0;
}

/* Input siempre visible, sin background ni bordes propios */
.poseidon-search-input {
    width: 140px;
    height: 100%;
    padding: 0 6px 0 0;
    font-size: 14px;
    font-family: var(--poseidon-font);
    color: var(--poseidon-nav-color);
    background: transparent;
    border: none;
    outline: none;
    transition: width var(--poseidon-speed);
}

.poseidon-search-input::placeholder {
    color: var(--poseidon-muted);
    font-weight: 400;
}

/* Se expande al hacer focus */
.poseidon-search-input:focus { width: 200px; }

/* BotÃ³n "Clear" â€” aparece cuando hay texto */
.poseidon-search-clear {
    display: none; /* el JS lo muestra */
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-family: var(--poseidon-font);
    color: var(--poseidon-muted);
    padding: 0 8px 0 0;
    white-space: nowrap;
    line-height: 1;
    transition: color var(--poseidon-speed);
}
.poseidon-search-clear:hover { color: var(--poseidon-nav-color); }

/* Ãcono de bÃºsqueda */
.poseidon-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--poseidon-nav-color);
    padding: 0;
    flex-shrink: 0;
}
.poseidon-search-btn svg { display: block; }

/* â”€â”€ Panel de resultados â”€â”€
   Mismo aspecto que el mega menÃº, pero posicionado
   desde el borde derecho del header */
.poseidon-search-results {
    /* Hereda todo de .poseidon-mega-menu */
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    background: var(--poseidon-mega-bg);
    border-bottom: 1px solid var(--poseidon-border);
    box-shadow: 0 15px 18px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--poseidon-speed), visibility var(--poseidon-speed), transform var(--poseidon-speed);
    pointer-events: none;
    z-index: 999;
}

.poseidon-search-results.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.poseidon-search-results__inner {
    max-width: var(--poseidon-container);
    margin: 0 auto;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Estado: "Buscandoâ€¦" / "N resultados" / "Sin resultados" */
.poseidon-search-results__status {
    font-size: 12px;
    color: var(--poseidon-muted);
    letter-spacing: .2px;
}

/* Columnas de resultados â€” sin centrado, alineadas a la izquierda */
.poseidon-search-results__cols {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

/* "Ver todos los resultados" â€” separador al fondo del panel */
.poseidon-search-view-all {
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--poseidon-border);
    margin-top: 4px;
}

.poseidon-search-view-all__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--poseidon-nav-color);
    text-decoration: none;
    letter-spacing: .1px;
    transition: color var(--poseidon-speed), gap var(--poseidon-speed);
}

.poseidon-search-view-all__link:hover {
    color: var(--poseidon-accent);
    gap: 10px;
}

/* Skeleton loader */
.poseidon-search-skeleton {
    display: flex; gap: 40px; width: 100%;
}
.poseidon-search-skeleton__col {
    flex: 1; min-width: 120px;
    display: flex; flex-direction: column; gap: 10px;
}
.poseidon-search-skeleton__line {
    height: 11px; border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.06) 0%,
        rgba(0,0,0,.02) 50%,
        rgba(0,0,0,.06) 100%
    );
    background-size: 200% 100%;
    animation: poseidon-shimmer 1.3s ease-in-out infinite;
}
.poseidon-search-skeleton__line.is-title  { width: 55%; height: 13px; margin-bottom: 2px; }
.poseidon-search-skeleton__line.is-short  { width: 45%; }
.poseidon-search-skeleton__line.is-medium { width: 70%; }
.poseidon-search-skeleton__line.is-long   { width: 85%; }

@keyframes poseidon-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   BUSCADOR â€” BLOQUE "TRENDING" (categorÃ­as sugeridas)
   Visible al hacer click/focus en el input vacÃ­o.
   ===================================================== */
.poseidon-search-trending {
    display: none;
    flex-direction: column;
    gap: 14px;
}
.poseidon-search-trending.is-visible { display: flex; }

.poseidon-search-trending__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--poseidon-nav-color);
}

.poseidon-search-trending__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.poseidon-search-trending__tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--poseidon-nav-color);
    border: 1px solid var(--poseidon-border);
    text-decoration: none;
    background: transparent;
    transition: background var(--poseidon-speed), border-color var(--poseidon-speed);
    white-space: nowrap;
}

.poseidon-search-trending__tag:hover {
    background: var(--poseidon-submenu-hover);
    border-color: var(--poseidon-nav-color);
}

/* Oculta resultados/columnas mientras el bloque trending estÃ¡ visible */
.poseidon-search-trending.is-visible ~ .poseidon-search-results__status,
.poseidon-search-trending.is-visible ~ .poseidon-search-results__cols {
    display: none;
}

/* =====================================================
   BUSCADOR â€” RESULTADOS DE PRODUCTOS (WooCommerce)
   Tarjetas con imagen + tÃ­tulo + precio.
   ===================================================== */
.poseidon-search-products {
    width: 100%;
}

.poseidon-search-products__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--poseidon-nav-color);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--poseidon-border);
}

.poseidon-search-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.poseidon-search-product-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--poseidon-nav-color);
}

.poseidon-search-product-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    background: var(--poseidon-submenu-hover, #f2f2f2);
}

.poseidon-search-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--poseidon-speed);
}

.poseidon-search-product-card:hover .poseidon-search-product-card__img img {
    transform: scale(1.03);
}

.poseidon-search-product-card__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.poseidon-search-product-card:hover .poseidon-search-product-card__title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.poseidon-search-product-card__price {
    font-size: 13px;
    color: var(--poseidon-nav-color);
}

.poseidon-search-product-card__price del {
    color: var(--poseidon-muted);
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

.poseidon-search-product-card__price ins {
    text-decoration: none;
    font-weight: 600;
}

/* Highlight del tÃ©rmino en los resultados */
.poseidon-search-highlight {
    font-weight: 600;
    /* no cambia color, solo negrita â€” igual que GAP */
}

/* =====================================================
   LADO DERECHO
   ===================================================== */
.poseidon-header-right {
    flex-shrink: 0; display: flex; align-items: center;
    gap: 10px; margin-left: 20px;
}

.poseidon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; font-size: 13px; font-weight: 500;
    border-radius: 50px; font-family: var(--poseidon-font);
    cursor: pointer; white-space: nowrap;
    border: 1.5px solid transparent; text-decoration: none;
    transition: background var(--poseidon-speed), color var(--poseidon-speed),
                border-color var(--poseidon-speed), box-shadow var(--poseidon-speed);
}
.poseidon-btn--outline {
    color: var(--poseidon-nav-color); border-color: var(--poseidon-border, rgba(0,0,0,.1)); background: transparent;
}
.poseidon-btn--outline:hover { border-color: var(--poseidon-nav-color); background: var(--poseidon-focus, rgba(0,0,0,.04)); }
.poseidon-btn--fill { background: var(--poseidon-nav-color); color: #fff; border-color: var(--poseidon-nav-color); }
.poseidon-btn--fill:hover { background: var(--poseidon-accent-hover, #333); border-color: var(--poseidon-accent-hover, #333); }

/* Hamburguesa */
.poseidon-hamburger {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 34px; height: 34px;
    background: transparent; border: none; cursor: pointer;
    padding: 4px; border-radius: 5px;
    transition: background var(--poseidon-speed);
}
.poseidon-hamburger:hover { background: var(--poseidon-focus, rgba(0,0,0,.04)); }
.poseidon-hamburger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--poseidon-nav-color); border-radius: 2px;
    transition: transform var(--poseidon-speed), opacity var(--poseidon-speed);
    transform-origin: center;
}
.poseidon-hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.poseidon-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.poseidon-hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================
   MENÃš MÃ“VIL
   ===================================================== */
.poseidon-mobile-menu {
    position: fixed; top: 0; right: 0;
    width: min(340px, 90vw); height: 100dvh;
    background: var(--poseidon-mobile-bg, var(--poseidon-surface, #fff));
    box-shadow: -4px 0 32px rgba(0,0,0,.12);
    z-index: 1100; overflow-y: auto; padding: 70px 0 40px;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.poseidon-mobile-menu.is-open { transform: translateX(0); }
.poseidon-mobile-menu__list { list-style: none; padding: 0; margin: 0; }
.poseidon-mobile-menu__list .menu-item-has-children {
    display: flex; flex-wrap: wrap;
}
.poseidon-mobile-menu__list .menu-item-has-children > a {
    flex: 1; min-width: 0;
}
.poseidon-mobile-menu__list .menu-item-has-children > .sub-menu {
    width: 100%;
}
.poseidon-mobile-menu__list li a {
    display: block;
    padding: var(--poseidon-mobile-padding-y, 13px) var(--poseidon-mobile-padding-x, 24px);
    font-size: var(--poseidon-mobile-font-size, 14px);
    font-weight: var(--poseidon-mobile-font-weight, 500);
    letter-spacing: var(--poseidon-mobile-letter-spacing, 0em);
    color: var(--poseidon-mobile-color, var(--poseidon-text-body, #1a1a1a));
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
    text-decoration: none;
}
.poseidon-mobile-menu__list li a:hover,
.poseidon-mobile-menu__list li.current-menu-item > a {
    color: var(--poseidon-mobile-hover-color, var(--poseidon-accent));
    background: var(--poseidon-mobile-hover-bg, var(--poseidon-focus, rgba(0,0,0,.04)));
}
.poseidon-mobile-chevron {
    transition: transform .25s ease;
}
.poseidon-mobile-menu__list .menu-item-has-children.is-open .poseidon-mobile-chevron {
    transform: rotate(90deg);
}
.poseidon-mobile-menu__list .sub-menu li a {
    padding-left: calc(var(--poseidon-mobile-padding-x, 24px) + 16px);
    font-weight: 400;
    font-size: calc(var(--poseidon-mobile-font-size, 14px) - 1px);
}
.poseidon-mobile-menu__list .sub-menu .sub-menu li a {
    padding-left: calc(var(--poseidon-mobile-padding-x, 24px) + 32px);
    color: var(--poseidon-muted);
    font-size: calc(var(--poseidon-mobile-font-size, 14px) - 2px);
}
.poseidon-mobile-menu__cta {
    display: flex; flex-direction: column; gap: 10px;
    padding: var(--poseidon-mobile-padding-x, 24px);
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0,.07);
}
.poseidon-mobile-menu__cta .poseidon-btn { width: 100%; justify-content: center; padding: 12px 18px; }

/* =====================================================
   OVERLAY
   ===================================================== */
.poseidon-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35); z-index: 1050;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.poseidon-overlay.is-visible { opacity: 1; visibility: visible; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .poseidon-nav { display: none; }
    .poseidon-hamburger { display: flex; }
    .poseidon-header-right .poseidon-btn { display: none; }
    .poseidon-search-wrap { display: none; }
    .poseidon-main-header__inner { justify-content: space-between; }
    .poseidon-header-right { margin-left: 0; }
}
@media (max-width: 640px) {
    .poseidon-topbar__nav { display: none; }
    .poseidon-topbar__inner { justify-content: flex-end; padding: 0 16px; }
    .poseidon-main-header__inner { padding: 0 16px; }
}

/* =====================================================
   ACCESIBILIDAD
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
.poseidon-btn:focus-visible,
.poseidon-hamburger:focus-visible,
.poseidon-nav__link:focus-visible {
    outline: 2px solid var(--poseidon-accent); outline-offset: 2px;
}

/* =====================================================
   ÃCONO DE USUARIO + DROPDOWN
   ===================================================== */
.poseidon-user-wrap {
    position: relative;
    flex-shrink: 0;
}

.poseidon-user-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: transparent; border: none; cursor: pointer;
    color: var(--poseidon-nav-color);
    border-radius: 50%;
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
    padding: 0;
}
.poseidon-user-btn:hover { background: var(--poseidon-focus, rgba(0,0,0,.04)); }
.poseidon-user-btn svg  { display: block; pointer-events: none; }

/* Dropdown panel */
.poseidon-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: var(--poseidon-surface, #fff);
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    padding: 18px 18px 14px;
    z-index: 1200;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
    pointer-events: none;
}
.poseidon-user-dropdown.is-open {
    opacity: 1; visibility: visible; transform: translateY(0);
    pointer-events: auto;
}
/* Flecha decorativa */
.poseidon-user-dropdown::before {
    content: '';
    position: absolute; top: -6px; right: 12px;
    width: 10px; height: 10px;
    background: var(--poseidon-surface, #fff); border-left: 1px solid rgba(0,0,0,.09);
    border-top: 1px solid rgba(0,0,0,.09);
    transform: rotate(45deg);
}

.poseidon-user-dropdown__greeting {
    font-size: 13px; color: var(--poseidon-nav-color);
    margin: 0 0 14px; line-height: 1.4;
}
.poseidon-user-dropdown__tagline {
    font-size: 13px; font-weight: 600; color: var(--poseidon-nav-color);
    margin: 0 0 12px; letter-spacing: -.01em;
}

/* BotÃ³n "Iniciar sesiÃ³n" */
.poseidon-user-dropdown__cta-primary {
    display: block; text-align: center;
    padding: 10px 16px; margin-bottom: 8px;
    font-size: 13px; font-weight: 600; font-family: var(--poseidon-font);
    background: var(--poseidon-nav-color); color: #fff;
    border-radius: 6px; text-decoration: none;
    transition: background var(--poseidon-speed);
}
.poseidon-user-dropdown__cta-primary:hover { background: var(--poseidon-accent-hover, #333); }

/* Enlace "Â¿Nuevo aquÃ­? RegÃ­strate" */
.poseidon-user-dropdown__cta-secondary {
    display: block; text-align: center;
    font-size: 12px; font-weight: 500; color: var(--poseidon-muted);
    text-decoration: underline; text-underline-offset: 2px;
    margin-bottom: 6px;
    transition: color var(--poseidon-speed);
}
.poseidon-user-dropdown__cta-secondary:hover { color: var(--poseidon-nav-color); }

/* Separador */
.poseidon-user-dropdown__sep {
    height: 1px; background: rgba(0,0,0,.07);
    margin: 10px 0;
}

/* Nav de links */
.poseidon-user-dropdown__nav { display: flex; flex-direction: column; gap: 0; }

.poseidon-user-dropdown__link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 4px; font-size: 13px; font-weight: 400;
    color: var(--poseidon-nav-color); text-decoration: none;
    border-radius: 5px;
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
}
.poseidon-user-dropdown__link:hover { background: var(--poseidon-focus, rgba(0,0,0,.04)); padding-left: 8px; }
.poseidon-user-dropdown__link svg { flex-shrink: 0; color: var(--poseidon-muted); }
.poseidon-user-dropdown__link--logout { color: var(--poseidon-error-text, #c00); margin-top: 2px; }
.poseidon-user-dropdown__link--logout svg { color: var(--poseidon-error-text, #c00); }
.poseidon-user-dropdown__link--logout:hover { background: rgba(192,57,43,.06); }

/* =====================================================
   ÃCONO DEL CARRITO
   ===================================================== */
.poseidon-cart-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: transparent; border: none; cursor: pointer;
    color: var(--poseidon-nav-color); border-radius: 50%; padding: 0;
    transition: background var(--poseidon-speed);
    flex-shrink: 0;
}
.poseidon-cart-btn:hover { background: var(--poseidon-focus, rgba(0,0,0,.04)); }
.poseidon-cart-btn svg   { display: block; pointer-events: none; }

/* Badge numÃ©rico */
.poseidon-cart-btn__badge {
    position: absolute; top: 0; right: 0;
    min-width: 17px; height: 17px;
    background: var(--poseidon-accent, #c00000);
    color: #fff; font-size: 10px; font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    border-radius: 999px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; pointer-events: none;
    border: 2px solid #fff;
    transition: transform .2s ease;
}
.poseidon-cart-btn__badge.is-bump { animation: poseidon-badge-bump .3s ease; }
@keyframes poseidon-badge-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* =====================================================
   DRAWER DEL CARRITO (slide desde la derecha)
   ===================================================== */
.poseidon-cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(420px, 95vw);
    height: 100dvh;
    background: var(--poseidon-cart-bg, var(--poseidon-surface, #fff));
    box-shadow: -6px 0 48px rgba(0,0,0,.14);
    z-index: 1200;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.poseidon-cart-drawer.is-open { transform: translateX(0); }

/* Cabecera del drawer */
.poseidon-cart-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    flex-shrink: 0;
}
.poseidon-cart-drawer__title {
    font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--poseidon-cart-title, var(--poseidon-nav-color));
    margin: 0;
}
.poseidon-cart-drawer__close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: transparent; border: none; cursor: pointer;
    color: var(--poseidon-muted); border-radius: 50%; padding: 0;
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
}
.poseidon-cart-drawer__close:hover {
    background: var(--poseidon-focus, rgba(0,0,0,.04)); color: var(--poseidon-nav-color);
}

/* Barra de progreso de envÃ­o gratis */
.poseidon-cart-shipping-bar {
    padding: 14px 24px 18px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    flex-shrink: 0;
}
.poseidon-cart-shipping-bar__text {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--poseidon-cart-item-name, #231f20);
}
.poseidon-cart-shipping-bar__text .woocommerce-Price-amount { font-weight: 700; }
.poseidon-cart-shipping-bar.is-unlocked .poseidon-cart-shipping-bar__text {
    color: var(--poseidon-success-text, #166534);
}

.poseidon-cart-shipping-bar__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: var(--poseidon-fs-track-color, #ececec);
}
.poseidon-cart-shipping-bar__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--poseidon-fs-bar-color, #1a1a1a);
    transition: width .45s cubic-bezier(.4,0,.2,1);
}
.poseidon-cart-shipping-bar.is-unlocked .poseidon-cart-shipping-bar__fill {
    background: var(--poseidon-success-text, #166534);
}

.poseidon-cart-shipping-bar__indicator {
    position: absolute;
    top: 50%; left: 0%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    transition: left .45s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.poseidon-cart-shipping-bar__indicator--dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--poseidon-fs-bar-color, #1a1a1a);
    box-shadow: 0 0 0 3px var(--poseidon-cart-bg, #fff);
}
.poseidon-cart-shipping-bar.is-unlocked .poseidon-cart-shipping-bar__indicator--dot {
    background: var(--poseidon-success-text, #166534);
}
.poseidon-cart-shipping-bar__indicator--icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--poseidon-cart-bg, #fff);
    box-shadow: 0 0 0 2px var(--poseidon-fs-bar-color, #1a1a1a);
    color: var(--poseidon-fs-bar-color, #1a1a1a);
}
.poseidon-cart-shipping-bar__indicator--icon svg { width: 15px; height: 15px; display: block; }
.poseidon-cart-shipping-bar.is-unlocked .poseidon-cart-shipping-bar__indicator--icon {
    box-shadow: 0 0 0 2px var(--poseidon-success-text, #166534);
    color: var(--poseidon-success-text, #166534);
}

/* Cuerpo scrollable */
.poseidon-cart-drawer__body {
    flex: 1; overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

/* Skeleton de carga */
.poseidon-cart-drawer__loading { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.poseidon-cart-skeleton {
    height: 100px; border-radius: 8px;
    background: linear-gradient(90deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.06) 100%);
    background-size: 200% 100%;
    animation: poseidon-shimmer 1.3s ease-in-out infinite;
}
.poseidon-cart-skeleton--short { height: 60px; width: 60%; }

/* Carrito vacÃ­o */
.poseidon-cart-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; min-height: 260px;
    padding: 40px 24px; text-align: center;
    gap: 14px;
}
.poseidon-cart-empty svg { color: var(--poseidon-muted); opacity: .45; }
.poseidon-cart-empty__title {
    font-size: 15px; font-weight: 600; color: var(--poseidon-nav-color); margin: 0;
}
.poseidon-cart-empty__sub {
    font-size: 13px; color: var(--poseidon-muted); margin: 0;
}
.poseidon-cart-empty__link {
    margin-top: 6px; font-size: 13px; font-weight: 600;
    color: var(--poseidon-nav-color);
    text-decoration: underline; text-underline-offset: 2px;
}

/* Lista de Ã­tems */
.poseidon-cart-items { list-style: none; margin: 0; padding: 0; }

.poseidon-cart-item {
    display: flex; gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: relative;
    max-height: 300px;
    opacity: 1;
    overflow: hidden;
    transition: opacity .18s ease, max-height .18s ease .02s, padding .18s ease .02s;
}
.poseidon-cart-item.is-removing {
    opacity: 0;
    max-height: 0;
    padding-top: 0; padding-bottom: 0;
    pointer-events: none;
}

/* Imagen del producto */
.poseidon-cart-item__img {
    flex-shrink: 0;
    width: 100px; height: 130px;
    border-radius: 4px; overflow: hidden;
    background: var(--poseidon-bg, #f9fafb);
}
.poseidon-cart-item__img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Info del producto */
.poseidon-cart-item__info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
    padding-right: 26px; /* espacio para el botÃ³n eliminar */
}

.poseidon-cart-item__name {
    font-size: 13px; font-weight: 600; line-height: 1.35;
    color: var(--poseidon-cart-item-name, var(--poseidon-nav-color)); text-decoration: none;
    display: block;
}
.poseidon-cart-item__name:hover { text-decoration: underline; text-underline-offset: 2px; }

.poseidon-cart-item__attr {
    font-size: 11px; color: var(--poseidon-cart-attr-label, var(--poseidon-muted)); line-height: 1.4;
}
.poseidon-cart-item__attr-val {
    color: var(--poseidon-cart-attr-val, var(--poseidon-accent, #c00000)); font-weight: 500;
}

/* Selector de cantidad */
.poseidon-cart-item__qty-wrap {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--poseidon-cart-item-name, var(--poseidon-nav-color)); border-radius: 6px;
    width: fit-content; margin-top: 6px;
    overflow: hidden;
}
.poseidon-cart-item__qty-btn {
    width: 28px; height: 28px;
    background: transparent; border: none; cursor: pointer;
    color: var(--poseidon-cart-item-name, var(--poseidon-nav-color)); font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--poseidon-speed);
    flex-shrink: 0;
}
.poseidon-cart-item__qty-btn:hover { background: var(--poseidon-focus, rgba(0,0,0,.04)); }
.poseidon-cart-item__qty-num {
    min-width: 30px; text-align: center;
    font-size: 13px; font-weight: 600; color: var(--poseidon-cart-item-name, var(--poseidon-nav-color));
    border-left: 1px solid var(--poseidon-border, rgba(0,0,0,.1)); border-right: 1px solid var(--poseidon-border, rgba(0,0,0,.1));
    padding: 0 6px; line-height: 28px;
    user-select: none;
}

/* Precios */
.poseidon-cart-item__price {
    margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.poseidon-cart-item__price del {
    font-size: 12px; color: var(--poseidon-muted);
    text-decoration: line-through;
}
.poseidon-cart-item__price ins {
    font-size: 13px; font-weight: 600; color: var(--poseidon-cart-price, var(--poseidon-nav-color));
    text-decoration: none;
}
.poseidon-cart-item__price .poseidon-price-single {
    font-size: 13px; font-weight: 600; color: var(--poseidon-cart-price, var(--poseidon-nav-color));
}

/* BotÃ³n eliminar */
.poseidon-cart-item__remove {
    position: absolute; top: 18px; right: 20px;
    width: 26px; height: 26px;
    background: transparent; border: none; cursor: pointer;
    color: var(--poseidon-cart-remove-color, var(--poseidon-muted)); border-radius: 4px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
}
.poseidon-cart-item__remove:hover {
    background: var(--poseidon-focus, rgba(0,0,0,.04)); color: var(--poseidon-cart-item-name, var(--poseidon-nav-color));
}

/* â”€â”€ Footer del drawer â”€â”€ */
.poseidon-cart-drawer__footer {
    flex-shrink: 0; padding: 18px 24px 24px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: var(--poseidon-surface, #fff);
}

/* Totales */
.poseidon-cart-drawer__totals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.poseidon-cart-total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--poseidon-nav-color);
}
.poseidon-cart-total-row--discount { color: var(--poseidon-error-text, #c00); }
.poseidon-cart-total-row--main { font-size: 15px; font-weight: 700; margin-top: 4px; }
.poseidon-cart-total-row--main .poseidon-cart-total-row__val { font-size: 16px; }

.poseidon-cart-drawer__shipping-note {
    font-size: 11px; color: var(--poseidon-muted);
    margin: 0 0 14px; text-align: center;
}

/* Botones del footer */
.poseidon-cart-drawer__actions { display: flex; flex-direction: column; gap: 8px; }

.poseidon-cart-drawer__btn-checkout {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 18px;
    background: var(--poseidon-nav-color); color: #fff;
    font-size: 14px; font-weight: 700; letter-spacing: .04em;
    font-family: var(--poseidon-font); text-decoration: none;
    border-radius: 6px;
    transition: background var(--poseidon-speed), color var(--poseidon-speed);
    text-align: center;
}
.poseidon-cart-drawer__btn-cart > .lucide-shopping-bag {
    width: 14px; height: 14px; flex: 0 0 14px;
}
.poseidon-cart-drawer__btn-checkout:hover { background: var(--poseidon-accent-hover, #333); }

.poseidon-cart-drawer__btn-cart {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 18px;
    background: transparent;
    border: 1.5px solid var(--poseidon-border, rgba(0,0,0,.1)); color: var(--poseidon-nav-color);
    font-size: 13px; font-weight: 500; font-family: var(--poseidon-font);
    text-decoration: none; border-radius: 6px;
    transition: border-color var(--poseidon-speed), background var(--poseidon-speed), color var(--poseidon-speed);
}
.poseidon-cart-drawer__btn-cart:hover { border-color: var(--poseidon-nav-color); background: var(--poseidon-focus, rgba(0,0,0,.04)); }

.poseidon-cart-drawer__btn-continue {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--poseidon-muted); font-family: var(--poseidon-font);
    text-align: center; padding: 4px 0;
    text-decoration: underline; text-underline-offset: 2px;
    transition: color var(--poseidon-speed);
}
.poseidon-cart-drawer__btn-continue:hover { color: var(--poseidon-nav-color); }

/* Responsivo */
@media (max-width: 1024px) {
    .poseidon-user-btn,
    .poseidon-cart-btn { display: flex; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANNOUNCEMENT BAR (slider de frases)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.poseidon-ann {
    background: var(--poseidon-ann-bg, #111);
    color: var(--poseidon-ann-color, #fff);
    width: 100%;
    overflow: hidden;
}
.poseidon-ann__track {
    display: flex;
    width: max-content;
    animation: poseidon-ann-marquee 30s linear infinite;
    padding-top: calc(8px + var(--poseidon-ann-padding-y, 0px));
    padding-bottom: calc(8px + var(--poseidon-ann-padding-y, 0px));
}
.poseidon-ann__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.poseidon-ann__text {
    font-size: var(--poseidon-ann-font-size, 12px);
    font-weight: var(--poseidon-ann-font-weight, 400);
    letter-spacing: .3px;
}
.poseidon-ann__sep {
    display: inline-flex;
    align-items: center;
    margin: 0 24px;
    opacity: .5;
}
.poseidon-ann__sep svg {
    display: block;
    width: 12px;
    height: 12px;
}

@keyframes poseidon-ann-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}