:root {
    --primary: #2b73b3;
    --accent: #6ab2e3;
    --success-strong: #3a7737;
    --success-soft: #7fba54;
    --bg: #f2f8ff;
    --card: #ffffff;
    --muted: #4d5f73;
    --text: #0f1f33;
    --navbar-height: 76px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(106,178,227,0.28), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(127,186,84,0.18), transparent 26%),
        linear-gradient(160deg, #f8fbff 0%, #eef6ff 55%, #f5fcf6 100%);
    color: var(--text);
    min-height: 100vh;
    font-family: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

a { color: var(--primary); }

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15,31,51,0.06);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(15,31,51,0.08);
    padding: .65rem 0;
}

.main-navbar .nav-list {
    list-style: none;
    padding-left: 0;
    gap: .4rem !important;
}

.main-navbar .nav-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: .4rem .8rem;
    font-size: .98rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: all .2s ease;
}

.main-navbar .navbar-toggler {
    border-color: rgba(15,31,51,0.15);
    color: var(--text);
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(106,178,227,0.28);
}

.main-navbar .navbar-collapse {
    flex-grow: 0;
}

.home-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 3rem);
}

.home-section {
    width: 100%;
}

.section-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.step-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.stepper {
    position: sticky;
    top: var(--navbar-height);
    z-index: 10;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(43,115,179,0.1);
    box-shadow: 0 12px 30px rgba(43,115,179,0.12);
}

.home-stepper {
    border-radius: 14px;
}

.home-stepper .brand {
    gap: .75rem;
}

.stepper-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: .75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    border: 2px solid rgba(43,115,179,0.2);
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    color: var(--muted);
    cursor: pointer;
}

.stepper-item .circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(43,115,179,0.35);
    display: grid;
    place-items: center;
    font-weight: 700;
    transition: all .25s ease;
    background: #fff;
    color: var(--text);
}

.stepper-item.active .circle {
    border-color: var(--primary);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 6px rgba(106,178,227,0.26);
}

.stepper-item.done .circle {
    border-color: var(--success-soft);
    background: rgba(127,186,84,0.12);
    color: var(--success-soft);
}

.stepper-item span.label {
    font-size: .9rem;
    font-weight: 600;
}

.step-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.75rem) 0 clamp(2rem, 3vw, 3rem);
}

.step-screen {
    display: none;
    width: 100%;
    min-height: calc(100vh - 140px);
    align-items: center;
    justify-content: center;
    padding: clamp(1.75rem, 2.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem) clamp(2.5rem, 3vw, 3.5rem);
    max-width: 1100px;
    margin: 0 auto;
}

.step-screen.active { display: flex; }

.card-glass {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border: 1px solid rgba(15,31,51,0.06);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15,31,51,0.12);
    padding: clamp(1.5rem, 2.3vw, 2.75rem);
}

.card-glass h1, .card-glass h2, .card-glass h3, .card-glass h4 {
    color: var(--text);
}

.card-glass p {
    color: #30455c;
    font-size: 1.02rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    box-shadow: 0 10px 30px rgba(106,178,227,0.35);
}

.btn-home {
    background: linear-gradient(135deg, var(--success-strong), var(--success-soft));
    border: none;
    box-shadow: 0 10px 30px rgba(106,178,227,0.35);
    color: #fff;
    font-size: 14px;
    margin-top: 100px;
}

.btn-outline-light {
    border-color: rgba(43,115,179,0.35);
    color: var(--text);
}

.btn-outline-light:hover {
    background: rgba(106,178,227,0.16);
    border-color: var(--accent);
}

.pill {
    background: rgba(106,178,227,0.15);
    border: 1px solid rgba(106,178,227,0.35);
    color: var(--text);
    padding: .45rem .75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.pill button {
    background: transparent;
    border: none;
    color: #ff8b8b;
    font-weight: 700;
    line-height: 1;
}

.tarifa-card {
    border: 1px solid rgba(106,178,227,0.28);
    background: #f7fbff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    position: relative;
}

.tarifa-card.locked {
    background: rgba(127,186,84,0.12);
    border-color: rgba(127,186,84,0.6);
}

.muted {
    color: var(--muted);
}

.input-dark {
    background: #f8fbff;
    border: 1px solid rgba(106,178,227,0.8);
    color: var(--text);
}

.input-dark:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 .15rem rgba(106,178,227,0.35);
    color: var(--text);
}

.input-dark::placeholder { color: #6b7b8f; }

.resume-badge {
    background: var(--success-strong);
    border: 1px solid rgba(53,211,153,0.45);
    color: #bef5da;
    border-radius: 10px;
    padding: .4rem .65rem;
    font-size: .95rem;
}

.slider-wrap {
    background: #f7fbff;
    border: 1px solid rgba(106,178,227,0.3);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.card-result {
    background: #f9fbff;
    border: 1px solid rgba(106,178,227,0.25);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(43,115,179,0.12);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    position: relative;
}

footer {
    color: var(--muted);
}

.card-result .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.card-result .title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    color: var(--text);
}

.btn-close-card {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(106,178,227,0.35);
    background: #fff;
    color: var(--text);
    display: grid;
    place-items: center;
    font-weight: 700;
    line-height: 1;
}

.btn-close-card:hover {
    background: #eef6ff;
    border-color: var(--accent);
    color: var(--primary);
}

.card-result .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3a7737;
    background: rgba(127,186,84,0.14);
    border-radius: 12px;
    padding: .35rem .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.card-result .meta {
    text-align: center;
    color: #4d5f73;
    font-size: .92rem;
    margin-top: .4rem;
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.card-result .btn-inline {
    border-color: rgba(106,178,227,0.4);
    color: var(--text);
    background: #eef6ff;
}

.info-panel {
    background: #f7fbff;
    border: 1px solid rgba(43,115,179,0.14);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw, 1.9rem) clamp(1.3rem, 2.5vw, 2rem);
    box-shadow: 0 10px 26px rgba(43,115,179,0.08);
    max-width: 1100px;
    margin: 0 auto;
}

.info-panel p {
    color: #30455c;
}

.info-panel__title {
    letter-spacing: .08em;
}

.info-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--text);
}

.info-list li + li {
    margin-top: .35rem;
}

input[type=range]::-webkit-slider-thumb { background: var(--primary); }
input[type=range]::-moz-range-thumb { background: var(--primary); }

/* Páginas legales */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(43,115,179,0.15);
    box-shadow: 0 10px 24px rgba(43,115,179,0.12);
}

.badge-pill {
    background: rgba(106,178,227,0.18);
    border: 1px solid rgba(106,178,227,0.32);
    color: var(--text);
    padding: .35rem .75rem;
    border-radius: 999px;
}

.card-legal {
    background: #ffffff;
    border: 1px solid rgba(106,178,227,0.28);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(43,115,179,0.14);
    padding: 1.8rem;
}

table thead {
    background: rgba(106,178,227,0.18);
}

@media (max-width: 768px) {
    .main-navbar .navbar-collapse { width: 100%; }
    .main-navbar .nav-list { width: 100%; gap: .55rem !important; }
    .main-navbar .nav-btn { width: 100%; display: block; text-align: left; font-size: .95rem; padding: .5rem .9rem; }
    .main-navbar .brand .fw-bold { font-size: 1rem; }
    .main-navbar .brand .small { font-size: .8rem; }
    .stepper-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
    .stepper-item span.label { font-size: .8rem; text-align: center; }
    .stepper-item .circle { width: 32px; height: 32px; font-size: .9rem; }
    .step-screen { padding: 1.5rem 1rem 2.5rem; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .card-glass { border-radius: 14px; }
}

.texto-afiliado-amazon
{
    font-size: 0.75rem;
    color: #6b7b8f;
}
