:root {
    --red: #CC2229;
    --red-dark: #991A1F;
    --red-light: #fff0f0;
    --black: #111113;
    --grey-dark: #2a2a2e;
    --grey-mid: #5a5a62;
    --grey-light: #e8e8ed;
    --grey-bg: #f4f4f6;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
    --tr: 0.2s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--grey-bg);
    color: var(--black);
    min-height: 100vh;
}

.hero {
    background: white;
    padding: 48px 32px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(204, 34, 41, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(204, 34, 41, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: flex;
    gap: 2px;
    padding: 3px;
    background: var(--grey-bg);
    border: 1px solid var(--grey-light);
    border-radius: 100px;
}

.lang-switch a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--grey-mid);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 100px;
    transition: var(--tr);
}

.lang-switch a:hover {
    color: var(--black);
    background: var(--white);
}

.lang-switch a[aria-current] {
    background: var(--red);
    color: var(--white);
}

.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    margin-bottom: 16px;
    width: 20rem;
    cursor: pointer;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.hero-title span {
    color: var(--red);
}

.hero-sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--black);
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.hero-stat-num span {
    color: var(--red);
}

.hero-stat-label {
    font-size: 11px;
    color: var(--black);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.progress-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-steps {
    display: flex;
    align-items: center;
    flex: 1;
}

.pstep {
    display: flex;
    align-items: center;
    flex: 1;
}

.pstep-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--grey-light);
    color: var(--grey-mid);
    background: var(--white);
    flex-shrink: 0;
    transition: var(--tr);
}

.pstep-dot.done {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.pstep-dot.active {
    background: var(--white);
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 4px rgba(204, 34, 41, 0.12);
}

.pstep-line {
    flex: 1;
    height: 2px;
    background: var(--grey-light);
    margin: 0 -1px;
    transition: var(--tr);
}

.pstep-line.done {
    background: var(--red);
}

.progress-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--grey-mid);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.progress-label strong {
    display: block;
    color: var(--black);
    font-size: 14px;
}

.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(.4, 0, .2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    background: linear-gradient(135deg, var(--black) 0%, var(--grey-dark) 100%);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

.question-header::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(204, 34, 41, 0.2) 0%, transparent 70%);
}

.question-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}

.question-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.multi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 3px 10px;
}

.question-body {
    padding: 24px 28px;
}

.opt-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.opt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.opt-grid-colors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.opt-btn {
    position: relative;
    background: var(--grey-bg);
    border: 2px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 16px 14px;
    cursor: pointer;
    text-align: left;
    transition: var(--tr);
    display: flex;
    flex-direction: column;
    gap: 6px;
    outline: none;
    width: 100%;
}

.opt-btn:hover {
    border-color: var(--red);
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.opt-btn.sel {
    border-color: var(--red);
    background: var(--red-light);
    box-shadow: 0 0 0 3px rgba(204, 34, 41, 0.12);
}

.chk {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.opt-btn.sel .chk {
    display: flex;
}

.opt-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--red);
    transition: var(--tr);
    flex-shrink: 0;
}

.opt-btn.sel .opt-icon-wrap {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.opt-btn.large .opt-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 12px;
}

.opt-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.2;
}

.opt-btn.large .opt-label {
    font-size: 18px;
}

.opt-btn.sel .opt-label {
    color: var(--red-dark);
}

.opt-desc {
    font-size: 12px;
    color: var(--grey-mid);
    line-height: 1.4;
}

.color-btn {
    background: var(--grey-bg);
    border: 2px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--tr);
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    position: relative;
    outline: none;
    width: 100%;
}

.color-btn:hover {
    border-color: var(--red);
    background: var(--red-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.color-btn.sel {
    border-color: var(--red);
    background: var(--red-light);
    box-shadow: 0 0 0 3px rgba(204, 34, 41, 0.12);
}

.color-btn .chk {
    display: none;
    position: absolute;
    top: 8px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.color-btn.sel .chk {
    display: flex;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.nav-row {
    padding: 16px 28px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--grey-light);
}

.btn-next {
    padding: 12px 28px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--tr);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-next:hover:not(:disabled) {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(204, 34, 41, 0.3);
}

.btn-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    padding: 12px 20px;
    background: transparent;
    color: var(--grey-mid);
    border: 2px solid var(--grey-light);
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--tr);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-back:hover {
    border-color: var(--grey-mid);
    color: var(--black);
}

.btn-reset {
    margin-left: auto;
    padding: 10px 16px;
    background: transparent;
    color: var(--grey-mid);
    border: none;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: var(--radius);
    transition: var(--tr);
}

.btn-reset:hover {
    color: var(--red);
    background: var(--red-light);
}

.results-header-card {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(204, 34, 41, 0.3);
    animation: slideUp 0.3s ease;
}

.results-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    flex-shrink: 0;
}

.results-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}

.results-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* Resultados: tarjetas pequeñas para marcar los modelos a comparar */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.result-card {
    position: relative;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: var(--tr);
    animation: slideUp 0.3s ease both;
    outline: none;
}

.result-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.result-card:focus-visible {
    border-color: var(--grey-mid);
}

.result-card.sel {
    border-color: var(--red);
    background: var(--red-light);
    box-shadow: 0 0 0 3px rgba(204, 34, 41, 0.12);
}

.result-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-mid);
}

.result-card.sel .result-check {
    color: var(--red-dark);
}

.result-check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--grey-light);
    border-radius: 5px;
    background: var(--white);
    color: transparent;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--tr);
}

.result-card:hover .result-check-box {
    border-color: var(--red);
}

.result-card.sel .result-check-box {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.result-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin: 4px 0;
    transition: transform 0.3s ease;
}

.result-card:hover .result-img {
    transform: scale(1.04);
}

.result-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-link {
    margin-top: auto;
    padding-top: 6px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.result-link:hover {
    text-decoration: underline;
}

.compare-bar {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    margin-top: 16px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 12px 12px 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-bar-text {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.compare-bar-text strong {
    color: var(--white);
    font-size: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid var(--grey-light);
    color: var(--grey-mid);
    background: var(--grey-bg);
}

.tag.feature {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.tag.lens {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 14px;
    background: var(--grey-bg);
    border-top: 1px solid var(--grey-light);
}

.score-track {
    flex: 1;
    height: 5px;
    background: var(--grey-light);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 3px;
}

.score-pct {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
    min-width: 52px;
    text-align: right;
}

.card-no-results {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.icon-div-no-results {
    font-size: 48px;
    color: var(--grey-light);
}

.title-no-results {
    font-family: Barlow Condensed, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 12px 0 6px;
}

.text-no-results {
    font-size: 14px;
    color: var(--grey-mid);
}

.nav2-results {
    background: transparent;
    border: none;
    padding: 8px 0 0;
}

.enlaceComparador {
    color: #fff;
    background-color: #7e96aa;
    border-color: #6c757d;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    width: fit-content;
    border: 2px solid #6c757d;
}

/* Comparador (no se usa .container porque choca con la de Bootstrap) */
.comparador-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.comparador-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: auto;
    max-height: 700px;
    animation: slideUp 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* Oculta el borde exterior de la tabla para que no se duplique con la tarjeta */
.comparador-tabla {
    border-style: hidden;
}

.comparador-tabla th,
.comparador-tabla td {
    padding: 10px 16px;
    vertical-align: middle;
}

.comparador-nombre {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 8px;
}

.comparador-campo {
    font-size: 14px;
    font-weight: 500;
}










@media (max-width:768px) {

    .container,
    .comparador-wrap {
        padding: 24px 16px 40px;
    }

    .hero {
        padding: 36px 20px 40px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-stats {
        gap: 20px;
    }

    .question-header,
    .question-body,
    .nav-row {
        padding-left: 20px;
        padding-right: 20px;
    }

}


@media (max-width:560px) {

    .container,
    .comparador-wrap {
        padding: 20px 12px 32px;
    }

    .hero {
        padding: 28px 16px 32px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-num {
        font-size: 24px;
    }

    .progress-wrap {
        display: block;
        padding: 16px;

    }

    .progress-label strong {
        text-align: center;
        display: inline;
        font-size: inherit;
    }

    .progress-steps {
        width: 100%;
        margin-bottom: 14px;
    }

    .progress-label {
        display: block;
        text-align: center;
        min-width: 0;
    }

    .pstep {
        flex: 1;
    }

    .pstep-dot {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .pstep-line {
        margin: 0 4px;
    }

    .progress-label {

        min-width: auto;
    }

    .question-header,
    .question-body,
    .nav-row {
        padding: 16px;
    }

    .question-title {
        font-size: 22px;
    }

    .opt-grid-4,
    .opt-grid-3,
    .opt-grid-colors {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .opt-btn {
        padding: 14px 10px;
    }

    .opt-label {
        font-size: 15px;
    }

    .opt-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .nav-row {
        flex-wrap: wrap;
    }

    .btn-next,
    .btn-back {
        flex: 1;
        justify-content: center;
    }

    .btn-reset {
        margin: 0;
        width: 100%;
        justify-content: center;
        margin-left: auto;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .result-img {
        height: 90px;
    }

    .compare-bar {
        flex-wrap: wrap;
        padding: 12px;
    }

    .compare-bar-text {
        flex-basis: 100%;
        text-align: center;
    }

    .compare-bar .btn-next {
        flex: 1;
        justify-content: center;
    }

    .lang-switch {
        position: static;
        width: fit-content;
        margin: 0 auto 16px;
    }

    .progress-wrap {
        overflow: hidden;

    }

    .progress-steps {
        width: 100%;

    }

    .pstep {
        flex: 1 1 0;
        min-width: 0;
    }

    .pstep:last-child {
        flex: 0 1 auto;
    }

}


@media (max-width:380px) {

    .hero-title {
        font-size: 28px;
    }

    .question-title {
        font-size: 20px;
    }

    .opt-grid-4,
    .opt-grid-3,
    .opt-grid-colors {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        justify-content: space-between;
    }

    .hero-stat {
        flex: 1;
        text-align: center;
    }

}
