@import url('https://googleapis.com');
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Deja margen superior para que el menú fijo no tape las tarjetas */
}


:root {
    --font-titulo: 'Montserrat', Arial, sans-serif;
    --font-cuerpo: 'Lora', Arial, sans-serif;
    --color-primario: #101728;   /* Gris antracita / metal oscuro */
    --color-acento: #254cce;     /* Azul taller / automoción */
    --color-texto: #262626;
    --color-fondo: #f3f4f6;
    --blanco: #ffffff;
    --azul: #0e2ddd; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cuerpo);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, nav, .btn, label {
    font-family: var(--font-titulo);
}
/* --- PANTALLA DE BIENVENIDA (ESCRITORIO: PANTALLA COMPLETA / MÓVIL Y TABLET: IMAGEN COMPLETA) --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Se adapta al alto real descontando la barra del navegador móvil */
    background-color: #111827; /* Fondo oscuro elegante para los bordes en móvil/tablet */
    padding: 0;
    margin: 0;
    overflow: hidden;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#splash-screen.desvanecer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-marco {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* En ordenador (pantallas anchas) cubre todo el fondo con nitidez */
.splash-marco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* En tablet y móvil (hasta 1024px) muestra la imagen entera sin recortar nada */
@media (max-width: 1024px) {
    .splash-marco {
        padding: 1rem; /* Pequeño margen respirable alrededor en pantallas táctiles */
    }

    .splash-marco img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain; /* Muestra el 100% de la imagen sin recortar los laterales */
    }
}


/* --- HEADER CON IMAGEN DE FONDO --- */
.site-header {
    background: linear-gradient(rgba(10, 15, 25, 0.78), rgba(10, 15, 25, 0.78)), 
                url('../img/header-bg.jpg') center/cover no-repeat;
    background-color: var(--color-primario);
    color: var(--blanco);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- NAVBAR FIJA AL HACER SCROLL CON IMAGEN DE FONDO --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: linear-gradient(rgba(10, 15, 25, 0.78), rgba(10, 15, 25, 0.78)), 
                url('../img/navbar-bg.jpg') center/cover no-repeat;
    background-color: #101728;
    border-bottom: 3px solid var(--color-acento);
    position: sticky;      /* Mantiene el menú fijo arriba al bajar */
    top: 0;                /* Pegado al borde superior */
    z-index: 1000;         /* Siempre por encima de las tarjetas e imágenes */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


/* Nuevo contenedor para alinear imagen y texto a la izquierda */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Controla aquí la poca separación entre imagen y texto */
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Ajusta esta altura si quieres el logo más grande o más pequeño */
    width: auto;
    border-radius: 4px;
    object-fit: cover;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blanco);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.text-marca {
    color: var(--azul);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}


/* --- INVERSIÓN DE COLORES AL HACER HOVER --- */
.logo:hover {
    color: var(--azul);
}

.logo:hover .text-marca {
    color: var(--blanco);
}


.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-acento);
}

/* --- SUBMENÚ DE SERVICIOS --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--blanco);
    min-width: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    border-top: 3px solid var(--color-acento);
    border-radius: 0 0 4px 4px;
    list-style: none;
    z-index: 1000;
    padding: 0.4rem 0;
}

.dropdown-menu li a {
    color: var(--color-texto);
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s, padding-left 0.2s;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #fef2f2;
    color: var(--color-acento);
    padding-left: 1.5rem;
}

@media (min-width: 769px) {
    .nav-item:hover .dropdown-menu {
        display: block;
    }
}

.header-hero {
    text-align: center;
    padding: 3rem 5% 4rem;
    margin: auto;
}

.header-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.header-hero p {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
    color: #e5e7eb;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--blanco);
    cursor: pointer;
}

/* --- CONTENIDO PRINCIPAL --- */
main {
    flex: 1;
    width: 90%;
    max-width: 1140px;
    margin: 3rem auto;
}

.section-title {
    color: var(--color-primario);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-acento);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--blanco);
    padding: 1.8rem;
    border-radius: 6px;
    border-left: 4px solid var(--color-acento);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.card h3 {
    color: var(--color-primario);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--blanco);
    padding: 0.85rem 1.6rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 1.2rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #031f5c;
}
/* --- ICONO PNG DE 48x48 EN TÍTULO DE TARJETA --- */
.titulo-con-icono {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.card-servicio img.icono-titulo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-bottom: none;
    transform: none;
    flex-shrink: 0;
    margin: 0;
}




/* --- CONTACTO Y FORMULARIO --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--blanco);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.contact-form label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primario);
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: var(--font-cuerpo);
    font-size: 0.95rem;
}

.form-status {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}


/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.08);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}
/* --- TARJETAS DE SERVICIOS CON IMAGEN --- */
.card-servicio {
    padding: 0;               /* Quita el relleno exterior para que la foto toque los bordes */
    overflow: hidden;         /* Recorta las esquinas superiores de la foto */
    display: flex;
    flex-direction: column;
}

.card-servicio img {
    width: 100%;
    height: 200px;            /* Altura uniforme para todas las fotos */
    object-fit: cover;        /* Evita que la foto se aplaste o estire */
    display: block;
    border-bottom: 3px solid var(--color-acento);
    transition: transform 0.35s ease;
}

.card-servicio:hover img {
    transform: scale(1.04);   /* Efecto zoom suave al pasar el ratón */
}

.card-servicio-body {
    padding: 1.6rem;
    flex: 1;
}
.card-servicio-body a {
    color: var(--color-texto);
    text-decoration: none;
    display: inline-block;                /* Necesario para que funcione transform: scale */
    transition: color 0.3s ease, transform 0.3s ease;
}

.card-servicio-body a:hover {
    color: var(--color-acento);           /* Cambia al color azul-acento de tu taller */
    transform: scale(1.04);
}

.whatsapp-float svg {
        width: 30px;
        height: 30px;
    }


/* --- ARTÍCULO DE TEXTO DEL SERVICIO --- */
.servicio-article {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--blanco);
    padding: 2.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-acento);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.servicio-article h2 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.servicio-article p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.servicio-article ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.servicio-article li {
    margin-bottom: 0.5rem;
}





/* --- RESPONSIVE MÓVIL Y TABLET --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1f2937;
        padding: 1rem 5%;
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        background-color: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        border-top: none;
        padding-left: 0.5rem;
    }

    .dropdown-menu li a {
        color: #f3f4f6;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu.show-mobile {
        display: block;
    }

    .header-hero h1 {
        font-size: 1.7rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}

/* --- TABLA DE SERVICIOS / TARIFAS (RESPONSIVE) --- */
.tabla-contenedor {
    width: 100%;
    overflow-x: auto; /* Permite deslizar horizontalmente en móviles pequeños sin romper la web */
    margin: 1.5rem 0 2rem;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(161, 106, 55, 0.08);
}

.tabla-taller {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-family: 'Lora', Arial, sans-serif;
    text-align: left;
}

.tabla-taller thead {
    background-color: #111827;
    color: #ffffff;
    border-bottom: 3px solid #7a73e6;
}

.tabla-taller th {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.2rem;
}

.tabla-taller td {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid #265dca;
    color: #262626;
    font-size: 0.95rem;
}

/* Filas alternas (efecto cebra) */
.tabla-taller tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Resaltado al pasar el ratón por encima */
.tabla-taller tbody tr:hover {
    background-color: #7f86e2;
}

/* Última fila sin borde inferior extra */
.tabla-taller tbody tr:last-child td {
    border-bottom: none;
}


/* Ajuste compacto para pantallas de teléfono */
@media (max-width: 600px) {
    .tabla-taller th,
    .tabla-taller td {
        padding: 0.75rem 0.85rem;
        font-size: 0.88rem;
    }
}

/* --- FOOTER EN COLUMNAS --- */
.site-footer {
    background: linear-gradient(rgba(10, 15, 25, 0.78), rgba(10, 15, 25, 0.78)), 
                url('../img/navbar-bg.jpg') center/cover no-repeat;
    background-color: var(--color-primario);
    color: #d1d5db;
    padding: 3rem 5% 1.5rem;
    margin-top: auto;
    border-top: 4px solid var(--color-acento);
    text-align: left;
}

.footer-grid {
    max-width: 1140px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-acento);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.footer-col p {
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: var(--color-acento);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links li a {
    font-family: var(--font-titulo);
    font-size: 0.92rem;
    display: inline-block;
}

.footer-links li a:hover {
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #9ca3af;
}


/* Adaptación a móviles (apila las columnas verticalmente) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}
/* --- BANNER AVISO DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111827;
    color: #f3f4f6;
    padding: 1.2rem 5%;
    border-top: 3px solid var(--color-acento);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000; /* Por encima del botón flotante de WhatsApp hasta que se acepte/rechace */
    display: none; /* Oculto por defecto hasta que JS compruebe si ya se aceptó */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner.mostrar {
    display: flex;
}

.cookie-texto {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-texto a {
    color: var(--color-acento);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-botones {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-cookie {
    font-family: var(--font-titulo);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-cookie:hover {
    opacity: 0.9;
}

.btn-cookie-aceptar {
    background-color: var(--color-acento);
    color: #ffffff;
}

.btn-cookie-rechazar {
    background-color: #374151;
    color: #ffffff;
}
/* --- MAPA DE UBICACIÓN EN CONTACTO --- */
.mapa-seccion {
    margin-top: 2.5rem;
}

.mapa-contenedor {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-acento);
    background-color: #e5e7eb;
}

.mapa-contenedor iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .mapa-contenedor {
        height: 280px;
    }
}

/* --- CASILLA DE PRIVACIDAD RGPD EN FORMULARIO --- */
.privacidad-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    
}

.privacidad-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0px;
    padding: 0px;
    accent-color: var(--color-acento);
    cursor: pointer;
    flex-shrink: 0;
}

.privacidad-check label {
    font-family: var(--font-cuerpo);
    font-weight: 400;
    cursor: pointer;
}

.privacidad-check a {
    color: var(--color-acento);
    text-decoration: underline;
    font-weight: 600;
}

.rgpd-info-corta {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.45;
    background-color: #f9fafb;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #d1d5db;
}

