/* DISEÑO EQUILIBRADO - GRID PROTEGIDO & FADEIN */

:root {
    --brand-black: #101010;
    --brand-green: #1B823C;
    --brand-white: #FFFFFF;
    --brand-gray-bg: #f5f5f7; 
    --brand-border: #d2d2d7;
}

/* --- CONTENEDOR --- */
.repair-main-container {
    max-width: 1100px; 
    margin: 40px auto;
    padding: 30px;
    font-family: 'Onest', sans-serif;
    background: var(--brand-white);
    border-radius: 24px;
}

/* --- PASOS (Números Gigantes + FadeIn) --- */
.step-wrapper {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-bottom: 50px;
}
.step-wrapper.show-step { 
    display: block; 
    opacity: 1; 
    transform: translateY(0); 
}

.step-title { 
    font-size: 1.8rem; 
    font-weight: 600; 
    margin-bottom: 25px; 
    display: flex; 
    align-items: center; 
}

.step-title span { 
    background: var(--brand-green);
    color: var(--brand-white);
    width: 60px; 
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* --- GRIDS (ESTRUCTURA ORIGINAL) --- */
.grid-layout {
    display: grid;
    gap: 15px;
    width: 100%;
}

#section-tipo .grid-layout {
    grid-template-columns: repeat(4, 1fr);
}

#section-marca .grid-layout,
#section-serie .grid-layout,
#section-modelo .grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* --- BOTONES (TAMAÑO NORMAL) --- */
.btn-opt {
    background: var(--brand-gray-bg);
    border: 2px solid var(--brand-border);
    padding: 20px 10px;
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem; /* Tamaño equilibrado */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    transition: all 0.2s ease;
}

.btn-opt.selected {
    background: var(--brand-black);
    color: white;
    border-color: var(--brand-black);
}

/* --- SERVICIOS (PUNTO 5) --- */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.service-card {
    background: white;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    cursor: pointer;
    overflow: hidden;
}

.s-main {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s-name { font-weight: 700; font-size: 1.2rem; }
.s-price { font-weight: 800; color: var(--brand-green); font-size: 1.3rem; }

.service-card.selected {
    border: 2px solid var(--brand-green);
    background: rgba(27, 130, 60, 0.05);
}

/* --- CALIDADES (DRAWER) --- */
.service-card.has-qualities.selected { grid-column: 1 / -1; }
.quality-drawer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.service-card.selected.has-qualities .quality-drawer { max-height: 400px; padding: 0 25px 25px 25px; }

.quality-switch { display: flex; gap: 10px; margin-top: 15px; }
.q-opt {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--brand-border);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    background: white;
}
.q-opt.active { background: var(--brand-black); color: white; }

/* --- TOTAL --- */
.total-box {
    background: var(--brand-black);
    color: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    margin-top: 40px;
}
.total-amount { font-size: 3.5rem; font-weight: 800; color: var(--brand-green); }

/* RESPONSIVE */
@media (max-width: 800px) {
    #section-tipo .grid-layout { grid-template-columns: repeat(2, 1fr); }
}