/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #070708;
    --bg-secondary: #0f0f12;
    --bg-tertiary: #17171c;
    --card-bg: #111115;
    
    --accent-red: #e60026;
    --accent-red-rgb: 230, 0, 38;
    --accent-red-hover: #bf001d;
    
    --accent-yellow: #ffcc00;
    --accent-yellow-rgb: 255, 204, 0;
    --accent-yellow-hover: #e0b300;
    
    --text-white: #ffffff;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(230, 0, 38, 0.2);
    
    /* Fonts */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
    --red-glow: 0 0 25px rgba(230, 0, 38, 0.25);
    --yellow-glow: 0 0 25px rgba(255, 204, 0, 0.2);
    --glass-bg: rgba(15, 15, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-light);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-gradient-red {
    background: linear-gradient(135deg, #ff4d6d, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-yellow {
    background: linear-gradient(135deg, #ffe066, var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-white { color: var(--text-white); }
.text-dark { color: var(--text-dark); }
.bg-red { background-color: var(--accent-red); }
.bg-yellow { background-color: var(--accent-yellow); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #b30018);
    color: var(--text-white);
    box-shadow: var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(230, 0, 38, 0.4);
    background: linear-gradient(135deg, #ff1a40, var(--accent-red));
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(230, 0, 38, 0.1);
    border: 1px solid rgba(230, 0, 38, 0.3);
    color: var(--text-white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-red);
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-tag.tag-yellow {
    color: var(--accent-yellow);
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bg-tertiary), #22222b);
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo-fallback i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

.logo-fallback span {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-white);
    margin-top: -2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-white);
}

.logo-subtitle {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-yellow);
}

/* Nav Menu */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, var(--accent-red), #b30018);
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 0, 38, 0.2);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 0, 38, 0.4);
    background: linear-gradient(135deg, #ff1a40, var(--accent-red));
}

.nav-btn::after {
    display: none;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 40%, rgba(230, 0, 38, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-info-grid {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.hero-info-item {
    display: flex;
    flex-direction: column;
}

.info-num {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-yellow);
    line-height: 1.2;
}

.info-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    background: radial-gradient(circle, rgba(230, 0, 38, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    filter: blur(15px);
}

.glow-1 {
    background-color: var(--accent-red);
    top: 20%;
    left: 20%;
    box-shadow: 0 0 100px 30px var(--accent-red);
}

.glow-2 {
    background-color: var(--accent-yellow);
    bottom: 25%;
    right: 20%;
    box-shadow: 0 0 100px 30px var(--accent-yellow);
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    border-color: rgba(230, 0, 38, 0.4);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(230, 0, 38, 0.15);
}

/* ==========================================================================
   CORE VALUES
   ========================================================================== */
.values-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.value-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.12);
}

.value-card:hover::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
}

.value-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.bg-red-glow {
    background-color: rgba(230, 0, 38, 0.08);
    border: 1px solid rgba(230, 0, 38, 0.25);
    color: var(--accent-red);
}

.bg-yellow-glow {
    background-color: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.25);
    color: var(--accent-yellow);
}

.value-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   BEFORE / AFTER SLIDER
   ========================================================================== */
.slider-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    user-select: none;
    overflow: hidden;
}

.slider-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    pointer-events: none;
}

.image-before {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.before-damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.scratch-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.image-after {
    position: absolute;
    width: 50%;
    height: 100%;
    z-index: 20;
    top: 0;
    left: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.image-after img {
    /* Critical to prevent the top image from stretching when its parent width decreases */
    width: 900px; /* Must equal the max-width of the slider-wrapper */
    max-width: none;
}

.label-image {
    position: absolute;
    bottom: 20px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 30;
    pointer-events: none;
}

.label-before {
    right: 20px;
    background-color: rgba(7, 7, 8, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.label-after {
    left: 20px;
    background-color: rgba(230, 0, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.slider-handle {
    position: absolute;
    height: 100%;
    width: 4px;
    background-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(230, 0, 38, 0.8);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    cursor: ew-resize;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.handle-line {
    width: 2px;
    height: calc(50% - 24px);
    background-color: var(--accent-red);
}

.handle-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-red);
    border: 3px solid var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), 0 0 15px rgba(230, 0, 38, 0.5);
    color: var(--text-white);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.slider-handle:hover .handle-button,
.slider-handle:active .handle-button {
    transform: scale(1.1);
    background-color: var(--accent-yellow);
    border-color: var(--bg-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 0, 38, 0.3);
    box-shadow: var(--shadow-lg), var(--red-glow);
}

.service-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-img-box img {
    transform: scale(1.1);
}

.service-info {
    padding: 2rem;
}

.service-info h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.service-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ==========================================================================
   EXPRESS CALCULATOR
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 204, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(230, 0, 38, 0.03) 0%, transparent 50%),
                var(--bg-primary);
}

.calc-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.calc-header {
    margin-bottom: 3rem;
}

.calc-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    position: relative;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.step-lbl {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin-bottom: 24px; /* Align line with circles vertically */
    z-index: 1;
    transition: var(--transition);
}

/* Steps States */
.step-indicator.active .step-num {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--bg-primary);
    box-shadow: var(--yellow-glow);
}

.step-indicator.active .step-lbl {
    color: var(--accent-yellow);
    font-weight: 600;
}

.step-indicator.completed .step-num {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: var(--red-glow);
}

.step-indicator.completed .step-lbl {
    color: var(--accent-red);
}

.step-line.completed {
    background-color: var(--accent-red);
}

/* Step content panels */
.calc-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.step-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
}

/* Options Grid */
.calc-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.calc-card-option {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.calc-card-option:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

.calc-card-option.active {
    border-color: var(--accent-red);
    background-color: rgba(230, 0, 38, 0.05);
    box-shadow: 0 0 20px rgba(230, 0, 38, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
}

.calc-card-option.active .card-icon {
    background-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(230, 0, 38, 0.3);
}

.calc-card-option h4 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.calc-card-option p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pieces Counter Styling */
.pieces-counter-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.pieces-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.counter-control {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 12px;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-counter {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-counter:hover {
    background-color: var(--accent-red);
}

.counter-value {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    width: 60px;
}

.pieces-visual-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.car-part-chip {
    padding: 0.5rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.car-part-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.car-part-chip.active {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Results Box */
.result-box {
    position: relative;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-ring-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.15) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.result-details {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.result-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.result-price {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
}

.result-price .currency {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-white);
}

.result-guarantee {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.result-time-card {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.time-icon {
    font-size: 2rem;
    color: var(--accent-red);
}

.time-info {
    display: flex;
    flex-direction: column;
}

.time-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.time-value {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Calculator Footer Navigation */
.calc-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ==========================================================================
   REPAIR TRACKER
   ========================================================================== */
.tracker-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tracker-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    min-height: 520px;
    box-shadow: var(--shadow-md);
}

.tracker-info-side {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tracker-info-side h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.2rem;
}

.tracker-info-side p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.tracker-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tracker-input-group {
    position: relative;
    display: flex;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.4rem;
    transition: var(--transition);
}

.tracker-input-group:focus-within {
    border-color: var(--accent-red);
    box-shadow: var(--red-glow);
}

.tracker-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tracker-input-group input {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 0.8rem 0.8rem 0.8rem 2.8rem;
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-body);
}

.tracker-input-group input:focus {
    outline: none;
}

.btn-track {
    padding: 0.6rem 1.4rem;
}

.tracker-help {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tracker-help strong {
    color: var(--accent-yellow);
    cursor: pointer;
}

/* Visual Side Timeline */
.tracker-visual-side {
    background-color: rgba(255, 255, 255, 0.01);
    border-left: 1px solid var(--border-color);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tracker-placeholder {
    text-align: center;
    max-width: 320px;
}

.placeholder-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.tracker-placeholder h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.tracker-placeholder p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.tracker-timeline-box {
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.car-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.car-summary h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--text-white);
}

.car-owner {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.car-owner strong {
    color: var(--text-light);
}

.tracker-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    background-color: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--accent-yellow);
}

/* Timeline Layout */
.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background-color: var(--bg-tertiary);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.8rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 5;
    transition: var(--transition);
}

.timeline-content h5 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

.timeline-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.time-stamp {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
}

/* Active and Completed States in Timeline */
.timeline-item.completed::before {
    content: '';
    position: absolute;
    left: -29px; /* Align with global line */
    top: 15px;
    height: 100%;
    width: 2px;
    background-color: var(--accent-red);
    z-index: 2;
}

.timeline-item.completed .timeline-dot {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(230, 0, 38, 0.4);
}

.timeline-item.completed .timeline-content h5 {
    color: var(--text-white);
}

.timeline-item.active .timeline-dot {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.timeline-item.active .timeline-content h5 {
    color: var(--accent-yellow);
    font-weight: 700;
}

.timeline-item.active .timeline-content p {
    color: var(--text-light);
}

.tracker-footer-notes {
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.tracker-current-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.2rem;
    position: relative;
}

.stars {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-white);
}

.client-info h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.client-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

/* ==========================================================================
   CONTACT & BOOKING FORM
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-side h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.contact-form-side p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 2.5rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-title);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: var(--red-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--bg-tertiary);
    color: var(--text-white);
}

.btn-submit-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--text-white);
    font-size: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    margin-top: 1rem;
}

.btn-submit-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #2ae771, #128C7E);
}

/* Contact Info Details Card */
.contact-info-side {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
}

.info-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230, 0, 38, 0.08) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    pointer-events: none;
}

.info-content h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.workshop-motto {
    font-size: 0.88rem;
    color: var(--accent-yellow);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-details-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
}

.detail-lbl {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-val {
    display: block;
    font-size: 1.05rem;
    color: var(--text-white);
    font-weight: 600;
    line-height: 1.4;
}

.contact-link:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* WhatsApp Help Badge inside Info Box */
.whatsapp-badge-action {
    background-color: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.whatsapp-badge-action i {
    font-size: 2rem;
    color: #25D366;
}

.whatsapp-badge-action h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.whatsapp-badge-action p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.link-action-wa {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 700;
    color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.link-action-wa:hover {
    color: var(--text-white);
}

.link-action-wa i {
    font-size: 0.75rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-area {
    margin-bottom: 1.5rem;
}

.footer-logo-fallback {
    display: flex;
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4,
.footer-services h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a,
.footer-services a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 2.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom strong {
    color: var(--text-light);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-img {
        transform: none !important;
        max-width: 80%;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .service-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .tracker-card {
        grid-template-columns: 1fr;
    }
    
    .tracker-visual-side {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header & Mobile Toggle */
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        transition: var(--transition-slow);
        padding: 3rem 1.5rem;
        z-index: 999;
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card:last-child {
        max-width: 100%;
    }
    
    .calc-box {
        padding: 2rem 1.5rem;
    }
    
    .calc-options-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-steps-indicator {
        max-width: 100%;
    }
    
    .step-lbl {
        display: none; /* Hide labels on mobile to save space */
    }
    
    .result-price {
        font-size: 2.8rem;
    }
    
    .tracker-info-side {
        padding: 2.5rem 1.5rem;
    }
    
    .tracker-visual-side {
        padding: 2.5rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-side {
        padding: 2rem 1.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .image-after img {
        width: 100vw; /* Comportamiento de estiramiento del deslizador en móviles */
    }
}

/* ==========================================================================
   NUEVOS ESTILOS DEL COTIZADOR DE 5 PASOS
   ========================================================================== */

/* Cuadrícula de 5 columnas para selector de autos */
.calc-grid-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1024px) {
    .calc-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .calc-grid-5 {
        grid-template-columns: 1fr !important;
    }
}

/* Pestañas de modalidad (Por pieza / General) */
.calc-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.calc-tab {
    padding: 0.8rem 1.6rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.calc-tab:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.calc-tab.active {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: var(--red-glow);
}

/* Desglose detallado de precios (Mano de Obra y Materiales) */
.price-breakdown {
    width: 100%;
    max-width: 550px;
    margin: 2.5rem auto 0 auto;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.breakdown-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.breakdown-item {
    margin-bottom: 1.5rem;
}

.breakdown-lbls {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.breakdown-lbls strong {
    color: var(--text-white);
}

.breakdown-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 50px;
    overflow: hidden;
}

.breakdown-bar {
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-labor {
    background: linear-gradient(90deg, var(--accent-red), #b30018);
    box-shadow: 0 0 8px rgba(230, 0, 38, 0.3);
}

.bar-materials {
    background: linear-gradient(90deg, var(--accent-yellow), #e0b300);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}
