@import url('fonts/fonts.css');

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

body._cuerpo_mecanico {
    font-family: 'Barlow', sans-serif;
    background-color: #111111; /* Deep garage black */
    color: #E0E0E0; /* Metallic silver */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    /* CSS Grid Visual Order Scrambling */
    grid-template-areas: 
        "navegacion_motor"
        "portada_motor"
        "servicios_motor"
        "nosotros_motor"
        "contacto_motor"
        "pie_motor";
    min-height: 100vh;
}

/* Fallback for subpages */
body._cuerpo_interno {
    font-family: 'Barlow', sans-serif;
    background-color: #111111;
    color: #E0E0E0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
        "navegacion_motor"
        "contenido_motor"
        "pie_motor";
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #E53935; /* Racing red */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

a {
    color: #E53935;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #EF5350;
}

/* Scrambled Grid Areas */
._formulario_taller { grid-area: contacto_motor; }
._pie_pagina_oscuro { grid-area: pie_motor; }
._lista_reparaciones { grid-area: servicios_motor; }
._imagen_principal { grid-area: portada_motor; }
._info_mecanica { grid-area: nosotros_motor; }
._menu_superior { grid-area: navegacion_motor; }
._area_texto { grid-area: contenido_motor; padding: 60px 10%; background-color: #1A1A1A; }

/* Header */
._menu_superior {
    background-color: #0A0A0A;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #E53935;
}

._menu_superior ._logo_v8 {
    font-size: 30px;
    font-weight: 900;
    color: #E0E0E0;
    font-family: 'Roboto Condensed', sans-serif;
}

._menu_superior ._logo_v8 span { color: #E53935; }

._menu_superior nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

._menu_superior nav ul li a {
    color: #9E9E9E;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Roboto Condensed', sans-serif;
}
._menu_superior nav ul li a:hover { color: #E0E0E0; }

/* Hero */
._imagen_principal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 5%;
    background: radial-gradient(circle at center, #212121 0%, #000000 100%);
    gap: 40px;
}

._texto_fuerza {
    flex: 1;
    max-width: 600px;
}

._texto_fuerza h1 {
    font-size: 60px;
    margin-bottom: 25px;
    line-height: 1.05;
    color: #FFFFFF;
}

._texto_fuerza p {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #BDBDBD;
}

._boton_acelerar {
    display: inline-block;
    padding: 16px 35px;
    background-color: #E53935;
    color: #FFFFFF !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

._boton_acelerar:hover {
    background-color: #D32F2F;
    transform: translateY(-2px);
}

._grafico_motor {
    flex: 1;
    text-align: center;
}

._grafico_motor img {
    max-width: 100%;
    border-radius: 8px;
    border: 4px solid #333333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

/* Services */
._lista_reparaciones {
    padding: 80px 5%;
    background-color: #1A1A1A;
    text-align: center;
    border-top: 1px solid #2A2A2A;
}

._lista_reparaciones h2 {
    font-size: 44px;
    margin-bottom: 60px;
}

._rejilla_servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

._bloque_servicio {
    background-color: #222222;
    padding: 40px 30px;
    border-radius: 6px;
    border-bottom: 4px solid #E53935;
    text-align: left;
}

._bloque_servicio h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #E0E0E0;
}

._bloque_servicio p { font-size: 16px; line-height: 1.7; color: #9E9E9E; }

/* About */
._info_mecanica {
    padding: 80px 5%;
    background-color: #111111;
    text-align: center;
}

._info_mecanica h2 { font-size: 44px; margin-bottom: 30px; color: #FFFFFF; }
._info_mecanica p { font-size: 19px; max-width: 800px; margin: 0 auto; line-height: 1.8; color: #BDBDBD; }

/* Contact */
._formulario_taller {
    padding: 80px 5%;
    background-color: #1A1A1A;
    text-align: center;
    border-top: 1px solid #2A2A2A;
}

._formulario_taller h2 { font-size: 44px; margin-bottom: 40px; }

._campos_datos {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

._campos_datos input, ._campos_datos textarea {
    width: 100%;
    padding: 16px;
    background-color: #111111;
    border: 1px solid #333333;
    color: #E0E0E0;
    font-family: 'Barlow', sans-serif;
    border-radius: 4px;
}

._campos_datos input:focus, ._campos_datos textarea:focus {
    outline: none;
    border-color: #E53935;
}

/* Footer */
._pie_pagina_oscuro {
    background-color: #050505;
    padding: 40px 5%;
    text-align: center;
    color: #616161;
}

._pie_pagina_oscuro p { margin-bottom: 15px; font-weight: 600; }
._pie_pagina_oscuro a { color: #757575; margin: 0 15px; font-size: 14px; text-transform: uppercase;}
._pie_pagina_oscuro a:hover { color: #E53935; }

/* Inner pages styles */
._area_texto h1 { font-size: 48px; margin-bottom: 30px; color: #FFFFFF;}
._area_texto h2 { font-size: 32px; margin: 40px 0 20px; }
._area_texto p, ._area_texto ul { font-size: 18px; line-height: 1.8; margin-bottom: 20px; color: #BDBDBD; }
._area_texto ul { padding-left: 20px; }

@media (max-width: 768px) {
    ._imagen_principal { flex-direction: column; text-align: center; padding: 40px 5%; }
    ._menu_superior { flex-direction: column; gap: 20px; }
}
