/* Terxo Mobile — Index Neo-Brutalism */

@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 {
    --brand-blue: #425df5;
    --brand-blue-dark: #123cb8;
    --brand-blue-light: #6fa9ff;
    --text-dark: #0a0a0a;

    --neo-bg: #f2efe4;
    --neo-surface: #ffffff;
    --neo-ink: #0a0a0a;
    --neo-yellow: #ffe566;
    --neo-coral: #ff6b6b;
    --neo-mint: #7dffb3;
    --neo-border: 3px solid var(--neo-ink);
    --neo-shadow: 6px 6px 0 var(--neo-ink);
    --neo-shadow-sm: 4px 4px 0 var(--neo-ink);
    --neo-shadow-hover: 8px 8px 0 var(--neo-ink);
    --neo-radius: 0;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --page-gutter: clamp(14px, 2.5vw, 28px);
    --hero-sidebar-width: min(380px, 28vw);
    --header-height: 76px;
    --ai-fab-size: 64px;
    --ai-fab-offset: 28px;
    --hero-sidebar-v-gap: 16px;
}

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

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);
}

#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/Captura de pantalla 2025-07-01 221403.png');
    background-size: cover;
    background-position: center;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    flex-shrink: 0;
    cursor: pointer;
    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 {
    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-marcas: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;
}

.hero-featured-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.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: 10px;
}

.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: 8px;
}

.hero-featured-score {
    width: 100%;
    justify-content: center;
}

.hero-featured-progress {
    width: 100%;
    height: 6px;
    margin-top: 10px;
    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));
    gap: 8px;
}

.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-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 {
    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;
    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: calc(var(--ai-fab-offset) + var(--ai-fab-size) + var(--hero-sidebar-v-gap));
        right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
        width: var(--hero-sidebar-width);
        max-height: none;
        display: flex;
        flex-direction: column;
        justify-content: safe center;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 900;
        scrollbar-width: thin;
        scrollbar-color: var(--neo-ink) transparent;
    }

    .hero-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .hero-sidebar::-webkit-scrollbar-thumb {
        background: rgba(10, 10, 10, 0.35);
        border-radius: 0;
    }
}

.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 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;
}

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

.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: 140px;
    object-fit: contain;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.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;
}

/* 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;
}

.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;
}

/* ─── 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-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;
}

/* ─── 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 ─── */
.config-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.config-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.config-modal {
    background: var(--neo-surface);
    width: 90%;
    max-width: 400px;
    padding: 24px;
    border: var(--neo-border);
    box-shadow: 12px 12px 0 var(--neo-ink);
    position: relative;
    transform: translate(8px, 8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.config-modal-overlay.active .config-modal {
    transform: translate(0, 0);
    opacity: 1;
}

.config-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neo-ink);
    text-transform: uppercase;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: var(--neo-border);
}

.close-config {
    background: var(--neo-coral);
    border: var(--neo-border);
    font-size: 1.25rem;
    color: var(--neo-ink);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 var(--neo-ink);
    font-weight: 800;
}

.config-body {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.config-subtitle {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(10, 10, 10, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 2px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--neo-ink);
    background: var(--neo-bg);
    border: var(--neo-border);
    border-radius: 0;
    outline: none;
    font-family: var(--font-body);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.06);
}

.login-input:focus {
    background: #fff;
    box-shadow: var(--neo-shadow-sm);
}

.login-submit-btn,
.logout-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--brand-blue);
    color: #fff;
    border: var(--neo-border);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: var(--neo-shadow-sm);
    transition: transform 0.1s, box-shadow 0.1s;
}

.logout-btn {
    background: var(--neo-coral);
    color: var(--neo-ink);
}

.login-submit-btn:hover,
.logout-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--neo-shadow);
}

.google-login-container {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.google-login-btn {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 14px 12px;
    border: var(--neo-border);
    border-radius: 0;
    background: var(--neo-surface);
    color: var(--neo-ink);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--neo-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    transition: background 0.12s, transform 0.1s, box-shadow 0.1s;
}

.google-login-btn::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--neo-ink);
    box-shadow: 1px 1px 0 var(--neo-ink);
    background: var(--neo-surface) center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303C33.654 32.657 29.083 36 24 36c-5.523 0-10-4.477-10-10s4.477-10 10-10c2.396 0 4.597.84 6.326 2.237l5.958-5.958C33.798 9.484 29.154 8 24 8 12.955 8 4 16.955 4 28s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='M6.306 14.691l6.571 4.819C14.655 16.108 18.961 13 24 13c2.396 0 4.597.84 6.326 2.237l5.958-5.958C33.798 9.484 29.154 8 24 8 16.318 8 9.656 12.337 6.306 18.309z'/%3E%3Cpath fill='%234CAF50' d='M24 48c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 38.913 26.715 40 24 40c-5.118 0-9.534-3.317-11.117-7.946l-6.56 5.058C9.482 42.766 16.156 48 24 48z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z'/%3E%3C/svg%3E");
}

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

.google-login-btn:disabled,
.google-login-btn.is-loading {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.login-status {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.login-status[hidden] {
    display: none !important;
}

.login-status--error {
    color: #b42318;
}

.login-status--success {
    color: #0d6b3a;
}

.login-status--loading {
    color: rgba(10, 10, 10, 0.55);
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--neo-bg);
    padding: 14px 16px;
    border: var(--neo-border);
    width: 100%;
    box-shadow: var(--neo-shadow-sm);
}

.user-avatar-main {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: var(--neo-border);
    background-image: url('../images/Captura de pantalla 2025-07-01 221403.png');
    background-size: cover;
    box-shadow: 2px 2px 0 var(--neo-ink);
}

.user-name-bold {
    font-family: var(--font-display);
    font-weight: 800;
}

.custom-select-trigger {
    padding: 12px 14px;
    font-weight: 700;
    color: var(--neo-ink);
    background: var(--neo-bg);
    border: var(--neo-border);
    border-radius: 0;
    box-shadow: var(--neo-shadow-sm);
    cursor: pointer;
}

.custom-options {
    border: var(--neo-border);
    border-radius: 0;
    box-shadow: var(--neo-shadow);
    background: #fff;
    margin-top: 6px;
}

.custom-option.selected {
    background: var(--neo-yellow);
    color: var(--neo-ink);
    font-weight: 700;
}

/* ─── LANGUAGE PICKER (segmented) ─── */
.lang-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-sm);
    background: var(--neo-bg);
}

.lang-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: none;
    background: var(--neo-surface);
    color: var(--neo-ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.lang-segment + .lang-segment {
    border-left: var(--neo-border);
}

.lang-segment img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border: 2px solid var(--neo-ink);
    box-shadow: 1px 1px 0 var(--neo-ink);
}

.lang-segment:hover {
    background: var(--neo-yellow);
}

.lang-segment.active {
    background: var(--brand-blue);
    color: #fff;
}

.lang-segment.active img {
    border-color: #fff;
    box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* 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;
}

.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;
    font-family: var(--font-display);
    font-weight: 800;
    border-bottom: var(--neo-border);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.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);
    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;
    }
}

.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;
}

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

    .intro-contenedor {
        padding-right: var(--page-gutter);
    }

    .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;
    }

    .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;
    }

    .hero-sidebar {
        position: fixed;
        top: var(--header-height);
        bottom: calc(var(--ai-fab-offset) + var(--ai-fab-size) + var(--hero-sidebar-v-gap));
        right: 0;
        width: var(--hero-drawer-width);
        height: auto;
        max-height: calc(100dvh - var(--header-height) - var(--ai-fab-offset) - var(--ai-fab-size) - var(--hero-sidebar-v-gap));
        padding: 8px 10px 10px;
        background: var(--neo-surface);
        border: var(--neo-border);
        border-right: none;
        box-shadow: -8px 0 0 var(--neo-ink);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
        z-index: 1600;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: clamp(6px, 1.2vh, 10px);
        justify-content: space-between;
        isolation: isolate;
    }

    .hero-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

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

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

    .hero-featured-body {
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
    }

    .hero-featured-link {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 2px clamp(6px, 1.5vw, 8px);
        align-items: center;
        text-align: left;
        width: 100%;
    }

    .hero-featured-image {
        grid-row: 1 / 3;
        width: clamp(52px, 14vw, 64px);
        height: clamp(100px, 22vh, 118px);
        margin-bottom: 0;
        object-fit: contain;
    }

    .hero-featured-name {
        font-size: clamp(0.72rem, 2.6vw, 0.82rem);
        margin-bottom: 0;
        line-height: 1.2;
        align-self: end;
    }

    .hero-featured-score {
        justify-content: flex-start;
        margin-top: 0;
    }

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

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

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

    .hero-quick-links-grid {
        flex: 1;
        gap: clamp(5px, 1vh, 8px);
        align-content: stretch;
    }

    .hero-quick-link {
        min-height: 0;
        height: 100%;
        padding: clamp(6px, 1.1vh, 9px) 6px;
        font-size: clamp(0.6rem, 2.2vw, 0.7rem);
        line-height: 1.15;
        box-shadow: 2px 2px 0 var(--neo-ink);
    }

    .hero-ai-teaser {
        justify-content: space-between;
    }

    .hero-ai-chips {
        gap: clamp(5px, 0.9vh, 7px);
        margin-bottom: clamp(6px, 1vh, 8px);
        flex-wrap: wrap;
    }

    .hero-ai-chip {
        font-size: clamp(0.66rem, 2.3vw, 0.76rem);
        padding: clamp(5px, 1vh, 7px) 8px;
        line-height: 1.15;
    }

    .hero-ai-cta {
        padding: clamp(7px, 1.2vh, 10px) 10px;
        font-size: clamp(0.66rem, 2.3vw, 0.76rem);
        box-shadow: 3px 3px 0 var(--neo-ink);
        margin-top: auto;
    }

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

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

        .hero-featured-image {
            width: 46px;
            height: 88px;
        }

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

        .hero-quick-link {
            font-size: 0.58rem;
            padding: 5px 5px;
        }

        .hero-ai-chip {
            font-size: 0.62rem;
            padding: 4px 7px;
        }

        .hero-ai-chips .hero-ai-chip:nth-child(3) {
            display: none;
        }
    }

    .recent-phones-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    .recent-phone-image {
        width: 60px;
        height: 120px;
    }

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

@media (max-width: 900px) {
    .search-form input[type="search"] {
        width: 140px;
    }

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

@media (max-width: 760px) {
    .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.expanded input[type="search"] {
        width: 140px;
        padding: 8px 10px;
        opacity: 1;
        pointer-events: auto;
        border: var(--neo-border);
        box-shadow: var(--neo-shadow-sm);
    }

    .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;
        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));
    }
}

@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, 1rem) !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);
    }

    .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));
    }

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

    .ai-chat-panel {
        bottom: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        height: min(420px, 58vh);
        max-height: 58vh;
        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-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: 0.85rem;
    }

    .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);
        max-height: 54vh;
    }

    .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: 0.8rem;
    }
}

@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;
    }
}
