/* ================================================
   CONFIGURADOR / COTIZADOR - AntWebStudios
   ================================================ */

:root {
    --primary:       #FF6A00;
    --primary-dark:  #e55e00;
    --bg:            #000000;
    --bg-card:       rgba(18, 18, 18, 0.97);
    --bg-card-hover: rgba(26, 26, 26, 1);
    --border:        rgba(255, 106, 0, 0.1);
    --border-active: #FF6A00;
    --text:          #ffffff;
    --text-muted:    #888888;
    --text-sec:      #c0c0c0;
    --green:         #25d366;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    min-height: 100vh;
}

/* ---- HEADER ---- */
.cfg-header {
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid rgba(255, 106, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.cfg-header-inner {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cfg-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.cfg-logo span { color: var(--primary); }

.cfg-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.cfg-back:hover { color: var(--primary); }

/* ---- HERO ---- */
.cfg-hero {
    text-align: center;
    padding: 56px 24px 44px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 106, 0, 0.1) 0%, transparent 65%);
}

.cfg-hero-inner { max-width: 640px; margin: 0 auto; }

.cfg-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.cfg-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cfg-hero h1 span { color: var(--primary); }

.cfg-hero p {
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.65;
}

/* ---- MAIN / WIZARD WRAP ---- */
.cfg-main { padding: 0 24px 100px; }

.wizard-wrap {
    max-width: 1020px;
    margin: 0 auto;
}

/* ---- PROGRESS BAR ---- */
.wizard-progress { margin-bottom: 44px; padding-top: 8px; }

.progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    margin-bottom: 18px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-dots {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.pdot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pdot-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
    margin: 0 auto;
}

.pdot.active .pdot-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 106, 0, 0.5);
}

.pdot.done .pdot-circle {
    background: rgba(255, 106, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.pdot-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: block;
}

.pdot.active .pdot-label { color: var(--text); }

/* ---- STEPS ---- */
.wstep {
    display: none;
    animation: fadeStep 0.28s ease forwards;
}

.wstep.active { display: block; }

@keyframes fadeStep {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: clamp(1.25rem, 2.8vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.step-sub {
    color: var(--text-sec);
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 680px;
}

/* ---- OPTIONS GRID ---- */
.opts-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.opts-2col { grid-template-columns: repeat(2, 1fr); }
.opts-3col { grid-template-columns: repeat(3, 1fr); }

/* ---- OPTION CARD ---- */
.opt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 22px 20px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
}

.opt-card input { display: none; }

.opt-card:hover {
    border-color: rgba(255, 106, 0, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.opt-card.selected {
    border-color: var(--primary);
    background: rgba(255, 106, 0, 0.06);
    box-shadow: 0 0 0 1px var(--primary), 0 6px 22px rgba(255, 106, 0, 0.12);
}

.opt-card.included {
    border-color: rgba(255, 106, 0, 0.25);
    cursor: default;
    opacity: 0.75;
}

.opt-card.included:hover { transform: none; }

/* Compact variant (for 3-col grids) */
.opt-card.compact { padding: 16px 14px; gap: 8px; }

.opt-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opt-icon i { font-size: 1.2rem; color: var(--primary); }

.opt-card.compact .opt-icon { width: 38px; height: 38px; border-radius: 8px; }
.opt-card.compact .opt-icon i { font-size: 1rem; }

.opt-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.opt-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.opt-card.compact .opt-body h3 { font-size: 0.88rem; }
.opt-card.compact .opt-body p  { font-size: 0.78rem; }

.opt-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Checkmark badge (top-right) */
.opt-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.12);
    border: 1.5px solid rgba(255, 106, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.opt-check i { font-size: 0.65rem; color: var(--primary); }

.opt-card.selected .opt-check {
    opacity: 1;
    background: var(--primary);
    border-color: var(--primary);
}

.opt-card.selected .opt-check i { color: #fff; }
.opt-card.included .opt-check   { opacity: 1; }

/* "Incluida" pill badge */
.opt-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(255, 106, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ---- STEP 5: SPLIT GRID ---- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 12px;
}

.split-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}

/* ---- OPTION ROW (list style for step 5) ---- */
.opts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    position: relative;
}

.opt-row input { display: none; }

.opt-row:hover { border-color: rgba(255, 106, 0, 0.3); }

.opt-row.selected {
    border-color: var(--primary);
    background: rgba(255, 106, 0, 0.06);
}

.row-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.row-icon i { color: var(--primary); font-size: 0.85rem; }

.row-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.row-body strong { font-size: 0.88rem; color: #fff; font-weight: 600; }
.row-body span   { font-size: 0.78rem; color: var(--text-muted); }

.row-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.row-check i { font-size: 0.58rem; color: #fff; opacity: 0; transition: opacity 0.2s; }

.opt-row.selected .row-check {
    background: var(--primary);
    border-color: var(--primary);
}

.opt-row.selected .row-check i { opacity: 1; }

/* ---- STEP 6: FORM ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.form-field .required { color: #ff4444; }

.form-field input,
.form-field textarea {
    background: rgba(20, 20, 20, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s;
}

.form-field textarea { min-height: 90px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus  { outline: none; border-color: rgba(255, 106, 0, 0.45); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #444; }

/* ---- RESUMEN ---- */
.cfg-summary {
    background: rgba(255, 106, 0, 0.04);
    border: 1px solid rgba(255, 106, 0, 0.18);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 28px;
}

.summary-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.srow {
    display: flex;
    gap: 14px;
    font-size: 0.87rem;
}

.srow-label {
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 150px;
}

.srow-value { color: #e0e0e0; flex: 1; }

.summary-estimate {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 106, 0, 0.12);
    font-size: 0.86rem;
    color: var(--text-sec);
    line-height: 1.5;
}

.summary-estimate strong {
    color: var(--primary);
    font-size: 1.15rem;
}

/* ---- SEND AREA ---- */
.send-area { text-align: center; }

.wsp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    padding: 16px 38px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-bottom: 12px;
}

.wsp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.wsp-btn i { font-size: 1.25rem; }

.send-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ---- WIZARD NAV (Anterior / Siguiente) ---- */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #b0b0b0;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.nav-btn:hover { border-color: var(--primary); color: #fff; }

.nav-btn.next {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.nav-btn.next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35);
}

.nav-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- PRICE BADGE (flotante) ---- */
.price-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(8, 8, 8, 0.97);
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    box-shadow: 0 8px 28px rgba(255, 106, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.price-badge-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.price-badge-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---- ERROR MESSAGE ---- */
.step-error {
    color: #ff4444;
    font-size: 0.84rem;
    font-weight: 500;
    margin-top: 12px;
    animation: fadeStep 0.2s ease;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 820px) {
    .opts-3col { grid-template-columns: repeat(2, 1fr); }
    .split-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
    .opts-2col,
    .opts-3col { grid-template-columns: 1fr; }

    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }

    .cfg-hero { padding: 40px 0 30px; }

    .wizard-nav { flex-wrap: wrap; gap: 12px; }
    .nav-btn { flex: 1; justify-content: center; }

    .pdot-label { display: none; }

    .price-badge {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
    }
}
