/*
    style.css
    Theme: Marketing y Servicio al Cliente para Talleres de Automóviles
    Design System: Neumorphism & Hyperrealistic Textures
    Color Scheme: Analogous
    Animation Style: Non-linear movements
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
    /* Analogous Color Scheme (Blue Base) */
    --background-color: #E0E5EC;
    --text-color-dark: #374151;
    --text-color-light: #FFFFFF;
    --text-color-subtle: #6B7280;
    --primary-color: #007BFF;
    --primary-color-dark: #0056b3;
    --accent-color: #08a6c9;

    /* Neumorphism Shadows */
    --shadow-light: #FFFFFF;
    --shadow-dark: #A3B1C6;
    --neumorphic-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --neumorphic-shadow-hover: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);

    /* Typography */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    /* Transitions */
    --transition-speed: 0.4s;
    --transition-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Layout */
    --header-height: 80px;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color-dark);
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.3;
    color: #222222;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

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

.section {
    padding: 6rem 0;
}

.section-light {
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: #1a202c;
    font-weight: 900;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    color: var(--text-color-subtle);
}

/* ScrollReveal Initial State */
.reveal {
    visibility: hidden;
}

/* Parallax Background Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* ---------------------------------- */
/*        Reusable Components         */
/* ---------------------------------- */
/* Global Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) var(--transition-easing);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: var(--neumorphic-shadow);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-color-light);
    transform: translateY(-5px);
    box-shadow: var(--neumorphic-shadow-hover);
}

/* Global Card Styles */
.card {
    background: var(--background-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--neumorphic-shadow);
    transition: all var(--transition-speed) var(--transition-easing);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

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

.card .card-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .card-content {
    width: 100%;
}

/* ---------------------------------- */
/*        Header & Navigation         */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.burger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color-dark);
    transition: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*            Hero Section            */
/* ---------------------------------- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    color: var(--text-color-light);
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 1rem 0 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------- */
/*          Clientele Section         */
/* ---------------------------------- */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.client-logo-card {
    background: var(--background-color);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
    transition: all var(--transition-speed) var(--transition-easing);
}

.client-logo-card:hover {
    box-shadow: var(--neumorphic-shadow-hover);
    transform: scale(1.05);
}

.client-logo-card img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.client-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------------------------------- */
/*        Our Process Section         */
/* ---------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-content {
    padding: 1.5rem 2rem;
    background: var(--background-color);
    position: relative;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
}

.timeline-progress {
    position: absolute;
    top: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neumorphic-shadow);
}

.timeline-item:nth-child(odd) .timeline-progress {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-progress {
    left: -20px;
}

.progress-indicator {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ---------------------------------- */
/*          Accolades Section         */
/* ---------------------------------- */
.accolades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.accolade-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow);
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    background: #cdd4de;
    border-radius: 50px;
    margin: 1.5rem 0;
    box-shadow: var(--neumorphic-shadow-inset);
    overflow: hidden;
}

.progress-bar {
    height: 30px;
    line-height: 30px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
}

/* ---------------------------------- */
/*         Testimonials Section       */
/* ---------------------------------- */
.relative-z {
    position: relative;
    z-index: 2;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slider .card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Standard shadow for better readability on parallax bg */
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--background-color);
    box-shadow: var(--neumorphic-shadow-inset);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color-subtle);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--background-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--neumorphic-shadow);
    transition: all var(--transition-speed) var(--transition-easing);
    z-index: 10;
}

.slider-control:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.slider-control.prev { left: -25px; }
.slider-control.next { right: -25px; }


/* ---------------------------------- */
/*            Media Section           */
/* ---------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item .card-image {
    height: 250px;
}

/* ---------------------------------- */
/*      External Resources Section    */
/* ---------------------------------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-link-card {
    display: block;
    background: var(--background-color);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-dark);
    transition: all var(--transition-speed) var(--transition-easing);
}

.resource-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--neumorphic-shadow-hover);
    color: var(--primary-color);
}

/* ---------------------------------- */
/*        Sustainability Section      */
/* ---------------------------------- */
.sustainability-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
}

.sustainability-item img {
    margin: 0 auto 1.5rem auto;
}

/* ---------------------------------- */
/*           Contact Section          */
/* ---------------------------------- */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background-color: var(--background-color);
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color-dark);
    font-family: var(--font-family-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--primary-color);
}

.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color-subtle);
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -1.5rem;
    left: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.contact-form button {
    width: 100%;
}

/* ---------------------------------- */
/*              Footer                */
/* ---------------------------------- */
.footer {
    background-color: #2D3748;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--text-color-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: block;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*        Other Page Specific         */
/* ---------------------------------- */
/* Success page */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

/* Legal pages (Privacy, Terms) */
.legal-page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
}

.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*          Responsive Design         */
/* ---------------------------------- */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.25rem; }

    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(even) { padding-left: 70px; } /* Ensure even items have padding */
    .timeline-progress { left: 10px; }
    .timeline-item:nth-child(odd) .timeline-progress,
    .timeline-item:nth-child(even) .timeline-progress { left: 10px; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    h1, .hero-title { font-size: 2.5rem; }
    h2, .section-title { font-size: 2rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 3rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .slider-control.prev { left: 10px; }
    .slider-control.next { right: 10px; }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .contact-wrapper {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding-left: 0;
    }
}