:root {
            --primary: #D32F2F;
            --secondary: #1A1A1A;
            --accent: #FFA000;
            --light: #F5F5F5;
            --dark: #0D0D0D;
            --gradient: linear-gradient(135deg, #D32F2F 0%, #8B0000 100%);
        }

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

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--dark);
            color: var(--light);
            overflow-x: hidden;
        }

        /* Header & Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(13, 13, 13, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 2px solid var(--primary);
            animation: slideDown 0.6s ease-out;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2rem;
            letter-spacing: 2px;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 3s ease-in-out infinite;
        }

        @keyframes glow {
            0%, 100% { filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.5)); }
            50% { filter: drop-shadow(0 0 20px rgba(211, 47, 47, 0.8)); }
        }

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

        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 400;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s;
        }

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

        /* ============================================
           HERO SECTION — IMAGEN DE FONDO RESPONSIVA
           ============================================
           CAMBIOS REALIZADOS:
           1. Se añadió background-image con imagen de Unsplash
              (motor rotativo / taller mecánico de alto rendimiento).
           2. background-size: cover → ocupa todo el contenedor
              sin importar el tamaño de pantalla.
           3. background-position: center → el punto focal
              siempre queda centrado en cualquier viewport.
           4. background-attachment: fixed → efecto parallax
              sutil en desktop (desactivado en móvil para
              rendimiento).
           5. Se añade .hero-overlay con gradiente oscuro
              para garantizar legibilidad del texto sobre
              cualquier imagen (sin importar brillo original).
           6. Se conservan todas las animaciones y estilos
              previos del contenido (.hero-content, h1,
              .subtitle, .cta-button).
           ============================================ */

        /* Hero Section */
        .hero {
            height: 100vh;
            min-height: 600px;         /* fallback en pantallas muy pequeñas */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;

            /* ── IMAGEN DE FONDO ─────────────────────────────
               Fuente: Unsplash (licencia libre)
               Tema: motor de alto rendimiento / taller racing
               ─────────────────────────────────────────────── */
            background-image: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1920&q=85&auto=format&fit=crop');

            /* cover → la imagen llena el contenedor completo;
               nunca deja espacios en blanco aunque el
               aspect-ratio del viewport cambie              */
            background-size: cover;

            /* center → el punto focal de la imagen se mantiene
               centrado en cualquier tamaño de pantalla        */
            background-position: center center;

            /* no-repeat → evita que la imagen se repita si el
               contenedor fuera más grande que la imagen       */
            background-repeat: no-repeat;

            /* fixed → efecto parallax sutil en desktop;
               desactivado en móvil via @media (ver abajo)    */
            background-attachment: fixed;

            /* Fallback de color mientras carga la imagen      */
            background-color: #0D0D0D;
        }

        /* ── OVERLAY ─────────────────────────────────────────
           Capa semitransparente sobre la imagen de fondo.
           Garantiza que texto y botón sean legibles en
           cualquier imagen, sin importar su brillo o color.
           Usa un gradiente radial rojo-oscuro coherente
           con la paleta de la marca.
           ─────────────────────────────────────────────────── */
        .hero-overlay {
            position: absolute;
            inset: 0;                  /* top/right/bottom/left: 0 */
            /* Gradiente oscuro multicapa:
               - Capa 1: radial rojo desde el centro (identidad)
               - Capa 2: negro semiopaco uniforme (legibilidad) */
            background:
                radial-gradient(ellipse at center,
                    rgba(139, 0, 0, 0.35) 0%,
                    transparent 70%),
                linear-gradient(
                    to bottom,
                    rgba(13, 13, 13, 0.55) 0%,
                    rgba(13, 13, 13, 0.70) 60%,
                    rgba(13, 13, 13, 0.90) 100%
                );
            z-index: 1;
        }

        /* Rueda giratoria de fondo (efecto decorativo)        */
        .hero::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 65%);
            animation: rotate 25s linear infinite;
            z-index: 2;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }

        /* Partículas decorativas flotantes */
        .hero-particles {
            position: absolute;
            inset: 0;
            z-index: 2;
            pointer-events: none;
        }

        .hero-particles span {
            position: absolute;
            display: block;
            width: 3px;
            height: 3px;
            background: var(--primary);
            border-radius: 50%;
            opacity: 0;
            animation: floatParticle 6s ease-in-out infinite;
        }

        .hero-particles span:nth-child(1) { left: 15%; top: 30%; animation-delay: 0s;   animation-duration: 7s; }
        .hero-particles span:nth-child(2) { left: 80%; top: 20%; animation-delay: 1.5s; animation-duration: 5s; }
        .hero-particles span:nth-child(3) { left: 60%; top: 70%; animation-delay: 3s;   animation-duration: 8s; }
        .hero-particles span:nth-child(4) { left: 25%; top: 75%; animation-delay: 0.8s; animation-duration: 6s; }
        .hero-particles span:nth-child(5) { left: 90%; top: 55%; animation-delay: 2.2s; animation-duration: 7s; }
        .hero-particles span:nth-child(6) { left: 45%; top: 15%; animation-delay: 4s;   animation-duration: 5s; }

        @keyframes floatParticle {
            0%   { opacity: 0;   transform: translateY(0)    scale(1); }
            30%  { opacity: 0.8; }
            70%  { opacity: 0.6; }
            100% { opacity: 0;   transform: translateY(-40px) scale(1.5); }
        }

        /* Badge superior */
        .hero-badge {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: var(--accent);
            border: 1px solid rgba(255, 160, 0, 0.4);
            padding: 0.4rem 1.2rem;
            margin-bottom: 1.5rem;
            opacity: 0;
            animation: fadeIn 0.8s ease-out 0.2s forwards;
        }

        /* Divisor decorativo */
        .hero-divider {
            width: 60px;
            height: 2px;
            background: var(--gradient);
            margin: 1.5rem auto;
            opacity: 0;
            animation: fadeIn 0.8s ease-out 0.8s forwards;
        }

        /* Indicador de scroll */
        .scroll-indicator {
            position: absolute;
            bottom: 2.5rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            z-index: 10;
            opacity: 0;
            animation: fadeIn 1s ease-out 1.8s forwards;
        }

        .scroll-indicator span {
            font-size: 0.65rem;
            letter-spacing: 3px;
            color: rgba(245, 245, 245, 0.5);
        }

        .scroll-line {
            width: 1px;
            height: 40px;
            background: linear-gradient(to bottom, var(--primary), transparent);
            animation: scrollPulse 2s ease-in-out infinite;
        }

        @keyframes scrollPulse {
            0%, 100% { opacity: 0.3; transform: scaleY(1); }
            50%       { opacity: 1;   transform: scaleY(1.2); }
        }

        .hero-content {
            text-align: center;
            z-index: 10;                /* encima del overlay y del ::before */
            position: relative;
            animation: fadeInUp 1s ease-out;
            padding: 0 1.5rem;          /* padding lateral en móvil */
        }

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

        .hero h1 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3rem, 8vw, 7rem);
            letter-spacing: 5px;
            margin-bottom: 1rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            /* Sombra de texto para destacar sobre la foto */
            filter: drop-shadow(0 2px 20px rgba(211, 47, 47, 0.6));
        }

        .hero .subtitle {
            font-size: clamp(0.9rem, 2vw, 1.4rem);
            font-weight: 300;
            letter-spacing: 3px;
            margin-bottom: 0;
            opacity: 0;
            animation: fadeIn 1s ease-out 0.5s forwards;
            /* Sombra suave para legibilidad sobre la foto */
            text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 3rem;
            background: var(--gradient);
            color: white;
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            border-radius: 50px;
            transition: all 0.3s;
            box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4),
                        0 0 0 0 rgba(211, 47, 47, 0);
            opacity: 0;
            animation: fadeIn 1s ease-out 1.2s forwards;
            position: relative;
        }

        .cta-button::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50px;
            border: 1px solid rgba(211, 47, 47, 0.4);
            animation: pulseBorder 2.5s ease-in-out 2.5s infinite;
        }

        @keyframes pulseBorder {
            0%   { transform: scale(1);    opacity: 0.8; }
            100% { transform: scale(1.15); opacity: 0; }
        }

        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 50px rgba(211, 47, 47, 0.6);
        }

        /* ============================================
           RESPONSIVE — HERO IMAGE
           ============================================
           En móvil se desactiva background-attachment:fixed
           porque en iOS causa bugs visuales conocidos y
           degrada el rendimiento en scroll.
           ============================================ */
        @media (max-width: 768px) {
            .hero {
                /* Desactivar parallax en móvil/tablet        */
                background-attachment: scroll;
                /* Ajustar posición para enfocar parte superior
                   de la imagen en pantallas verticales        */
                background-position: center top;
                min-height: 100svh;    /* svh = small viewport height en móvil */
            }

            .hero-badge {
                font-size: 0.65rem;
                letter-spacing: 2px;
            }

            .scroll-indicator {
                display: none;         /* ocultar en móvil por espacio */
            }
        }

        @media (max-width: 480px) {
            .hero {
                background-position: 40% center; /* centrar en pantallas muy estrechas */
            }

            .hero-particles span:nth-child(n+4) {
                display: none;         /* reducir partículas en móvil pequeño */
            }
        }

        /* Section Styles */
        section {
            padding: 6rem 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            letter-spacing: 3px;
            margin-bottom: 3rem;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 100px;
            height: 4px;
            background: var(--gradient);
            margin: 1rem auto;
        }

        /* Services Section */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .service-card {
            background: rgba(26, 26, 26, 0.8);
            padding: 2.5rem;
            border: 2px solid transparent;
            transition: all 0.4s;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.4s;
        }

        .service-card:hover {
            border-color: var(--primary);
            transform: translateY(-10px);
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-card h3 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.8rem;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .service-card p {
            line-height: 1.7;
            color: #CCCCCC;
        }

        /* Rotary Info Section */
        .rotary-info {
            background: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 100%);
            padding: 5rem 5%;
            margin: 4rem 0;
        }

        .info-content {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .info-content h2 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 3rem;
            letter-spacing: 3px;
            margin-bottom: 2rem;
            color: var(--accent);
        }

        .info-content p {
            font-size: 1.1rem;
            line-height: 1.9;
            color: #CCCCCC;
            margin-bottom: 1.5rem;
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .project-card {
            background: #1A1A1A;
            overflow: hidden;
            transition: all 0.4s;
            border: 2px solid transparent;
        }

        .project-card:hover {
            border-color: var(--primary);
            transform: scale(1.02);
        }

        .project-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 3rem;
            color: rgba(211, 47, 47, 0.3);
        }

        .project-info {
            padding: 2rem;
        }

        .project-info h3 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.8rem;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .project-info p {
            color: #CCCCCC;
            line-height: 1.7;
        }

        /* FAQ Section */
        .faq-container {
            max-width: 900px;
            margin: 3rem auto;
        }

        .faq-item {
            background: #1A1A1A;
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--primary);
            overflow: hidden;
        }

        .faq-question {
            padding: 1.5rem 2rem;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .faq-question:hover {
            background: rgba(211, 47, 47, 0.1);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            padding: 0 2rem;
        }

        .faq-item.active .faq-answer {
            max-height: 500px;
            padding: 0 2rem 1.5rem 2rem;
        }

        .faq-answer p {
            color: #CCCCCC;
            line-height: 1.7;
        }

        .faq-icon {
            font-size: 1.5rem;
            transition: transform 0.3s;
        }

        .faq-item.active .faq-icon {
            transform: rotate(45deg);
        }

        /* Gallery Section */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .gallery-item {
            height: 300px;
            background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 4rem;
            color: rgba(211, 47, 47, 0.2);
            transition: all 0.4s;
            border: 2px solid transparent;
            cursor: pointer;
        }

        .gallery-item:hover {
            border-color: var(--primary);
            transform: scale(1.05);
        }

        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-top: 3rem;
        }

        .contact-form {
            background: #1A1A1A;
            padding: 3rem;
            border-top: 4px solid var(--primary);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            background: #0D0D0D;
            border: 2px solid #2A2A2A;
            color: var(--light);
            font-family: 'Outfit', sans-serif;
            transition: all 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }

        .submit-button {
            width: 100%;
            padding: 1rem;
            background: var(--gradient);
            border: none;
            color: white;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Outfit', sans-serif;
        }

        .submit-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .info-block {
            background: #1A1A1A;
            padding: 2rem;
            border-left: 4px solid var(--primary);
        }

        .info-block h3 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.5rem;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            color: var(--accent);
        }

        .info-block p {
            color: #CCCCCC;
            line-height: 1.7;
        }

        /* Footer */
        footer {
            background: #0D0D0D;
            text-align: center;
            padding: 3rem 5%;
            border-top: 2px solid var(--primary);
            margin-top: 4rem;
        }

        footer p {
            color: #888;
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

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

            .hero h1 {
                font-size: 3rem;
            }

            section {
                padding: 4rem 5%;
            }
        }

        /* Smooth Scroll */
        html {
            scroll-behavior: smooth;
        }