:root {
    --primary: #ff4500;       /* Rojo/Naranja de automoción */
    --whatsapp: #25d366;      /* Verde de Whatsapp oficial */
    --dark: #0f0f11;          /* Fondo oscuro premium */
    --card-bg: #18181c;       /* Gris oscuro para elementos */
    --light: #f9fafb;         /* Fondo claro */
    --text-dark: #1f2937;
    --text-light: #f3f4f6;
    --muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--light);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
header {
    background-color: rgba(15, 15, 17, 0.96);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.logo small {
    font-size: 11px;
    display: block;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--muted);
    margin-top: -4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.btn-nav-phone {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-nav-phone:hover {
    background-color: white;
    color: var(--dark);
}

/* HERO */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1617886322168-72b886573c3c?q=80&w=1200') no-repeat center center/cover;
    height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* --- PORTADA MEJORADA (SOLO FONDO Y EFECTOS) --- */
.hero {
    position: relative;
    /* Imagen de fondo de alta calidad: un coche deportivo en un taller moderno con luces */
    background: url('mi-portada.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Efecto Parallax: el fondo se mueve más lento al bajar */
    height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Capa de oscuridad degradada + Reflejos naranjas deportivos en las esquinas */
/* Capa de oscuridad más suave para que tu foto brille */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 40%), 
        linear-gradient(to right, rgba(15, 15, 17, 0.85) 0%, rgba(15, 15, 17, 0.2) 100%); 
    z-index: 1;
}


/* Nos aseguramos de que el contenido flote perfectamente sobre los nuevos efectos del fondo */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.badge {
    background-color: rgba(0, 0, 0, 0.6); /* Fondo más oscuro para que la letra resalte */
    color: #ffffff; /* Letra en blanco puro */
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700; /* Letra más gruesa */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--primary);
    display: inline-block;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra para que se separe de la foto */
}

.hero-content h2 {
    color: white;
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #d03900;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* ESTADÍSTICAS */
.stats {
    background-color: var(--dark);
    padding: 50px 0;
    border-bottom: 1px solid #222227;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    color: var(--primary);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* SECCIÓN EL TALLER (ABOUT) */
.about {
    padding: 100px 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: center;
}

.sub {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}

.about-text h2 {
    font-size: 38px;
    font-weight: 800;
    margin: 10px 0 20px;
    line-height: 1.2;
}

.about-text p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-list {
    list-style: none;
}

.about-list li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #1f2937;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* SERVICIOS */
.services {
    padding: 100px 0;
    background-color: #f3f4f6;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 800;
}

.section-title p {
    color: #6b7280;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 45px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* CONTACTO */
.contact {
    background-color: var(--dark);
    color: white;
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.info-details p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222227;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: #0f0f11;
    border: 1px solid #2d2d34;
    color: white;
    border-radius: 6px;
    font-size: 15px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #d03900;
}

/* FOOTER */
footer {
    background-color: #0a0a0c;
    color: #4b5563;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
    border-top: 1px solid #18181c;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
    }
    .hero-content h2 {
        font-size: 34px;
    }
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}/* Estilos para las Estrellas Profesionales */
.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rating-score {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.stars-container {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.star {
    color: #ffb400; /* El color dorado exacto de las reseñas de Google */
    font-size: 20px;
    line-height: 1;
    /* Un ligero brillo sutil para que parezcan premium */
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.4); 
}

.rating-text {
    font-size: 13px !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
}
/* --- ADAPTACIÓN PARA MÓVILES (PANTALLAS MENOS DE 768px) --- */
@media (max-width: 768px) {
    /* --- ADAPTACIÓN PARA MÓVILES (PANTALLAS MENOS DE 768px) --- */
@media (max-width: 768px) {
    
    /* AJUSTES PARA LA PORTADA (HERO) */
    .hero {
        padding: 60px 15px !important; /* Reduce el espacio arriba y abajo para que no ocupe tanto */
        background-attachment: scroll !important; /* Desactiva el efecto fijo que a veces rompe el móvil */
        background-size: cover !important; /* Fuerza a la imagen a cubrir la pantalla sin deformarse */
        background-position: center center !important; /* Centra la foto en la pantalla del móvil */
        text-align: center;
    }

    .hero-content {
        max-width: 100% !important;
    }

    /* Reducimos el tamaño del título de la portada para que no se corte */
    .hero h1 {
        font-size: 2.2rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    /* Reducimos el subtítulo */
    .hero p {
        font-size: 1.1rem !important;
        margin-bottom: 25px !important;
    }

    /* Si tienes botones en la portada, los ponemos uno debajo del otro */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%; /* Ocupan todo el ancho del móvil para que sea fácil pulsar con el dedo */
        max-width: 280px;
    }


    /* STYLES ANTERIORES (Mantenlos aquí dentro) */
    .contact-wrapper, 
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-info, 
    .contact-card {
        width: 100% !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    .container {
        padding: 0 15px;
    }
}
    
    /* Hace que los bloques que estaban uno al lado del otro se pongan uno abajo del otro */
    .contact-wrapper, 
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Ajusta los anchos para que ocupen todo el espacio del móvil */
    .contact-info, 
    .contact-card {
        width: 100% !important;
    }

    /* Achica un poco los títulos grandes para que no se corten */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    /* Reduce los márgenes laterales para aprovechar la pantalla pequeña */
    .container {
        padding: 0 15px;
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.map-container iframe {
    width: 100% !important;
    border: 0;
    border-radius: 8px; /* Esto le dará unos bordes redondeados muy finos */
}