:root {
    --primary: #ffd700;
    --primary-dark: #d4af00;
    --secondary: #ffd700;
    --accent: #ffe14d;
    --dark: #0d0d0d;
    --dark-2: #1a1a1a;
    --light: #ffffff;
    --gray: #666;
    --light-gray: #f5f7fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.2);
    --gradient: linear-gradient(135deg, #ffd700, #ffe14d, #fff3a8);
    --gradient-text: linear-gradient(135deg, #ffd700, #ffe14d);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--dark);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--light);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-icon {
    color: var(--secondary);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));
}

.logo-highlight {
    color: var(--secondary);
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: var(--light);
    padding: 10rem 0 6rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(255,107,0,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,107,0,0.55);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
}

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

.btn-light {
    background: var(--light);
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-icon {
    font-size: 12rem;
    color: var(--accent);
    filter: drop-shadow(0 20px 40px rgba(255,225,77,0.4));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.car-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: float 5s ease-in-out infinite;
}

.badge-alternador {
    top: 10%;
    left: 0;
    color: var(--secondary);
    animation-delay: 0.5s;
}

.badge-arranque {
    bottom: 15%;
    right: 0;
    color: var(--accent);
    animation-delay: 1s;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    fill: var(--light);
}

/* ---------- Secciones comunes ---------- */
.features,
.products,
.contact {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features {
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--dark);
    box-shadow: 0 8px 20px rgba(255,107,0,0.3);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    box-shadow: 0 8px 20px rgba(255,225,77,0.3);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 20px rgba(212,175,0,0.3);
}

.feature-card h3,
.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p,
.product-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ---------- Products ---------- */
.products {
    background: linear-gradient(135deg, var(--light-gray), #fffaf0);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

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

.product-image {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    background: var(--gradient);
    color: var(--dark);
    transform: scale(1.1);
}

.product-card p {
    margin-bottom: 1.2rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 0.8rem;
}

/* ---------- CTA ---------- */
.cta {
    background: var(--gradient);
    padding: 4.5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.3rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--gray);
}

.contact-item .contact-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item .contact-link:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e5ee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: var(--light);
}

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

.form-group textarea {
    resize: vertical;
}

/* ---------- Captcha ---------- */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.captcha-box {
    background: var(--secondary);
    color: var(--dark);
    font-family: 'Courier New', 'Consolas', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.45rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    text-align: center;
    user-select: none;
    border: 2px solid var(--dark);
    min-width: 140px;
    text-shadow: none;
}

.captcha-box span {
    color: var(--dark);
    display: inline-block;
    letter-spacing: 0.45rem;
    padding-right: 0.45rem;
}

.captcha-refresh {
    width: 44px;
    height: 44px;
    background: var(--light);
    border: 2px solid #e0e5ee;
    border-radius: 10px;
    cursor: pointer;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.captcha-row input#captchaInput {
    flex: 1;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.captcha-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.captcha-error {
    border-color: #e53935 !important;
    background: #ffebee !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.captcha-shake {
    animation: shake 0.4s ease;
}

/* ---------- Éxito del formulario ---------- */
.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success .success-icon {
    font-size: 4rem;
    color: #00c853;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.map-container {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
    min-height: 400px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 3.5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.whatsapp-btn:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37,211,102,0.45);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .car-icon {
        font-size: 8rem;
    }

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

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

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: var(--dark);
        width: 70%;
        height: 100vh;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

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

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

@media (max-width: 400px) {
    .hero {
        padding: 7.5rem 0 3.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .cta h2 {
        font-size: 1.7rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .car-badge {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .product-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
