/* ============================================
   Car Clean Corbins — styles.css
   Design System & Layout
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0096FF;
    --primary-dark: #0077CC;
    --secondary: #121212;
    --accent: #FF5A00;
    --accent-dark: #e04f00;
    --light-bg: #F5F7FA;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--secondary);
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Utility ---------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- Scroll Animations ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   1. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo img {
    height: 42px;
    border-radius: 6px;
}

.navbar .menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar .menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s;
    position: relative;
}

.navbar.scrolled .menu a {
    color: var(--secondary);
}

.navbar .menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar .menu a:hover::after {
    width: 100%;
}

.navbar .btn-cta-nav {
    padding: 10px 22px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .btn-cta-nav:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--secondary);
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/coche-4.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   3. SERVICES
   ============================================ */
.services {
    padding: 100px 0;
    background: #fff;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card .card-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   4. RESULTS (BEFORE / AFTER)
   ============================================ */
.results {
    padding: 100px 0;
    background: var(--light-bg);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.comparison-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.comparison-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comparison-item:last-child .comparison-label {
    background: var(--primary);
}

/* ============================================
   5. BENEFITS
   ============================================ */
.benefits {
    padding: 100px 0;
    background: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.benefit-item {
    padding: 30px 20px;
}

.benefit-item .benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.benefit-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #666;
}

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

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

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 2.2rem;
    color: var(--primary);
    opacity: 0.25;
    margin-bottom: 0.8rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: #444;
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.testimonial-card .client-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.testimonial-card .client-location {
    font-size: 0.8rem;
    color: #999;
}

.stars {
    color: #f5b731;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ============================================
   7. GALLERY
   ============================================ */
.gallery {
    padding: 100px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   8. ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.about-text p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================
   9. CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-detail i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.contact-form .btn-submit:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaa;
}

.footer h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.footer-contact-info a {
    color: var(--primary);
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ------- Tablet (max 992px) ------- */
@media (max-width: 992px) {
    .grid-3-cols,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------- Mobile (max 768px) ------- */
@media (max-width: 768px) {
    .navbar .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .navbar .menu.active {
        right: 0;
    }

    .navbar .menu a {
        color: var(--secondary) !important;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .navbar .btn-cta-nav {
        display: none;
    }

    .grid-3-cols,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
