:root {
    --camper-primary: #1d4ed8;
    --camper-primary-hover: #1e40af;
    --camper-accent: #2563eb;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #64748b;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* TOP BAR */
.camper-top-bar {
    background: #fff;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.camper-top-bar .top-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.camper-top-bar .top-item i { color: #ccc; }

.camper-top-bar .top-contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.camper-top-bar .top-contact i { color: #22c55e; font-size: 1rem; }

/* HEADER */
.camper-header {
    background: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.camper-header .logo-container {
    display: flex;
    flex-direction: column;
}

.camper-header .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.camper-header .logo-text span { color: var(--camper-accent); }

.camper-header .logo-subtext {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--camper-primary);
    margin-top: 2px;
}

.camper-header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.camper-header nav a {
    text-decoration: none;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.header-icons {
    display: flex;
    gap: 1.2rem;
    color: #334155;
    font-size: 1.1rem;
}

/* HERO */
.camper-hero {
    position: relative;
    height: auto;
    min-height: 70vh;
    background: url('imagenes/camper-hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 8% 4rem;
    color: white;
}

.camper-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.camper-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.camper-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.camper-hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-config {
    background: var(--camper-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-search {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-badges {
    display: flex;
    gap: 3rem;
}

.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.hero-badges i { font-size: 1.5rem; color: #fff; opacity: 0.8; }

/* SECTIONS COMMON */
section { padding: 5rem 8%; }

.section-title {
    text-align: left;
    margin-bottom: 3rem;
}

.section-title h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.5rem; text-transform: uppercase; }
.section-title p { color: var(--text-gray); }

/* VEHICLE SELECTION */
.vehicle-selection { background: #fff; }

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.select-group select {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    font-weight: 600;
}

.btn-primary-camper {
    width: 100%;
    background: var(--camper-primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.quick-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.vehicle-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.vehicle-card img { width: 100%; margin-bottom: 1rem; border-radius: 4px; }
.vehicle-card h4 { font-size: 0.8rem; font-weight: 800; margin-bottom: 0.2rem; }
.vehicle-card p { font-size: 0.7rem; color: var(--text-gray); }

.vehicle-card.more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-style: dashed;
}

.vehicle-card.more i { font-size: 1.5rem; color: #cbd5e1; margin-bottom: 1rem; }

/* STEPPER */
.stepper-camper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
}

.stepper-camper::after {
    content: '';
    position: absolute;
    top: 15px; left: 0; width: 100%; height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.stepper-camper .step {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.step.active .step-num {
    background: var(--camper-primary);
    border-color: var(--camper-primary);
    color: white;
}

.step span { font-size: 0.65rem; font-weight: 800; color: #94a3b8; }
.step.active span { color: #111; }

/* CONFIGURATOR */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.main-config { background: #fff; padding: 3rem; border-radius: 8px; border: 1px solid #e2e8f0; }

.shapes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.shape-card {
    text-align: center;
    cursor: pointer;
}

.shape-box {
    height: 85px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    background: #fff;
    padding: 10px;
    transition: all 0.3s;
}

.shape-box svg {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.shape-card:hover .shape-box svg {
    transform: scale(1.1);
}

.shape-card.active .shape-box svg path, 
.shape-card.active .shape-box svg rect {
    fill: rgba(79, 111, 82, 0.2);
    stroke: var(--camper-primary);
    stroke-width: 3px;
}
.shape-card span { font-size: 0.6rem; font-weight: 700; color: #64748b; }

.preview-3d {
    background: #f1f5f9;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    position: relative;
    margin-bottom: 3rem;
}

.preview-3d img { max-width: 100%; }

.dim-label {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.dim-label.x { bottom: 20px; left: 50%; transform: translateX(-50%); }
.dim-label.y { right: 20px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.opt-block h4 { font-size: 0.85rem; font-weight: 900; margin-bottom: 1.2rem; }

.btn-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-grid button { padding: 0.6rem 1rem; border: 1px solid #e2e8f0; background: #fff; border-radius: 4px; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.btn-grid button.active { border-color: var(--camper-primary); color: var(--camper-primary); background: rgba(79, 111, 82, 0.05); border-width: 2px; }

.comfort-grid { display: flex; flex-direction: column; gap: 0.8rem; }
.comfort-card {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.comfort-card strong { font-size: 0.85rem; }
.comfort-card span { font-size: 0.7rem; color: #64748b; }
.comfort-card.active { border-color: var(--camper-primary); border-width: 2px; }

.comfort-card.special { border-color: var(--camper-accent); border-style: dashed; position: relative; }
.reco-tag { position: absolute; top: -10px; right: 10px; background: var(--camper-primary); color: white; font-size: 0.5rem; padding: 2px 6px; border-radius: 10px; font-weight: 800; }

.fabric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.fabric-card { text-align: center; cursor: pointer; }
.swatch { width: 100%; aspect-ratio: 1; border-radius: 4px; border: 1px solid #e2e8f0; margin-bottom: 0.4rem; }
.swatch.gris { background: #94a3b8; }
.swatch.beige { background: #d6d3d1; }
.swatch.anthracite { background: #334155; }
.swatch.premium { background: #e2e8f0; }
.fabric-card.active .swatch { border-color: var(--camper-primary); border-width: 2px; }
.fabric-card span { font-size: 0.6rem; font-weight: 700; }

.extras-list { list-style: none; padding: 0; }
.extras-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.8rem; font-weight: 600; }
.extras-list input { margin-right: 0.8rem; }
.extras-list span { color: var(--camper-primary); font-weight: 800; }

/* SIDEBAR */
.config-summary { background: #fff; padding: 2rem; border-radius: 8px; border: 1px solid #e2e8f0; height: fit-content; position: sticky; top: 100px; }
.config-summary h4 { font-size: 0.9rem; font-weight: 900; margin-bottom: 2rem; border-bottom: 2px solid var(--camper-primary); display: inline-block; padding-bottom: 0.3rem; }

.summary-details { margin-bottom: 2.5rem; }
.s-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid #f1f5f9; }
.s-row span { color: #64748b; }

.price-box { text-align: center; }
.p-label { display: block; font-size: 0.7rem; font-weight: 800; color: #94a3b8; margin-bottom: 0.5rem; }
.p-value { display: block; font-size: 2rem; font-weight: 900; color: #111; margin-bottom: 1.5rem; }

.btn-add-cart { width: 100%; background: var(--camper-primary); color: white; padding: 1rem; border: none; border-radius: 4px; font-weight: 800; font-size: 0.9rem; cursor: pointer; margin-bottom: 1rem; }
.btn-quote { display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; text-decoration: none; }

/* TRUST */
.camper-trust { background: #fff; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.trust-item { text-align: center; }
.trust-item i { font-size: 2rem; color: #cbd5e1; margin-bottom: 1.5rem; }
.trust-item h4 { font-size: 0.8rem; font-weight: 900; margin-bottom: 0.5rem; }
.trust-item p { font-size: 0.75rem; color: var(--text-gray); }

/* FOOTER BADGES */
.footer-badges { background: #f8fafc; display: grid; grid-template-columns: repeat(4, 1fr); padding: 3rem 8%; border-top: 1px solid #e2e8f0; }
.footer-badges .badge { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; font-weight: 800; }
.footer-badges i { font-size: 1.5rem; color: #94a3b8; }
.footer-badges small { font-weight: 500; color: #64748b; font-size: 0.7rem; }

/* STEP CONTENT NAVIGATION */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.btn-next, .btn-back {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
}

.btn-next {
    background: var(--camper-primary);
    color: white;
    border: none;
    margin-left: auto;
}

.btn-next:hover {
    background: var(--camper-primary-hover);
    transform: translateX(5px);
}

.btn-back {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-back:hover {
    background: #f8fafc;
    color: #111;
}

.step.completed .step-num {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.final-summary-box {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ================================================
   CAMPER CONFIGURATOR - MOBILE RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .config-grid { grid-template-columns: 1fr; }
    .shapes-grid { grid-template-columns: repeat(3, 1fr); }
    .stepper-camper .step span { font-size: 0.55rem; }
    .configurador-camper { padding: 3rem 4%; }
    .camper-hero { padding: 6rem 5% 3rem; }
}

@media (max-width: 768px) {
    /* Configurator padding */
    .configurador-camper { padding: 2rem 4%; }
    .main-config { padding: 1.5rem; }

    /* Stepper */
    .stepper-camper { margin-bottom: 2rem; }
    .stepper-camper .step span { display: none; }
    .stepper-camper::after { top: 13px; }

    /* Config grid */
    .config-grid { gap: 1.5rem; }

    /* Show summary before steps */
    .config-summary { order: -1; position: static; }

    /* Shape cards 2 cols */
    .shapes-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .shape-box { height: 65px; }

    /* Thickness buttons wrapping nicely */
    .btn-grid { gap: 0.4rem; }
    .btn-grid button { padding: 0.5rem 0.8rem; font-size: 0.75rem; }

    /* Options row stacked */
    .options-row { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Comfort cards */
    .comfort-card { padding: 0.7rem; }
    .comfort-card strong { font-size: 0.8rem; }

    /* Fabric 3 cols */
    .fabric-grid { grid-template-columns: repeat(3, 1fr); }

    /* Step nav */
    .step-nav { margin-top: 2rem; }
    .btn-next, .btn-back { padding: 0.7rem 1rem; font-size: 0.7rem; }

    /* Footer badges */
    .footer-badges { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; padding: 2rem 4%; }

    /* Trust */
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    /* Hero */
    .camper-hero h1 { font-size: 2rem; }
    .camper-hero p { font-size: 0.9rem; }
    .hero-badges { flex-direction: column; gap: 1rem; }
    .hero-badges .badge { font-size: 0.75rem; }

    /* Summary sidebar price fixed at bottom */
    .price-box { position: sticky; bottom: 0; background: white; padding: 1rem; border-top: 2px solid #e2e8f0; margin: -2rem -2rem 0; padding: 1.2rem 1.5rem; }
    .btn-add-cart { margin-bottom: 0; }
    .p-value { font-size: 1.6rem; margin-bottom: 0.8rem; }

    /* S-rows compact */
    .s-row { padding: 0.5rem 0; font-size: 0.75rem; }
    .config-summary h4 { font-size: 0.8rem; margin-bottom: 1rem; }

    /* Extras list */
    .extras-list li { font-size: 0.75rem; }
    .extras-list span { font-size: 0.75rem; }

    /* Final summary */
    .final-summary-box { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .shapes-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .shape-box { height: 60px; }
    .step-num { width: 24px; height: 24px; font-size: 0.65rem; }
    .camper-hero h1 { font-size: 1.7rem; }
    .main-config { padding: 1rem; }
    .fabric-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-badges { grid-template-columns: 1fr; }
}
