/* Terxo Mobile — Index Neo-Brutalism */

@import url('./terxo-force-light.css');
@import url('./terxo-mobile.css');
@import url('./tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

:root {
    --hero-sidebar-width: min(380px, 28vw);
    --ai-fab-size: 64px;
    --ai-fab-offset: 28px;
    --hero-sidebar-v-gap: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--neo-bg);
    color: var(--neo-ink);
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(var(--neo-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--neo-ink) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    background-color: var(--neo-bg);
    overflow-x: clip;
    max-width: 100%;
}

#bg-canvas {
    display: none;
}

/* ─── HEADER ─── */
.menu-superior {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height, 76px);
    background: var(--neo-yellow);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    border-bottom: var(--neo-border);
    box-shadow: 0 4px 0 var(--neo-ink);
    box-sizing: border-box;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background-color: var(--neo-surface);
    background-image: url('../images/terxo-logo.png');
    background-size: cover;
    background-position: center;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.logo-circle:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
}

.logo-circle.hidden {
    display: none;
}

.titulo-menu {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--neo-ink);
    margin-left: 4px;
    line-height: 1;
}

.menu-superior ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

.menu-superior ul li {
    display: block;
}

.btn-marcas,
.btn-favoritos {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 0 !important;
    background: var(--neo-surface) !important;
    color: var(--neo-ink) !important;
    border: var(--neo-border) !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    box-shadow: var(--neo-shadow-sm) !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn-favoritos {
    background: #ffe566 !important;
}

.btn-marcas:hover,
.btn-favoritos:hover {
    background: var(--brand-blue) !important;
    color: #fff !important;
    border: var(--neo-border) !important;
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow) !important;
}

.btn-circular {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    cursor: pointer;
    text-decoration: none;
}

/* compare.css defines full neo header + modal styles */

/* Search */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.search-form input[type="search"] {
    width: 200px;
    max-width: 36vw;
    padding: 10px 12px;
    border-radius: 0;
    border: var(--neo-border);
    background: var(--neo-surface);
    color: var(--neo-ink);
    font-family: var(--font-body);
    font-weight: 500;
    outline: none;
    box-shadow: var(--neo-shadow-sm);
    transition: width 0.18s ease, box-shadow 0.12s ease;
}

.search-form input[type="search"]::placeholder {
    color: rgba(10, 10, 10, 0.45);
}

.search-form input[type="search"]:focus {
    box-shadow: var(--neo-shadow);
    transform: translate(-1px, -1px);
    border-color: var(--neo-ink);
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-mobile-trigger {
    display: none;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--neo-surface);
    border: var(--neo-border);
    border-radius: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--neo-shadow);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 2px solid var(--neo-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.1s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--neo-yellow);
}

.suggestion-item.is-focused {
    background: var(--neo-yellow) !important;
}

.suggestion-empty {
    padding: 14px 12px;
    font-family: var(--font-body) !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.55);
    text-align: center;
    line-height: 1.4;
}

.suggestion-item img {
    width: 40px !important;
    height: 54px !important;
    min-width: 40px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    border: 2px solid var(--neo-ink) !important;
    border-radius: 0 !important;
    box-shadow: 2px 2px 0 var(--neo-ink) !important;
    background: linear-gradient(180deg, #f7f4ea 0%, #ebe6d8 100%) !important;
    padding: 4px 3px 2px !important;
    flex-shrink: 0;
    display: block;
}

.suggestion-name {
    font-family: var(--font-display) !important;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neo-ink);
    margin-bottom: 2px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.suggestion-brand {
    font-family: var(--font-body);
    color: rgba(10, 10, 10, 0.55);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    margin-left: 8px;
    background: var(--neo-surface);
    border: var(--neo-border);
    color: var(--neo-ink);
    padding: 8px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--neo-shadow-sm);
    font-family: var(--font-display);
    font-weight: 800;
}

/* ─── HERO ─── */
.hero-neo {
    margin-bottom: 8px;
    min-width: 0;
    width: 100%;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    max-width: 100%;
}

.hero-chip {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(0.62rem, 2.2vw, 0.72rem);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 8px 12px;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    background: var(--neo-yellow);
    color: var(--neo-ink);
    line-height: 1.1;
    white-space: nowrap;
}

.hero-chip--mint {
    background: var(--neo-mint);
}

.hero-chip--blue {
    background: var(--brand-blue);
    color: #fff;
}

.intro-contenedor {
    margin: calc(var(--header-height, 76px) + 32px) 0 40px;
    padding: 0 var(--page-gutter);
    max-width: 1320px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.hero-main {
    min-width: 0;
    width: 100%;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.hero-sidebar-block {
    background: var(--neo-surface);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    padding: clamp(14px, 2vw, 18px);
    box-sizing: border-box;
}

.hero-sidebar-title {
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 1.6vw, 0.85rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neo-ink);
    margin-bottom: 12px;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.hero-featured-link {
    display: block;
    text-align: left;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.hero-featured-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(6px, 1vw, 10px);
    align-items: stretch;
    min-width: 0;
}

.hero-featured-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 0;
}

.hero-featured-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.hero-featured-label {
    display: block;
}

.hero-featured-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0;
}

.hero-featured-score.phone-cp-row {
    margin-top: auto;
}

.hero-featured-link--enter {
    animation: heroFeaturedEnter 0.38s ease;
}

@keyframes heroFeaturedEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-featured-image {
    width: 96px;
    height: 188px;
    object-fit: contain;
    margin-bottom: 0;
}

.hero-featured-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--neo-ink);
    margin-bottom: 0;
    flex: 0 0 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.hero-featured-badge {
    flex-shrink: 0;
}

.hero-featured-progress {
    width: 100%;
    height: 6px;
    margin-top: 8px;
    background: var(--neo-bg);
    border: 2px solid var(--neo-ink);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-featured-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand-blue);
    transform: scaleX(0);
    transform-origin: left center;
}

@keyframes heroFeaturedProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-featured-link--enter {
        animation: none;
    }

    .hero-featured-progress-bar {
        transform: scaleX(1);
        animation: none !important;
    }
}

.hero-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
    align-content: start;
    padding: 0 3px 3px 0;
}

.hero-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 56px;
    height: auto;
    padding: 8px;
    background: var(--neo-bg);
    border: var(--neo-border);
    box-shadow: 2px 2px 0 var(--neo-ink);
    text-decoration: none;
    color: var(--neo-ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(66, 93, 245, 0.18);
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.hero-quick-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--neo-ink);
}

.hero-quick-card--yellow {
    background: var(--neo-yellow);
}

.hero-quick-card--yellow:hover {
    background: #fff4a8;
}

.hero-quick-card--mint {
    background: var(--neo-mint);
}

.hero-quick-card--mint:hover {
    background: #c8fff0;
}

.hero-quick-card--blue {
    background: var(--brand-blue);
    color: #fff;
}

.hero-quick-card--blue .hero-quick-card-label {
    color: #fff;
}

.hero-quick-card--blue:hover {
    background: var(--brand-blue-dark);
    color: #fff;
}

.hero-quick-card--blue .hero-quick-card-icon {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.hero-quick-card--blue .hero-quick-card-hint {
    color: rgba(255, 255, 255, 0.82);
}

.hero-quick-card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neo-ink);
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
    line-height: 1;
}

.hero-quick-card-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-quick-card-label {
    font-family: var(--font-display);
    font-size: clamp(0.68rem, 1.5vw, 0.76rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: break-word;
}

.hero-quick-card-hint {
    font-family: var(--font-body);
    font-size: clamp(0.58rem, 1.2vw, 0.66rem);
    font-weight: 500;
    line-height: 1.25;
    color: rgba(16, 42, 67, 0.75);
    text-transform: none;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-quick-card-icon,
.hero-quick-card-text,
.hero-quick-card-label,
.hero-quick-card-hint {
    pointer-events: none;
}

/* legacy alias */
.hero-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    background: var(--neo-bg);
    border: var(--neo-border);
    box-shadow: 3px 3px 0 var(--neo-ink);
    font-family: var(--font-display);
    font-size: clamp(0.62rem, 1.4vw, 0.72rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    color: var(--neo-ink);
    line-height: 1.15;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.hero-quick-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--neo-ink);
    background: var(--neo-yellow);
}

.hero-ai-lead {
    font-family: var(--font-body);
    font-size: clamp(0.62rem, 1.2vw, 0.72rem);
    font-weight: 500;
    line-height: 1.35;
    color: rgba(16, 42, 67, 0.78);
    margin: 0 0 8px;
    flex-shrink: 0;
}

.hero-ai-prompts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.hero-ai-prompt {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px;
    background: var(--neo-bg);
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 var(--neo-ink);
    color: var(--neo-ink);
    cursor: pointer;
    touch-action: manipulation;
    text-align: left;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.hero-ai-prompt:hover {
    background: var(--brand-blue-light);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--neo-ink);
}

.hero-ai-prompt-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neo-ink);
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.62rem;
    line-height: 1;
}

.hero-ai-prompt-label {
    font-family: var(--font-body);
    font-size: clamp(0.58rem, 1.1vw, 0.68rem);
    font-weight: 600;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.hero-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hero-ai-chip {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 10px;
    background: var(--neo-bg);
    border: 2px solid var(--neo-ink);
    color: var(--neo-ink);
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.12s, transform 0.12s;
}

.hero-ai-chip:hover {
    background: var(--brand-blue-light);
    transform: translate(-1px, -1px);
}

.hero-ai-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: var(--brand-blue);
    color: #fff;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.hero-ai-cta:hover {
    background: var(--brand-blue-dark);
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
}

/* ─── HERO SIDEBAR DRAWER (móvil) ─── */
.hero-sidebar-overlay,
.hero-sidebar-tab {
    display: none;
}

body.hero-sidebar-drawer-open {
    overflow: hidden;
}

@media (min-width: 1100px) {
    .intro-contenedor {
        padding-right: calc(var(--hero-sidebar-width) + var(--page-gutter) + 12px);
    }

    .hero-layout {
        display: block;
    }

    .hero-main .hero-expand-panel {
        max-width: 100%;
    }

    .hero-sidebar {
        position: fixed;
        top: calc(var(--header-height) + var(--hero-sidebar-v-gap));
        bottom: auto;
        height: fit-content;
        max-height: none;
        right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
        width: var(--hero-sidebar-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        overflow: visible;
        z-index: 900;
    }

    .hero-sidebar-block {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
        padding: clamp(10px, 1.2vw, 14px);
    }

    .hero-sidebar-title {
        flex-shrink: 0;
        margin-bottom: 7px;
        font-size: clamp(0.74rem, 1vw, 0.86rem);
        white-space: normal;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .hero-featured-card {
        flex: 0 0 auto;
        padding: clamp(10px, 1.2vw, 13px);
    }

    .hero-featured-body {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow: visible;
    }

    .hero-featured-main {
        gap: clamp(4px, 0.6vw, 8px);
    }

    .hero-featured-side {
        gap: clamp(4px, 0.5vw, 6px);
    }

    .hero-featured-image {
        align-self: start;
        width: clamp(60px, 6.5vw, 76px);
        height: clamp(114px, 12.5vw, 146px);
    }

    .hero-featured-name {
        font-size: clamp(0.74rem, 1vw, 0.84rem);
        margin-bottom: 0;
    }

    .hero-featured-label {
        font-size: clamp(0.62rem, 0.85vw, 0.7rem);
    }

    .hero-featured-badge {
        font-size: clamp(0.66rem, 0.9vw, 0.76rem);
        padding: 2px 7px;
        min-width: 36px;
    }

    .hero-featured-score .phone-cp-label {
        font-size: clamp(0.62rem, 0.85vw, 0.7rem);
    }

    .hero-featured-score .phone-cp-badge {
        font-size: clamp(0.66rem, 0.9vw, 0.76rem);
        padding: 2px 7px;
        min-width: 36px;
    }

    .hero-featured-progress {
        flex-shrink: 0;
        margin-top: 6px;
        height: 5px;
    }

    .hero-quick-links {
        flex: 0 0 auto;
        padding: clamp(10px, 1.2vw, 13px);
        overflow: visible;
    }

    .hero-quick-links-grid {
        gap: 7px;
        padding: 0 2px 2px 0;
    }

    .hero-quick-card {
        min-height: 58px;
        height: auto;
        padding: 8px;
        gap: 7px;
        align-items: flex-start;
    }

    .hero-quick-card-icon {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
        margin-top: 1px;
    }

    .hero-quick-card-label {
        font-size: clamp(0.72rem, 0.95vw, 0.8rem);
    }

    .hero-quick-card-hint {
        font-size: clamp(0.6rem, 0.8vw, 0.68rem);
        line-height: 1.2;
    }

    .hero-ai-teaser {
        flex: 0 0 auto;
        justify-content: flex-start;
        overflow: visible;
        padding: clamp(10px, 1.2vw, 13px);
    }

    .hero-ai-lead {
        font-size: clamp(0.66rem, 0.88vw, 0.74rem);
        margin-bottom: 7px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-ai-prompts {
        gap: 6px;
        margin-bottom: 7px;
    }

    .hero-ai-prompt {
        padding: 6px 8px;
        gap: 6px;
    }

    .hero-ai-prompt-icon {
        width: 22px;
        height: 22px;
        font-size: 0.64rem;
    }

    .hero-ai-prompt-label {
        font-size: clamp(0.62rem, 0.85vw, 0.7rem);
    }

    .hero-ai-cta {
        flex-shrink: 0;
        padding: 9px 11px;
        font-size: clamp(0.7rem, 0.92vw, 0.78rem);
        line-height: 1.1;
        gap: 6px;
    }

    .hero-ai-cta i {
        font-size: 0.74rem;
    }
}

.intro-titulo {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 5.5vw, 3.1rem);
    font-weight: 800;
    color: var(--neo-ink);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-transform: uppercase;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background: var(--neo-surface);
    border: var(--neo-border);
    box-shadow: 7px 7px 0 var(--neo-ink);
    padding: clamp(18px, 4vw, 28px) clamp(16px, 3.5vw, 24px);
}

.hero-copy-card {
    --hero-stripe: 3px;
    position: relative;
    isolation: isolate;
    background: var(--neo-surface);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    padding: clamp(16px, 3vw, 22px);
    max-width: 62ch;
    box-sizing: border-box;
}

.hero-copy-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    bottom: -3px;
    width: var(--hero-stripe);
    background: var(--neo-ink);
    pointer-events: none;
    z-index: 0;
}

.hero-expand-panel {
    --hero-stripe: 3px;
    position: relative;
    isolation: isolate;
    background: var(--neo-surface);
    border: var(--neo-border);
    box-shadow: 6px 6px 0 var(--neo-ink);
    max-width: 62ch;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    transition: max-width 0.35s ease, box-shadow 0.25s ease;
}

.hero-expand-panel::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    bottom: -3px;
    width: var(--hero-stripe);
    background: var(--neo-ink);
    pointer-events: none;
    z-index: 0;
}

.hero-expand-panel.active {
    max-width: 100%;
    box-shadow: 9px 9px 0 var(--neo-ink);
}

.hero-expand-intro {
    position: relative;
    z-index: 1;
    padding: clamp(16px, 3vw, 22px);
    min-width: 0;
}

.hero-expand-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    overflow: hidden;
}

.hero-expand-panel.active .hero-expand-body {
    grid-template-rows: 1fr;
}

.feature-row-inner {
    overflow: hidden;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 clamp(14px, 3vw, 20px) clamp(14px, 3vw, 20px);
    opacity: 0;
    transition: opacity 0.25s ease 0.05s;
}

.hero-expand-panel.active .feature-row-inner {
    opacity: 1;
    padding-top: 12px;
}

.lead {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 16px;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.intro-texto {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 8px;
    font-size: clamp(0.92rem, 2.2vw, 1.05rem);
    line-height: 1.58;
    color: rgba(10, 10, 10, 0.88);
    margin-bottom: 0;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    font-weight: 500;
}

.intro-texto > span {
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.highlight {
    background: var(--neo-yellow);
    padding: 2px 8px;
    border: 2px solid var(--neo-ink);
    color: var(--neo-ink);
    font-weight: 700;
    display: inline-block;
}

.btn-toggle-features {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-left: auto;
    background: var(--neo-surface);
    color: var(--neo-ink);
    border: var(--neo-border);
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--neo-ink);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-toggle-features:hover {
    background: var(--neo-yellow);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--neo-ink);
}

.hero-expand-panel.active .btn-toggle-features {
    background: var(--neo-yellow);
}

.feature {
    background: var(--neo-bg);
    padding: 16px;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    min-width: 0;
    overflow: hidden;
    transition: transform 0.12s, box-shadow 0.12s;
}

.feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
}

.feature h3 {
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 2vw, 0.92rem);
    margin-bottom: 8px;
    color: var(--neo-ink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.feature-link {
    color: inherit;
    text-decoration: none;
}

.feature-link:hover {
    text-decoration: underline;
}

.feature p {
    font-size: clamp(0.8rem, 1.8vw, 0.92rem);
    line-height: 1.45;
    color: rgba(10, 10, 10, 0.75);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (min-width: 900px) {
    .hero-expand-panel.active .feature-row-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .feature h3 {
        font-size: clamp(0.68rem, 0.85vw, 0.82rem);
    }

    .feature p {
        font-size: clamp(0.78rem, 0.9vw, 0.88rem);
    }
}

.cta-row {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    padding: 14px 22px;
    border: var(--neo-border);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-shadow: var(--neo-shadow-sm);
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn-ghost {
    background: var(--neo-surface);
    border: var(--neo-border);
    padding: 12px 20px;
    color: var(--neo-ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--neo-shadow-sm);
    transition: transform 0.12s, box-shadow 0.12s;
}

.btn-primary:hover,
.btn-ghost:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
}

.btn-ghost:hover {
    background: var(--neo-yellow);
}

/* ─── PHONE GRIDS ─── */
.recent-phones-section {
    padding: 32px 0;
    margin: 28px 0;
    border: var(--neo-border);
    background: var(--neo-surface);
    box-shadow: var(--neo-shadow);
    width: 100%;
}

.recent-phones-inner {
    max-width: 1320px;
    margin: 0;
    padding: 0 var(--page-gutter);
}

.recent-phones-section--spaced {
    margin-top: 18px;
    margin-bottom: 28px;
}

.recent-phones-section h2 {
    font-family: var(--font-display);
    color: var(--neo-ink);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
}

.filters-home-lead,
.best-offers-lead {
    display: none;
}

.filters-home-grid {
    align-items: stretch;
}

.filters-home-grid__panel {
    grid-column: span 4;
    min-width: 0;
}

.filters-home-grid__cta {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 0;
}

.filters-home-grid__cta .ver-novedades-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.filters-home-box {
    width: 100%;
    padding: clamp(16px, 2.5vw, 24px);
    background: #e4e0d4;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
}

.filters-home-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters-home-chip {
    padding: 6px 12px;
    border: var(--neo-border);
    background: #fff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: var(--neo-shadow-sm);
}

.filters-home-chip--mint {
    background: var(--neo-mint, #7dffb3);
}

.filters-home-chip--blue {
    background: var(--neo-blue, #6fa9ff);
}

.best-offers-panel {
    width: 100%;
    padding: clamp(16px, 2.5vw, 24px);
    background: #e4e0d4;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
}

.best-offers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 1.8vw, 20px);
    width: 100%;
}

.best-offers-grid .best-offer-card {
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transition: none;
}

.best-offers-grid .best-offer-card:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.best-offer-sep {
    display: block;
    width: clamp(28px, 6vw, 72px);
    height: 3px;
    background: var(--neo-ink);
    justify-self: center;
}

.best-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 8px 6px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.best-offer-card .recent-phone-image,
.best-offer-card .best-offer-image {
    width: 72px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.best-offer-card .recent-phone-name,
.best-offer-card .best-offer-name {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neo-ink);
    margin-bottom: 6px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    width: 100%;
    min-height: 2.5em;
    max-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.best-offer-price {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border: 2px solid var(--neo-ink);
    background: var(--neo-mint, #7dffb3);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    align-self: center;
}

.recent-phones-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 20px);
    width: 100%;
}

.recent-phones-grid__phones {
    display: contents;
}

.recent-phones-grid__proximamente {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    padding: 0;
}

.recent-phones-grid__cta {
    grid-column: 1 / -1;
    padding: 2px 0 0;
    text-align: left;
    max-width: none;
    margin: 0;
}

.recent-phones-grid__cta .ver-novedades-btn {
    display: inline-block;
}

.recent-phone-card {
    background: var(--neo-bg);
    border: var(--neo-border);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--neo-shadow-sm);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 272px;
    min-height: 272px;
    max-height: 272px;
    min-width: 0;
    width: 100%;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.recent-phone-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--neo-shadow);
    background: var(--neo-yellow);
}

.recent-phone-image {
    width: 72px;
    height: auto;
    max-height: 132px;
    min-height: 96px;
    flex: 1 1 auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.recent-phone-name {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neo-ink);
    margin-bottom: 6px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    width: 100%;
    min-height: 2.5em;
    max-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-phone-date {
    font-size: 0.75rem;
    color: rgba(10, 10, 10, 0.55);
    font-weight: 500;
    margin-bottom: 8px;
    flex-shrink: 0;
    width: 100%;
    line-height: 1.2;
    min-height: 2.4em;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Calidad-Precio: etiqueta + nota en recuadro aparte */
.phone-cp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 4px;
}

.recent-phone-card .phone-cp-row {
    margin-top: auto;
}

.phone-cp-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--neo-ink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.phone-cp-badge {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--neo-ink);
    border: 2px solid var(--neo-ink);
    padding: 4px 10px;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 2px 2px 0 var(--neo-ink);
    line-height: 1.2;
}

.phone-cp-badge.high-score { background: #7dffb3; }
.phone-cp-badge.good-score { background: #a5d6a7; }
.phone-cp-badge.medium-score { background: #c8e6c9; }
.phone-cp-badge.low-score { background: #ffe566; }
.phone-cp-badge.very-low-score { background: #ffcc80; }
.phone-cp-badge.critical-score { background: #ff6b6b; }

/* Legacy — por si queda markup antiguo */
.recent-phone-score {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
    color: rgba(10, 10, 10, 0.65);
    background: var(--neo-surface);
    border: 2px solid var(--neo-ink);
    padding: 4px 8px;
    width: 100%;
    flex-shrink: 0;
}

.recent-phone-score.high-score strong { color: #1b5e20; }
.recent-phone-score.good-score strong { color: #2e7d32; }
.recent-phone-score.medium-score strong { color: #558b2f; }
.recent-phone-score.low-score strong { color: #f9a825; }
.recent-phone-score.very-low-score strong { color: #ef6c00; }
.recent-phone-score.critical-score strong { color: #c62828; }

/* Compare button — neo override */
.btn-plus-compare {
    border-radius: 0 !important;
    border: 2px solid var(--neo-ink) !important;
    background: var(--brand-blue) !important;
    box-shadow: 2px 2px 0 var(--neo-ink) !important;
    font-family: var(--font-display) !important;
    overflow: visible !important;
}

.btn-plus-compare::after {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 0 !important;
    box-shadow: 3px 3px 0 var(--neo-ink) !important;
    font-family: var(--font-display) !important;
    background: var(--neo-yellow) !important;
    color: var(--neo-ink) !important;
}

.btn-plus-compare:hover {
    transform: translate(-1px, -1px) !important;
    box-shadow: 3px 3px 0 var(--neo-ink) !important;
}

.recent-phone-card:hover .btn-plus-compare:hover:not(.compare-anim-in):not(.compare-anim-out),
.modelo:hover .btn-plus-compare:hover:not(.compare-anim-in):not(.compare-anim-out),
.novedad-card:hover .btn-plus-compare:hover:not(.compare-anim-in):not(.compare-anim-out) {
    transform: none !important;
    box-shadow: 2px 2px 0 var(--neo-ink) !important;
}

.btn-plus-compare.selected,
.btn-plus-compare.selected:hover {
    background: var(--neo-mint) !important;
    color: var(--neo-ink) !important;
    opacity: 1 !important;
}

/* ─── Próximamente (iPhone Duo) ─── */
.home-proximamente-band {
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-proximamente-card {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 22px);
    padding: 16px 18px;
    border: var(--neo-border);
    background: var(--neo-surface);
    box-shadow: var(--neo-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s, box-shadow 0.12s;
}

.home-proximamente-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
}

.home-proximamente-thumb {
    width: 56px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.home-proximamente-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.home-proximamente-badge {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e11d48;
}

.home-proximamente-name {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.2;
}

.home-proximamente-date {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.72);
}

/* ─── NOVEDADES CTA ─── */
.ver-novedades-container {
    text-align: left;
    padding: 20px 0;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    max-width: 1320px;
    margin: 0;
}

.ver-novedades-btn {
    display: inline-block;
    background: var(--neo-coral);
    color: var(--neo-ink);
    padding: 16px 32px;
    border: var(--neo-border);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--neo-shadow);
    transition: transform 0.12s, box-shadow 0.12s;
}

.ver-novedades-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--neo-shadow-hover);
    background: #ff8585;
}

/* ─── TERXO-PHOTO ─── */
.terxo-photo-section {
    margin-top: 28px;
    margin-left: var(--page-gutter);
    margin-right: var(--page-gutter);
    padding: 32px 24px;
    background: var(--neo-ink);
    color: #f5f5f5;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow);
    max-width: 1320px;
    min-height: 240px;
    position: relative;
}

.terxo-photo-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.terxo-photo-limited {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.75);
    font-weight: 600;
}

.terxo-photo-new {
    color: var(--neo-yellow);
    font-size: 0.85rem;
    font-weight: 800;
    border: 2px solid var(--neo-yellow);
    padding: 2px 8px;
}

.terxo-photo-info-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: var(--neo-yellow);
    border: 2px solid #fff;
    color: var(--neo-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 #fff;
    transition: transform 0.1s;
}

.terxo-photo-info-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #fff;
}

.terxo-photo-grid {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.terxo-photo-card {
    width: 210px;
    box-sizing: border-box;
}

.terxo-photo-frame {
    width: 100%;
    min-height: 180px;
    background: #fff;
    padding: 14px;
    border: 3px solid #fff;
    box-shadow: 4px 4px 0 var(--neo-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terxo-photo-thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
}

.terxo-photo-card a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.terxo-photo-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    border: 4px solid var(--neo-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.terxo-photo-info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terxo-photo-section:has(.terxo-photo-info-overlay.active) .terxo-photo-info-btn {
    opacity: 0;
    pointer-events: none;
}

.terxo-photo-info-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    padding-top: 16px;
}

.terxo-photo-info-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neo-yellow);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.terxo-photo-info-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.terxo-photo-info-close {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: var(--neo-yellow);
    border: 2px solid #fff;
    color: var(--neo-ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 #fff;
    transition: transform 0.1s;
}

.terxo-photo-info-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #fff;
}

.terxo-photo-cta-wrap {
    margin-top: 22px;
}

.terxo-photo-all-btn {
    background: var(--neo-yellow);
}

.terxo-photo-all-btn:hover {
    background: #ffe566;
}

body.terxo-photo-catalog-body {
    background: #121212 !important;
    background-image: none !important;
    background-color: #121212 !important;
    color: #f5f5f5 !important;
    min-height: 100vh;
}

.terxo-photo-catalog-body .menu-superior--dark {
    background: var(--neo-ink);
    border-bottom: 3px solid #fff;
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.12);
}

.terxo-photo-catalog-body .menu-superior--dark .titulo-menu {
    color: #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .logo-circle {
    background-color: #1a1a1a;
    border-color: #fff;
    box-shadow: 4px 4px 0 #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .logo-circle:hover,
.terxo-photo-catalog-body .menu-superior--dark .logo-circle:focus-visible {
    box-shadow: 6px 6px 0 #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.terxo-photo-catalog-body .config-modal {
    background: #1a1a1a !important;
    border-color: #fff !important;
    box-shadow: 12px 12px 0 #fff !important;
}

.terxo-photo-catalog-body .config-header {
    border-bottom-color: #fff !important;
}

.terxo-photo-catalog-body .config-title {
    color: #fff !important;
}

.terxo-photo-catalog-body .config-subtitle {
    color: rgba(255, 255, 255, 0.55) !important;
}

.terxo-photo-catalog-body .close-config {
    background: var(--neo-yellow) !important;
    border-color: #fff !important;
    color: var(--neo-ink) !important;
    box-shadow: 2px 2px 0 #fff !important;
}

.terxo-photo-catalog-body .close-config:hover {
    box-shadow: 4px 4px 0 #fff !important;
}

.terxo-photo-catalog-body .lang-segmented {
    background: #121212;
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #fff !important;
}

.terxo-photo-catalog-body .lang-segment {
    background: #1a1a1a;
    color: #fff;
    border-color: #fff;
}

.terxo-photo-catalog-body .lang-segment + .lang-segment {
    border-left-color: #fff;
}

.terxo-photo-catalog-body .lang-segmented--6 .lang-segment:nth-child(n + 3) {
    border-top-color: #fff;
}

.terxo-photo-catalog-body .lang-segment img {
    border-color: #fff;
    box-shadow: 1px 1px 0 #fff;
}

.terxo-photo-catalog-body .lang-segment:hover {
    background: #fff;
    color: var(--neo-ink);
}

.terxo-photo-catalog-body .lang-segment.active {
    background: #fff;
    color: var(--neo-ink);
}

.terxo-photo-catalog-body .lang-segment.active img {
    border-color: var(--neo-ink);
    box-shadow: 1px 1px 0 var(--neo-ink);
}

.terxo-photo-catalog-body .config-favorites-btn {
    background: #121212;
    color: #fff;
    border-color: #fff;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .config-favorites-btn:hover {
    background: #fff;
    color: var(--neo-ink);
    box-shadow: 5px 5px 0 #fff;
}

.terxo-photo-catalog-body .config-favorites-btn__icon {
    background: #1a1a1a;
    border-color: #fff;
    color: #ff6b9d;
}

.terxo-photo-catalog-body .config-favorites-btn__text small {
    color: rgba(255, 255, 255, 0.6);
}

.terxo-photo-catalog-body .config-favorites-btn:hover .config-favorites-btn__text small {
    color: rgba(10, 10, 10, 0.65);
}

.terxo-photo-catalog-body .google-login-btn {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #fff !important;
}

.terxo-photo-catalog-body .google-login-btn::before {
    border-color: #fff;
    box-shadow: 1px 1px 0 #fff;
    background-color: #1a1a1a;
}

.terxo-photo-catalog-body .google-login-btn:hover {
    background: #fff !important;
    color: var(--neo-ink) !important;
    box-shadow: 5px 5px 0 #fff !important;
}

.terxo-photo-catalog-body .user-profile-card {
    background: #121212 !important;
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #fff;
    color: #fff;
}

.terxo-photo-catalog-body .user-avatar-main {
    border-color: #fff;
    box-shadow: 2px 2px 0 #fff;
}

.terxo-photo-catalog-body .welcome-greet {
    color: rgba(255, 255, 255, 0.65);
}

.terxo-photo-catalog-body .user-name-bold {
    color: #fff;
}

.terxo-photo-catalog-body .logout-btn {
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .login-status--loading {
    color: rgba(255, 255, 255, 0.55);
}

.terxo-photo-catalog-body .menu-superior--dark .btn-marcas {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 3px 3px 0 #fff !important;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-marcas:hover {
    background: #fff !important;
    color: var(--neo-ink) !important;
    border-color: #fff !important;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #fff !important;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular .compare-vs-text {
    color: #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular:has(.compare-vessel) {
    background-color: var(--neo-ink) !important;
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #fff !important;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular:hover {
    background-color: #fff !important;
    color: var(--neo-ink) !important;
    box-shadow: 5px 5px 0 #fff !important;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular:hover .compare-vs-text {
    color: var(--neo-ink);
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular:has(.compare-vessel):hover {
    background-color: #fff !important;
    color: var(--neo-ink) !important;
}

.terxo-photo-catalog-body .menu-superior--dark .btn-circular:not(:empty):hover {
    background-color: #fff !important;
    color: var(--neo-ink) !important;
}

.terxo-photo-catalog-body .menu-superior--dark .compare-count-badge {
    border-color: #fff;
    box-shadow: 2px 2px 0 #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .menu-toggle {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .search-form input[type="search"] {
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.terxo-photo-catalog-body .menu-superior--dark .search-form input[type="search"]:focus {
    border-color: #fff;
    box-shadow: 4px 4px 0 #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .search-suggestions {
    background: #1a1a1a;
    border-color: #fff;
    box-shadow: 4px 4px 0 #fff;
}

.terxo-photo-catalog-body .menu-superior--dark .suggestion-item {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.terxo-photo-catalog-body .menu-superior--dark .suggestion-item:hover {
    background: #fff;
    color: var(--neo-ink);
}

.terxo-photo-catalog-body .compare-modal-content {
    background: #1a1a1a !important;
    border-color: #fff !important;
    box-shadow: 8px 8px 0 #fff !important;
}

.terxo-photo-catalog-body .cm-header {
    border-bottom-color: #fff;
}

.terxo-photo-catalog-body .cm-title {
    background: var(--neo-yellow);
    color: var(--neo-ink);
    border-color: #fff;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .cm-close {
    background: var(--neo-yellow);
    color: var(--neo-ink);
    border-color: #fff;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .cm-close:hover {
    background: #fff;
    color: var(--neo-ink);
    box-shadow: 4px 4px 0 #fff;
}

.terxo-photo-catalog-body .cm-empty {
    color: rgba(255, 255, 255, 0.6);
    background: #121212;
    border-color: rgba(255, 255, 255, 0.35);
}

.terxo-photo-catalog-body .cm-item {
    background: #121212;
    border-color: #fff;
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .cm-item-name {
    color: #fff;
}

.terxo-photo-catalog-body .cm-remove-btn {
    background: #1a1a1a;
    color: #fff;
    border-color: #fff;
    box-shadow: 2px 2px 0 #fff;
}

.terxo-photo-catalog-body .cm-remove-btn:hover {
    background: #fff;
    color: var(--neo-ink);
    box-shadow: 3px 3px 0 #fff;
}

.terxo-photo-catalog-body .cm-go-btn:not(.disabled) {
    background: var(--neo-ink);
    color: #fff;
    border-color: #fff;
    box-shadow: 4px 4px 0 #fff;
}

.terxo-photo-catalog-body .cm-go-btn:not(.disabled):hover {
    background: #fff;
    color: var(--neo-ink);
    box-shadow: 6px 6px 0 #fff;
}

.terxo-photo-catalog-body .cm-go-btn.disabled {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.35);
}

.terxo-photo-catalog-body .compare-mobile-notice {
    background: #1a1a1a;
    color: #fff;
    border-color: #fff;
    box-shadow: 6px 6px 0 #fff;
}

.terxo-photo-catalog-body .search-suggestions .btn-suggestion-compare {
    background: #121212 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: 2px 2px 0 #fff !important;
}

.terxo-photo-catalog-body .search-suggestions .btn-suggestion-compare:hover,
.terxo-photo-catalog-body .search-suggestions .btn-suggestion-compare.selected {
    background: #fff !important;
    color: var(--neo-ink) !important;
}

@media (max-width: 768px) {
    .terxo-photo-catalog-body .menu-superior ul {
        top: calc(max(15px, env(safe-area-inset-top, 0px)) + 52px) !important;
        background: #1a1a1a;
        border-color: #fff;
        box-shadow: 6px 6px 0 #fff;
        gap: 6px;
    }

    .terxo-photo-catalog-body .menu-superior ul > li:has(.btn-circular) {
        overflow: visible;
        position: relative;
        z-index: 2;
    }

    .terxo-photo-catalog-body .menu-superior ul .btn-circular,
    .terxo-photo-catalog-body .menu-superior ul a.btn-circular {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 52px !important;
        height: auto !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 14px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        background-color: transparent !important;
        border-color: #fff !important;
        box-shadow: 3px 3px 0 #fff !important;
    }

    .terxo-photo-catalog-body .menu-superior ul .btn-circular:not(:has(.compare-count-badge)),
    .terxo-photo-catalog-body .menu-superior ul a.btn-circular:not(:has(.compare-count-badge)) {
        overflow: hidden !important;
    }

    .terxo-photo-catalog-body .menu-superior ul .btn-circular .compare-count-badge {
        top: -8px;
        right: -6px;
        z-index: 15;
    }

    .terxo-photo-catalog-body .menu-superior ul .btn-circular:has(.compare-vessel) {
        background-color: var(--neo-ink) !important;
    }

    .terxo-photo-catalog-body .menu-superior ul a.btn-marcas {
        width: 100%;
        text-align: left;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
    }

    .terxo-photo-catalog-body .menu-toggle.has-compare-badge {
        box-shadow: 3px 3px 0 #fff, 0 0 0 2px var(--neo-yellow) !important;
    }

    .terxo-photo-catalog-body .menu-compare-badge {
        border-color: #fff;
        box-shadow: 2px 2px 0 #fff;
    }

    .terxo-photo-catalog-body .compare-modal-content {
        width: min(340px, calc(100vw - 24px)) !important;
        max-width: 340px !important;
    }

    .terxo-photo-catalog-body .menu-superior ul .btn-circular .compare-vessel {
        width: auto;
        max-width: min(168px, 72vw);
        height: 40px;
        margin: 0 auto;
        padding: 2px 6px;
        flex-shrink: 0;
    }
}

.terxo-photo-catalog-close {
    position: fixed;
    top: calc(var(--header-height, 76px) + 16px);
    right: var(--page-gutter);
    z-index: 150;
    width: 44px;
    height: 44px;
    background: var(--neo-yellow);
    border: 3px solid #fff;
    border-radius: 0;
    color: var(--neo-ink);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 #fff;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.terxo-photo-catalog-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #fff;
}

.terxo-photo-catalog-page {
    margin: calc(var(--header-height, 76px) + 32px) 0 60px;
    margin-left: var(--page-gutter);
    margin-right: auto;
    padding: 0 var(--page-gutter) 40px 0;
    max-width: 1320px;
}

.terxo-photo-catalog-panel {
    color: #f5f5f5;
    padding: 8px 0 12px;
    text-align: left;
}

.terxo-photo-catalog-panel h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.terxo-photo-catalog-panel p {
    margin: 0 0 20px;
    font-size: 0.92rem;
    color: rgba(245, 245, 245, 0.78);
    font-weight: 600;
}

.terxo-photo-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.terxo-photo-catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terxo-photo-catalog-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.terxo-photo-catalog-body .terxo-photo-grid {
    justify-content: flex-start;
}

.terxo-photo-catalog-card {
    width: 280px;
}

.terxo-photo-catalog-card a {
    align-items: stretch;
    gap: 12px;
}

.terxo-photo-catalog-media {
    display: grid;
    grid-template-columns: 96px 1fr;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0a0a0a;
}

.terxo-photo-catalog-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.terxo-photo-cover {
    width: 100%;
    height: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
}

.terxo-photo-catalog-sample {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #0a0a0a;
}

.terxo-photo-catalog-card .terxo-photo-sample {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
    filter: blur(10px);
    transform: scale(1.12);
    transform-origin: center;
}

.terxo-photo-sample--fallback {
    object-fit: cover;
    padding: 0;
    background: #0a0a0a;
    filter: blur(10px);
    transform: scale(1.12);
}

.terxo-photo-catalog-card .terxo-photo-title {
    text-align: left;
    width: 100%;
    align-self: stretch;
    line-height: 1.25;
}

@media (max-width: 640px) {
    .terxo-photo-catalog-card {
        width: calc(50% - 7px);
    }

    .terxo-photo-catalog-media {
        grid-template-columns: 72px 1fr;
        aspect-ratio: 1;
    }

    .terxo-photo-catalog-cover {
        padding: 8px 6px;
    }
}

/* ─── SOCIAL ─── */
.social-section {
    margin: 40px 0 28px;
    padding: 0 var(--page-gutter);
    max-width: 1320px;
}

.social-section h3 {
    font-family: var(--font-display);
    color: var(--neo-ink);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.social-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    background: var(--neo-surface);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    transition: transform 0.12s, box-shadow 0.12s;
}

.social-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
    background: var(--neo-yellow);
}

.social-img {
    width: 55%;
    height: auto;
    object-fit: contain;
}

/* Config modal → styles/terxo-config.css */
/* Compare modal — see compare.css for full neo styles */

/* ─── AI ASSISTANT ─── */
.ai-assistant-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 0;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    cursor: pointer;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow);
    z-index: 1500;
    transition: transform 0.12s, box-shadow 0.12s;
    animation: none;
}

.ai-assistant-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--neo-shadow-hover);
    background: var(--brand-blue-dark);
}

.ai-chat-panel {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 360px;
    height: 500px;
    max-height: 70vh;
    background: var(--neo-surface);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-hover);
    z-index: 1499;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate(8px, 8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 0;
    isolation: isolate;
}

.ai-chat-panel.active {
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: all;
}

.ai-chat-header {
    background: var(--neo-yellow);
    color: var(--neo-ink);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    border-bottom: var(--neo-border);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ai-header-btn {
    background: var(--neo-surface);
    border: 2px solid var(--neo-ink);
    color: var(--neo-ink);
    font-size: 0.85rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.12s, background 0.12s;
}

.ai-header-btn:hover,
.ai-header-btn.is-active {
    background: var(--neo-mint);
    transform: translate(-1px, -1px);
}

.ai-chat-history-panel {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
    background: var(--neo-bg);
    border-right: 0 solid var(--neo-ink);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 0.22s ease, opacity 0.22s ease, padding 0.22s ease, border-width 0.22s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ai-chat-panel.is-history-open .ai-chat-history-panel {
    flex: 0 0 132px;
    width: 132px;
    height: 100%;
    max-height: 100%;
    opacity: 1;
    pointer-events: auto;
    border-right-width: 2px;
    padding: 10px 10px 10px 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.ai-chat-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.ai-chat-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ai-chat-history-title {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 8px;
    padding: 0 4px 0 0;
    color: var(--neo-ink);
    line-height: 1.25;
    flex: 0 0 auto;
    display: block;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.ai-chat-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.ai-chat-history-empty {
    font-size: 0.72rem;
    color: rgba(10, 10, 10, 0.65);
    line-height: 1.35;
}

.ai-chat-history-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 6px 7px 8px;
    background: var(--neo-surface);
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 var(--neo-ink);
    color: var(--neo-ink);
    transition: transform 0.12s, background 0.12s;
}

.ai-chat-history-item:hover,
.ai-chat-history-item.is-active {
    background: var(--neo-yellow);
    transform: translate(-1px, -1px);
}

.ai-chat-history-open {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
}

.ai-chat-history-delete {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    color: rgba(10, 10, 10, 0.5);
    font-size: 0.62rem;
    border-radius: 4px;
    transition: background 0.12s, color 0.12s;
}

.ai-chat-history-delete:hover,
.ai-chat-history-delete:focus-visible {
    background: rgba(255, 92, 92, 0.22);
    color: #c62828;
}

.ai-chat-history-item-title {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    width: 100%;
}

.ai-chat-history-open .ai-chat-history-item-title,
.ai-chat-history-open .ai-chat-history-item-meta {
    width: 100%;
}

.ai-chat-history-item-meta {
    font-size: 0.58rem;
    color: rgba(10, 10, 10, 0.6);
    line-height: 1.2;
    width: 100%;
}

.ai-chat-login-gate {
    display: none;
}

.ai-chat-notice {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 72px;
    z-index: 5;
    padding: 10px 12px;
    background: var(--neo-yellow);
    color: var(--neo-ink);
    border: 2px solid var(--neo-ink);
    box-shadow: 3px 3px 0 var(--neo-ink);
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chat-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-chat-composer {
    display: flex;
    flex-direction: column;
}

.ai-close-btn {
    background: var(--neo-surface);
    border: 2px solid var(--neo-ink);
    color: var(--neo-ink);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    font-weight: 800;
}

.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--neo-bg);
}

.ai-msg.system {
    background: var(--neo-surface);
    color: var(--neo-ink);
    align-self: flex-start;
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 var(--neo-ink);
    border-radius: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    max-width: 88%;
    line-height: 1.45;
}

.ai-msg.system .ai-intro,
.ai-msg.system .ai-foot,
.ai-msg.system .ai-block {
    margin: 0 0 8px;
}

.ai-msg.system .ai-foot {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.ai-msg.system .ai-block:last-child {
    margin-bottom: 0;
}

.ai-msg.system .ai-block strong {
    font-weight: 800;
}

.ai-table-wrap {
    overflow-x: auto;
    margin: 4px 0 8px;
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 var(--neo-ink);
}

.ai-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    line-height: 1.35;
    background: var(--neo-surface);
}

.ai-table th,
.ai-table td {
    border: 1px solid var(--neo-ink);
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.ai-table th {
    background: var(--brand-yellow, #ffe600);
    font-weight: 800;
    white-space: nowrap;
}

.ai-table td:first-child {
    min-width: 7.5rem;
    font-weight: 700;
}

.ai-phone-list {
    margin: 4px 0 8px;
    padding-left: 1.1rem;
    list-style: disc;
}

.ai-phone-list-item {
    margin-bottom: 6px;
}

.ai-phone-list-item:last-child {
    margin-bottom: 0;
}

.ai-msg.user {
    background: var(--brand-blue);
    color: #fff;
    align-self: flex-end;
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 var(--neo-ink);
    border-radius: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    max-width: 88%;
}

.ai-chat-input-area {
    padding: 12px;
    background: var(--neo-surface);
    border-top: var(--neo-border);
    display: flex;
    gap: 8px;
}

.ai-chat-input {
    flex: 1;
    padding: 10px 12px;
    border: var(--neo-border);
    border-radius: 0;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.35;
    touch-action: manipulation;
    background: var(--neo-bg);
}

.ai-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: var(--brand-blue);
    color: #fff;
    border: var(--neo-border);
    box-shadow: 2px 2px 0 var(--neo-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-toggle-suggestions {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-yellow, #ffe600);
    border: 2px solid var(--neo-ink);
    color: var(--neo-ink);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 2px 2px 0 var(--neo-ink);
    transition: background 0.15s ease, transform 0.1s ease;
}

.ai-toggle-suggestions:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--neo-ink);
}

.ai-toggle-suggestions.inactive {
    background: var(--neo-surface);
    color: var(--neo-ink);
    opacity: 0.85;
}

.ai-toggle-suggestions:not(.inactive) {
    background: var(--brand-yellow, #ffe600);
}

.ai-quick-reply-btn {
    background: var(--neo-surface);
    color: var(--neo-ink);
    border: 2px solid var(--neo-ink);
    padding: 6px 12px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 var(--neo-ink);
    flex-shrink: 0;
}

.ai-quick-reply-btn:hover {
    background: var(--neo-yellow);
}

.ai-quick-replies {
    padding: 8px 12px;
    background: var(--neo-bg);
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    border-top: 2px solid var(--neo-ink);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ai-typing-indicator {
    display: none;
    align-self: flex-start;
    background: var(--neo-surface);
    padding: 12px 14px;
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 var(--neo-ink);
    gap: 5px;
    align-items: center;
}

.ai-typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--neo-ink);
    border-radius: 50%;
    display: inline-block;
    animation: aiTypingBounce 1.2s ease-in-out infinite;
}

.ai-typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes aiTypingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes aiMsgEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-msg.ai-msg-enter {
    animation: aiMsgEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ai-msg.user.ai-msg-enter {
    transform-origin: 100% 100%;
}

.ai-msg.system.ai-msg-enter {
    transform-origin: 0% 100%;
}

@media (prefers-reduced-motion: reduce) {
    .ai-msg.ai-msg-enter {
        animation: aiMsgEnterReduced 0.12s ease both;
    }
}

@keyframes aiMsgEnterReduced {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-msg.system.ai-streaming::after {
    content: 'â–‹';
    display: inline-block;
    margin-left: 2px;
    color: var(--brand-blue);
    animation: aiCursorBlink 0.9s step-end infinite;
}

@keyframes aiCursorBlink {
    50% {
        opacity: 0;
    }
}

.ai-chat-send:disabled,
.ai-chat-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ─── TABLET (768px – 1099px) ─── */
@media (min-width: 768px) and (max-width: 1099px) {
    :root {
        --page-gutter: clamp(20px, 3vw, 36px);
        --header-height: 72px;
        --hero-sidebar-width: min(300px, 30vw);
    }

    .menu-superior {
        padding: 0 clamp(16px, 2.5vw, 28px);
        gap: clamp(10px, 1.5vw, 16px);
    }

    .titulo-menu {
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    }

    .search-form input[type="search"] {
        width: min(240px, 26vw);
        max-width: none;
    }

    .intro-contenedor {
        margin-top: calc(var(--header-height) + 24px);
        padding-right: calc(var(--hero-sidebar-width) + var(--page-gutter) + 12px);
    }

    .hero-layout {
        display: block;
    }

    .hero-sidebar-tab,
    .hero-sidebar-overlay {
        display: none !important;
    }

    .hero-sidebar {
        position: fixed;
        top: calc(var(--header-height) + var(--hero-sidebar-v-gap));
        bottom: auto;
        height: fit-content;
        max-height: none;
        right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
        width: var(--hero-sidebar-width);
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        transform: none;
        visibility: visible;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: clamp(6px, 1vh, 8px);
        overflow: visible;
        z-index: 900;
    }

    .hero-sidebar-block {
        flex: 0 0 auto;
        min-height: 0;
        padding: clamp(8px, 1.2vh, 10px);
        background: var(--neo-surface);
        border: var(--neo-border);
        box-shadow: var(--neo-shadow-sm);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .hero-sidebar-title {
        font-size: clamp(0.62rem, 1.1vh, 0.74rem);
        margin-bottom: clamp(4px, 0.7vh, 8px);
        line-height: 1.15;
        flex-shrink: 0;
    }

    .hero-featured-body {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-featured-link {
        gap: 0;
    }

    .hero-featured-main {
        gap: clamp(4px, 0.8vh, 8px);
    }

    .hero-featured-side {
        gap: clamp(4px, 0.6vh, 6px);
    }

    .hero-featured-image {
        width: clamp(50px, 9vh, 68px);
        height: clamp(96px, 16vh, 132px);
        align-self: start;
    }

    .hero-featured-name {
        font-size: clamp(0.68rem, 1.2vh, 0.78rem);
        line-height: 1.2;
    }

    .hero-featured-label {
        font-size: clamp(0.58rem, 1vh, 0.66rem);
    }

    .hero-featured-badge {
        font-size: clamp(0.62rem, 1.1vh, 0.72rem);
        padding: 2px 7px;
        min-width: 36px;
    }

    .hero-featured-score {
        justify-content: space-between;
        margin-top: auto;
    }

    .hero-featured-score .phone-cp-label {
        font-size: clamp(0.58rem, 1vh, 0.66rem);
    }

    .hero-featured-score .phone-cp-badge {
        font-size: clamp(0.62rem, 1.1vh, 0.72rem);
        padding: 2px 7px;
        min-width: 36px;
    }

    .hero-featured-progress {
        height: 4px;
        margin-top: clamp(4px, 0.6vh, 6px);
        flex-shrink: 0;
    }

    .hero-quick-links {
        flex: 0 0 auto;
        overflow: visible;
    }

    .hero-quick-links-grid {
        gap: 6px;
        align-content: start;
        padding: 0 2px 2px 0;
    }

    .hero-quick-link,
    .hero-quick-card {
        min-height: 52px;
        height: auto;
        padding: 7px;
        line-height: 1.2;
        box-shadow: 2px 2px 0 var(--neo-ink);
        align-items: flex-start;
    }

    .hero-quick-card {
        gap: 7px;
    }

    .hero-quick-card-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        margin-top: 1px;
    }

    .hero-quick-card-label {
        font-size: clamp(0.64rem, 2.2vw, 0.74rem);
    }

    .hero-quick-card-hint {
        font-size: clamp(0.58rem, 2vw, 0.66rem);
        line-height: 1.25;
    }

    .hero-ai-teaser {
        justify-content: flex-start;
    }

    .hero-ai-lead {
        font-size: clamp(0.56rem, 1vh, 0.66rem);
        margin-bottom: clamp(4px, 0.6vh, 6px);
    }

    .hero-ai-prompts {
        gap: clamp(4px, 0.6vh, 5px);
        margin-bottom: clamp(4px, 0.7vh, 6px);
    }

    .hero-ai-prompt {
        padding: clamp(4px, 0.7vh, 6px) 6px;
    }

    .hero-ai-prompt-label {
        font-size: clamp(0.58rem, 1vh, 0.66rem);
    }

    .hero-ai-cta {
        padding: clamp(6px, 0.9vh, 8px) 10px;
        font-size: clamp(0.6rem, 1.05vh, 0.7rem);
        flex-shrink: 0;
    }

    .intro-titulo {
        font-size: clamp(1.9rem, 4.2vw, 2.5rem);
        padding: clamp(16px, 2.5vw, 24px);
    }

    .hero-expand-panel {
        max-width: 100%;
    }

    .hero-expand-panel.active .feature-row-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-chip-row {
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero-chip {
        font-size: clamp(0.68rem, 1.4vw, 0.74rem);
        padding: 8px 12px;
    }

    .recent-phones-section {
        padding: 28px 0;
        margin: 24px 0;
    }

    .recent-phones-section h2 {
        font-size: clamp(1.35rem, 2.5vw, 1.6rem);
        margin-bottom: 20px;
    }

    .recent-phones-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(12px, 1.6vw, 18px);
    }

    .best-offers-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .recent-phone-card {
        height: 286px;
        min-height: 286px;
        max-height: 286px;
        padding: 16px 12px;
    }

    .recent-phone-image {
        width: 76px;
        max-height: 140px;
        min-height: 100px;
    }

    .recent-phone-name {
        font-size: 0.7rem;
    }

    .terxo-photo-section {
        padding: 28px clamp(20px, 3vw, 32px);
    }

    .terxo-photo-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .terxo-photo-card {
        width: auto;
    }

    .terxo-photo-frame {
        min-height: 0;
    }

    .terxo-photo-thumb {
        height: auto;
        aspect-ratio: 3 / 4;
        max-height: 150px;
    }

    .ver-novedades-container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .social-section {
        margin-top: 32px;
    }

    .social-section h3 {
        font-size: 1.35rem;
    }

    .ai-chat-panel {
        width: min(400px, 44vw);
        height: min(520px, 62vh);
        height: min(520px, 62dvh);
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    :root {
        --hero-sidebar-width: min(260px, 32vw);
    }

    .hero-featured-image {
        width: clamp(46px, 8vh, 58px);
        height: clamp(88px, 14vh, 112px);
    }

    .recent-phones-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filters-home-grid__panel {
        grid-column: span 2;
    }

    .filters-home-grid__cta {
        grid-column: span 1;
    }

    .best-offers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-form input[type="search"] {
        width: min(180px, 22vw);
    }
}

@media (min-width: 768px) and (max-width: 1099px) and (max-height: 820px) {
    :root {
        --hero-sidebar-v-gap: 10px;
        --ai-fab-offset: 20px;
        --ai-fab-size: 56px;
    }

    .hero-sidebar {
        gap: 5px;
    }

    .hero-sidebar-block {
        padding: 6px 8px;
    }

    .hero-sidebar-title {
        margin-bottom: 4px;
    }

    .hero-featured-image {
        width: clamp(42px, 7.5vh, 52px);
        height: clamp(80px, 13vh, 100px);
    }

    .hero-featured-name {
        font-size: 0.66rem;
    }

    .hero-quick-link,
    .hero-quick-card {
        font-size: 0.56rem;
        padding: 4px 5px;
    }

    .hero-quick-card-icon {
        width: 22px;
        height: 22px;
        font-size: 0.58rem;
    }

    .hero-quick-card-hint {
        font-size: 0.52rem;
        line-height: 1.15;
    }

    .hero-ai-prompt {
        font-size: 0.58rem;
        padding: 3px 5px;
    }

    .hero-ai-cta {
        padding: 5px 8px;
        font-size: 0.58rem;
    }
}

@media (min-width: 768px) and (max-width: 1099px) and (max-height: 700px) {
    .hero-ai-prompts .hero-ai-prompt:nth-child(4) {
        display: none;
    }

    .hero-featured-image {
        width: 40px;
        height: 76px;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    :root {
        --hero-drawer-width: min(360px, 94vw);
        --hero-tab-width: 30px;
    }

    html,
    body {
        overflow-x: clip;
        max-width: 100%;
        overscroll-behavior-x: none;
    }

    .intro-contenedor {
        padding-right: var(--page-gutter);
        overflow-x: clip;
        max-width: 100%;
    }

    .hero-layout,
    .hero-main,
    .hero-neo {
        max-width: 100%;
        overflow-x: clip;
    }

    .hero-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: transparent;
        visibility: hidden;
        pointer-events: none;
        z-index: 1550;
    }

    .hero-sidebar-overlay.active {
        visibility: visible;
        pointer-events: auto;
        /* No cubrir el drawer: el overlay bloqueaba los toques en accesos rápidos */
        right: var(--hero-drawer-width);
    }

    .hero-sidebar-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: var(--hero-tab-width);
        height: 88px;
        padding: 0;
        background: var(--neo-yellow);
        color: var(--neo-ink);
        border: var(--neo-border);
        border-right: none;
        box-shadow:
            -4px 0 0 0 var(--neo-ink),
            0 4px 0 0 var(--neo-ink);
        z-index: 1650;
        cursor: pointer;
        font-size: 0.85rem;
        transition: transform 0.2s ease, top 0.32s cubic-bezier(0.22, 1, 0.36, 1), left 0.32s cubic-bezier(0.22, 1, 0.36, 1), right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hero-sidebar-tab-icon--open {
        display: none;
    }

    .hero-sidebar-tab:active {
        transform: translateY(-50%) translateX(-2px);
    }

    body.hero-sidebar-drawer-open .hero-sidebar-tab {
        right: calc(var(--hero-drawer-width) - var(--hero-tab-width));
        top: 50%;
        transform: translateY(-50%);
        border: var(--neo-border);
    }

    body.hero-sidebar-drawer-open .hero-sidebar-tab:active {
        transform: translateY(-50%) translateX(-2px);
    }

    body.hero-sidebar-drawer-open .hero-sidebar-tab-icon--closed {
        display: none;
    }

    body.hero-sidebar-drawer-open .hero-sidebar-tab-icon--open {
        display: block;
    }

    body.hero-sidebar-drawer-open .ai-assistant-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(0.9);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    }

    body.ai-chat-open .hero-sidebar-tab {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-50%) scale(0.9);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    }

    .hero-sidebar {
        position: fixed;
        top: var(--header-height);
        bottom: max(6px, env(safe-area-inset-bottom, 0px));
        height: auto;
        max-height: none;
        right: calc(-1 * var(--hero-drawer-width) - 12px);
        width: var(--hero-drawer-width);
        padding: 6px 8px 8px;
        background: var(--neo-surface);
        border: var(--neo-border);
        border-right: none;
        box-shadow: -8px 0 0 var(--neo-ink);
        transform: none;
        visibility: hidden;
        pointer-events: none;
        transition: right 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
        z-index: 1600;
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        justify-content: flex-start;
        isolation: isolate;
        box-sizing: border-box;
    }

    .hero-sidebar.is-open {
        right: 0;
        visibility: visible;
        pointer-events: auto;
        z-index: 1600;
    }

    .hero-quick-links {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    .hero-sidebar-block {
        background: var(--neo-surface);
        padding: clamp(6px, 1vh, 9px);
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        box-shadow: 3px 3px 0 var(--neo-ink);
    }

    .hero-sidebar-block.hero-featured-card {
        flex: 0 0 auto;
        min-height: 0;
    }

    .hero-sidebar-block.hero-quick-links {
        flex: 0 0 auto;
    }

    .hero-sidebar-block.hero-ai-teaser {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-sidebar-title {
        font-size: clamp(0.65rem, 2.4vw, 0.78rem);
        margin-bottom: clamp(4px, 0.7vh, 6px);
        line-height: 1.15;
    }

    .hero-featured-body {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-featured-link {
        gap: 0;
        flex: 0 0 auto;
        display: block;
    }

    .hero-featured-main {
        gap: clamp(5px, 1.1vw, 8px);
        flex: 0 0 auto;
        align-items: start;
    }

    .hero-featured-side {
        gap: clamp(4px, 0.8vw, 6px);
        justify-content: flex-start;
    }

    .hero-featured-image {
        width: clamp(54px, 15vw, 66px);
        height: clamp(104px, 22vh, 128px);
        min-height: 0;
        max-height: 128px;
        align-self: start;
        object-fit: contain;
    }

    .hero-featured-name {
        font-size: clamp(0.74rem, 2.7vw, 0.86rem);
        line-height: 1.2;
    }

    .hero-featured-label {
        font-size: clamp(0.64rem, 2.3vw, 0.74rem);
    }

    .hero-featured-badge {
        font-size: clamp(0.64rem, 2.3vw, 0.74rem);
        padding: 3px 8px;
    }

    .hero-featured-score {
        justify-content: space-between;
        margin-top: 6px;
    }

    .hero-featured-score .phone-cp-label {
        font-size: clamp(0.64rem, 2.3vw, 0.74rem);
    }

    .hero-featured-score .phone-cp-badge {
        font-size: clamp(0.64rem, 2.3vw, 0.74rem);
        padding: 3px 8px;
    }

    .hero-featured-progress {
        margin-top: clamp(5px, 0.8vh, 7px);
        height: 6px;
        flex-shrink: 0;
    }

    .hero-quick-links-grid {
        flex: 0 0 auto;
        gap: 5px;
        align-content: start;
        grid-auto-rows: auto;
        padding: 0;
    }

    .hero-quick-link,
    .hero-quick-card {
        min-height: 44px;
        height: auto;
        padding: 5px 6px;
        line-height: 1.12;
        box-shadow: 2px 2px 0 var(--neo-ink);
        align-items: flex-start;
    }

    .hero-quick-card {
        gap: 5px;
    }

    .hero-quick-card-icon {
        width: 24px;
        height: 24px;
        font-size: 0.66rem;
        margin-top: 1px;
    }

    .hero-quick-card-label {
        font-size: clamp(0.64rem, 2.2vw, 0.74rem);
        line-height: 1.12;
    }

    .hero-quick-card-hint {
        display: -webkit-box;
        font-size: clamp(0.56rem, 1.9vw, 0.64rem);
        line-height: 1.18;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-quick-link {
        font-size: clamp(0.64rem, 2.2vw, 0.74rem);
    }

    .hero-ai-teaser {
        flex: 1 1 0;
        min-height: 0;
        justify-content: flex-start;
    }

    .hero-ai-lead {
        font-size: clamp(0.68rem, 2.3vw, 0.78rem);
        margin-bottom: clamp(6px, 1vh, 8px);
        line-height: 1.35;
    }

    .hero-ai-prompts {
        flex: 1 1 auto;
        gap: clamp(5px, 0.9vh, 7px);
        margin-bottom: clamp(6px, 1vh, 8px);
        align-content: stretch;
        min-height: 0;
    }

    .hero-ai-prompt {
        min-height: clamp(40px, 7vh, 52px);
        padding: clamp(7px, 1.2vh, 10px) 8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(66, 93, 245, 0.18);
    }

    .hero-ai-prompt-icon {
        width: clamp(24px, 5vw, 28px);
        height: clamp(24px, 5vw, 28px);
        font-size: clamp(0.62rem, 2.2vw, 0.72rem);
    }

    .hero-ai-prompt-label {
        font-size: clamp(0.66rem, 2.3vw, 0.76rem);
        line-height: 1.2;
    }

    .hero-ai-cta {
        margin-top: auto;
        padding: clamp(9px, 1.4vh, 12px) 10px;
        font-size: clamp(0.72rem, 2.5vw, 0.82rem);
        box-shadow: 3px 3px 0 var(--neo-ink);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(66, 93, 245, 0.18);
    }

    .hero-featured-link {
        touch-action: manipulation;
    }

    @media (max-height: 700px) {
        .hero-sidebar {
            gap: 5px;
            padding: 5px 7px 7px;
        }

        .hero-sidebar-block {
            padding: 5px 6px;
        }

        .hero-featured-image {
            width: 50px;
            height: 96px;
            max-height: 96px;
        }

        .hero-featured-name {
            font-size: 0.72rem;
        }

        .hero-quick-link,
        .hero-quick-card {
            padding: 4px 5px;
        }

        .hero-quick-card-icon {
            width: 22px;
            height: 22px;
            font-size: 0.6rem;
        }

        .hero-ai-prompt {
            min-height: 36px;
            padding: 5px 6px;
        }

        .hero-ai-prompts .hero-ai-prompt:nth-child(4) {
            display: none;
        }
    }
}

@media (max-width: 768px) {
    .menu-superior {
        --mobile-edge: max(14px, env(safe-area-inset-right, 0px));
        --mobile-edge-left: max(14px, env(safe-area-inset-left, 0px));
        --mobile-btn: 44px;
        --mobile-btn-gap: 8px;
        --mobile-header-top: max(16px, env(safe-area-inset-top, 0px));
    }

    .menu-superior ul {
        display: none;
        position: absolute;
        right: max(14px, env(safe-area-inset-right, 0px));
        top: 100%;
        flex-direction: column;
        background: var(--neo-surface);
        padding: 10px;
        border: var(--neo-border);
        box-shadow: var(--neo-shadow);
        min-width: 180px;
        z-index: 1001;
    }

    .menu-superior ul.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: fixed !important;
        top: var(--mobile-header-top) !important;
        right: var(--mobile-edge) !important;
        left: auto !important;
        margin: 0 !important;
        min-width: var(--mobile-btn);
        min-height: var(--mobile-btn);
        z-index: 1002 !important;
    }

    .menu-toggle:empty::before {
        content: 'â˜°';
    }

    .menu-superior ul a.btn-marcas {
        width: 100%;
        text-align: left;
    }

    .search-form input[type="search"] {
        width: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        border: none;
        box-shadow: none;
    }

    .search-form {
        margin: 0;
        width: 100%;
    }

    .search-container {
        position: fixed;
        top: var(--mobile-header-top);
        right: calc(var(--mobile-edge) + var(--mobile-btn) + var(--mobile-btn-gap));
        z-index: 1003;
        width: var(--mobile-btn);
        height: var(--mobile-btn);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-container:has(.search-form.expanded),
    .search-container.search-active {
        left: calc(var(--mobile-edge-left) + 48px + 12px);
        right: calc(var(--mobile-edge) + var(--mobile-btn) + var(--mobile-btn-gap));
        width: auto;
        height: var(--mobile-btn);
    }

    .search-form:not(.expanded) input[type="search"] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .search-form.expanded {
        flex: 1;
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .search-form.expanded input[type="search"] {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        flex: 1;
        min-height: 44px;
        font-size: 16px;
        -webkit-appearance: none;
    }

    .search-mobile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-width: 0;
        border: var(--neo-border);
        background: var(--neo-surface);
        box-shadow: var(--neo-shadow-sm);
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        color: var(--neo-ink);
        font-family: var(--font-display);
        flex-shrink: 0;
    }

    .search-form.expanded .search-mobile-trigger {
        display: none;
    }

    .menu-superior.search-panel-open {
        z-index: 1004;
    }

    .menu-superior.search-panel-open .titulo-menu {
        opacity: 0;
        width: 0;
        overflow: hidden;
        flex: 0 0 0;
        padding: 0;
        margin: 0;
        pointer-events: none;
    }

    .search-container:has(.search-form.expanded) {
        display: flex;
        flex: none;
        min-width: 0;
    }

    .search-container.search-active .search-suggestions {
        position: fixed;
        top: var(--header-height, 76px);
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        max-height: min(55dvh, 440px);
        margin-top: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
        z-index: 1005;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: 0 8px 0 var(--neo-ink);
    }

    .search-suggestions .suggestion-item {
        min-height: 52px;
        padding: 12px 16px;
        touch-action: manipulation;
    }

    .titulo-menu {
        font-size: clamp(0.7rem, 3.6vw, 0.95rem) !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        padding-right: calc(var(--mobile-edge) + (var(--mobile-btn) * 2) + var(--mobile-btn-gap) + 10px) !important;
        letter-spacing: -0.03em !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .recent-phones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-home-grid__panel,
    .filters-home-grid__cta {
        grid-column: 1 / -1;
    }

    .best-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .best-offer-sep {
        width: 100%;
        margin: 14px 0;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 68px;
    }

    .menu-superior {
        height: var(--header-height, 68px);
        padding: 0 12px;
        --mobile-header-top: max(12px, env(safe-area-inset-top, 0px));
    }

    .search-container:has(.search-form.expanded),
    .search-container.search-active {
        left: calc(var(--mobile-edge-left) + 40px + 10px);
    }

    .titulo-menu {
        font-size: clamp(0.65rem, 3.2vw, 0.85rem) !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        padding-right: calc(var(--mobile-edge) + (var(--mobile-btn) * 2) + var(--mobile-btn-gap) + 10px) !important;
        letter-spacing: -0.03em !important;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
    }

    .intro-contenedor {
        margin-top: calc(var(--header-height, 68px) + 16px);
        margin-bottom: 28px;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
        overflow-x: clip;
        max-width: 100%;
    }

    .intro-titulo {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .terxo-photo-section,
    .social-section,
    .recent-phones-section,
    .filters-home-section,
    .best-offers-section {
        max-width: 100%;
        overflow-x: clip;
    }

    .hero-neo {
        margin-bottom: 4px;
    }

    .hero-layout {
        gap: 12px;
    }

    .intro-titulo {
        font-size: clamp(1.2rem, 6.2vw, 1.75rem) !important;
        padding: 11px 10px;
        margin-bottom: 10px;
        line-height: 1.05 !important;
        box-shadow: 5px 5px 0 var(--neo-ink);
    }

    .hero-chip-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin-bottom: 10px;
        align-items: stretch;
    }

    .hero-chip {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(0.46rem, 1.95vw, 0.56rem);
        padding: 6px 4px;
        letter-spacing: 0.01em;
        text-align: center;
        white-space: normal;
        line-height: 1.15;
        min-width: 0;
        min-height: 2.65em;
        overflow: visible;
        word-break: break-word;
        hyphens: auto;
        box-shadow: 2px 2px 0 var(--neo-ink);
    }

    .hero-copy-card {
        max-width: 100%;
        padding: 14px 12px;
    }

    .hero-expand-panel {
        max-width: 100%;
        box-shadow: 4px 4px 0 var(--neo-ink);
    }

    .hero-expand-panel.active {
        box-shadow: 6px 6px 0 var(--neo-ink);
    }

    .hero-expand-intro {
        padding: 10px 9px;
    }

    .intro-texto {
        font-size: 0.84rem;
        line-height: 1.45;
        gap: 6px;
    }

    .intro-texto > span {
        flex: 1 1 100%;
    }

    .btn-toggle-features {
        margin-left: 0;
        width: 26px;
        height: 26px;
        font-size: 12px;
        box-shadow: 2px 2px 0 var(--neo-ink);
    }

    .hero-expand-panel.active .feature-row-inner {
        padding-top: 8px;
    }

    .feature-row-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 8px 9px;
    }

    .feature {
        padding: 10px;
    }

    .feature h3 {
        font-size: 0.66rem;
        margin-bottom: 5px;
    }

    .feature p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .terxo-photo-section {
        margin-top: 18px;
        padding: 16px 12px;
        min-height: 0;
        box-shadow: 4px 4px 0 var(--neo-ink);
    }

    .terxo-photo-section h2 {
        font-size: clamp(1rem, 4.2vw, 1.35rem);
        gap: 6px;
        padding-right: 34px;
        line-height: 1.1;
    }

    .terxo-photo-new {
        font-size: 0.62rem;
        padding: 1px 5px;
    }

    .terxo-photo-info-btn {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        box-shadow: 2px 2px 0 #fff;
    }

    .terxo-photo-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
    }

    .terxo-photo-card {
        width: auto;
    }

    .terxo-photo-frame {
        min-height: 0;
        padding: 8px;
        border-width: 2px;
        box-shadow: 2px 2px 0 var(--neo-yellow);
    }

    .terxo-photo-thumb {
        height: auto;
        aspect-ratio: 3 / 4;
        max-height: 120px;
    }

    .terxo-photo-card a {
        gap: 6px;
        font-size: clamp(0.58rem, 2.6vw, 0.68rem);
        letter-spacing: 0.02em;
    }

    .terxo-photo-title {
        line-height: 1.15;
        text-align: center;
    }

    .terxo-photo-info-overlay {
        padding: 14px 12px;
        border-width: 3px;
    }

    .terxo-photo-info-content {
        padding-top: 8px;
    }

    .terxo-photo-info-content h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .terxo-photo-info-content p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .terxo-photo-info-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
        box-shadow: 2px 2px 0 #fff;
    }

    .recent-phones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-home-grid__panel,
    .filters-home-grid__cta {
        grid-column: 1 / -1;
    }

    .best-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-btn {
        width: 56px;
        height: 56px;
    }

    .ai-chat-panel {
        bottom: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        height: min(420px, 58vh);
        height: min(420px, 58dvh);
        max-height: 58vh;
        max-height: 58dvh;
        box-shadow: 4px 4px 0 var(--neo-ink);
    }

    .ai-assistant-btn {
        right: 12px;
        bottom: 12px;
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
        box-shadow: 3px 3px 0 var(--neo-ink);
    }

    .ai-chat-header {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .ai-chat-title {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ai-chat-title i {
        font-size: 0.9rem;
    }

    .ai-close-btn {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .ai-chat-panel.is-history-open .ai-chat-history-panel {
        flex: 0 0 96px;
        width: 96px;
        height: 100%;
        max-height: 100%;
        padding: 8px 8px 8px 5px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .ai-chat-history-title {
        font-size: 0.54rem;
        letter-spacing: 0.02em;
        margin-bottom: 6px;
        padding-right: 3px;
        line-height: 1.3;
    }

    .ai-chat-history-item-title {
        font-size: 0.62rem;
        -webkit-line-clamp: 4;
    }

    .ai-chat-messages {
        padding: 10px;
        gap: 7px;
    }

    .ai-msg.system,
    .ai-msg.user {
        padding: 9px 10px;
        font-size: 0.82rem;
        line-height: 1.4;
        max-width: 92%;
    }

    .ai-msg.system .ai-foot {
        margin-top: 8px;
        font-size: 0.78rem;
    }

    .ai-quick-replies {
        padding: 6px 8px;
        gap: 6px;
    }

    .ai-quick-reply-btn {
        padding: 5px 8px;
        font-size: 0.6rem;
        box-shadow: 1px 1px 0 var(--neo-ink);
    }

    .ai-chat-input-area {
        padding: 8px;
        gap: 6px;
    }

    .ai-toggle-suggestions {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--neo-ink);
        color: var(--neo-ink);
        cursor: pointer;
        font-size: 0.85rem;
        box-shadow: 2px 2px 0 var(--neo-ink);
    }

    .ai-toggle-suggestions.inactive {
        background: var(--neo-surface);
    }

    .ai-toggle-suggestions:not(.inactive) {
        background: var(--brand-yellow, #ffe600);
    }

    .ai-chat-input {
        padding: 8px 10px;
        font-size: 16px;
    }

    .ai-chat-send {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .ai-typing-indicator {
        padding: 9px 10px;
    }

    .ai-typing-indicator span {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 420px) {
    .hero-chip-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        margin-bottom: 8px;
    }

    .hero-chip {
        font-size: clamp(0.44rem, 2.4vw, 0.52rem);
        padding: 5px 3px;
        letter-spacing: 0;
        line-height: 1.12;
        min-height: 2.75em;
    }

    .intro-titulo {
        padding: 10px 9px !important;
        margin-bottom: 8px !important;
    }

    .hero-expand-intro {
        padding: 9px 8px;
    }

    .feature-row-inner {
        gap: 6px;
        padding: 0 7px 8px;
    }

    .feature {
        padding: 9px;
    }

    .terxo-photo-section {
        padding: 14px 10px;
    }

    .terxo-photo-grid {
        gap: 8px;
        margin-top: 8px;
    }

    .terxo-photo-frame {
        padding: 6px;
    }

    .terxo-photo-thumb {
        max-height: 108px;
    }

    .terxo-photo-card a {
        font-size: 0.56rem;
    }

    .ai-chat-panel {
        bottom: 66px;
        height: min(380px, 54vh);
        height: min(380px, 54dvh);
        max-height: 54vh;
        max-height: 54dvh;
    }

    .ai-assistant-btn {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .ai-chat-header {
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .ai-chat-messages {
        padding: 8px;
        gap: 6px;
    }

    .ai-msg.system,
    .ai-msg.user {
        padding: 8px 9px;
        font-size: 0.78rem;
    }

    .ai-chat-input-area {
        padding: 7px;
    }

    .ai-chat-input {
        padding: 7px 9px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-expand-panel,
    .hero-expand-body,
    .feature-row-inner {
        transition: none !important;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Pestaña de pie — index principal */
.site-footer-tab {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 12px var(--page-gutter);
    background: #c4c4c4;
    border-top: var(--neo-border);
    box-shadow: none;
    white-space: normal;
    flex-wrap: wrap;
    overflow-x: clip;
    z-index: 2;
}

.site-footer-tab__logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid var(--neo-ink);
    box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.35);
    object-fit: cover;
}

.site-footer-tab__copy,
.site-footer-tab__rights {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.72);
}

.site-footer-tab__sep {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.72);
    opacity: 0.72;
}


@media (max-width: 520px) {
    .site-footer-tab {
        gap: 6px;
        padding: 10px var(--page-gutter);
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
        text-align: left;
    }

    .site-footer-tab__rights {
        width: auto;
        text-align: left;
    }

    .site-footer-tab__sep {
        display: none;
    }
}

/* Panel lateral de la portada: sin scroll, se reduce para caber (ver scripts/hero-sidebar-fit.js) */
@media (min-width: 768px) {
    .hero-sidebar {
        transform: scale(var(--hero-sidebar-scale, 1));
        transform-origin: top right;
    }
}

/* Panel lateral: en pantallas bajas se compacta primero (menos adornos) y, si aun así no cabe,
   scripts/hero-sidebar-fit.js lo reduce. Así el texto casi nunca se encoge. */
@media (min-width: 768px) and (max-height: 900px) {
    .hero-sidebar .hero-featured-image {
        width: 52px;
        height: 104px;
    }

    .hero-sidebar .hero-quick-card {
        min-height: 44px;
        padding: 6px 8px;
    }

    .hero-sidebar .hero-ai-prompts {
        gap: 4px;
    }
}

@media (min-width: 768px) and (max-height: 800px) {
    .hero-sidebar .hero-quick-card-hint,
    .hero-sidebar .hero-ai-lead {
        display: none;
    }

    .hero-sidebar .hero-quick-card {
        min-height: 36px;
    }
}

@media (min-width: 768px) and (max-height: 700px) {
    .hero-sidebar .hero-ai-prompts {
        display: none;
    }

    .hero-sidebar .hero-featured-image {
        width: 42px;
        height: 84px;
    }
}

/* Selección de texto: TERXO-PHOTO, negro sobre blanco */
.terxo-photo-catalog-body ::selection,
.terxo-photo-catalog-body::selection {
    background: var(--neo-surface);
    color: var(--neo-ink);
    text-shadow: none;
}
.terxo-photo-catalog-body ::-moz-selection,
.terxo-photo-catalog-body::-moz-selection {
    background: var(--neo-surface);
    color: var(--neo-ink);
    text-shadow: none;
}
