/* Fondo Valdivia para vehiculos.html */
.fondo-valdivia-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('img/Fondo Valdivia.jpg') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.85;
    pointer-events: none;
}

/* Barra de contacto */
.barra-contacto {
    width: 100vw;
    background: #000 !important; /* negro sólido */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 24px 0;
    margin: 0;
    z-index: 9999; /* sube el z-index para que esté por encima de todo */
    opacity: 1 !important; /* asegura que no sea transparente */
    box-shadow: none !important;
    position: relative; /* asegura que no quede detrás de elementos absolutos */
}

.contacto-correo, .contacto-whatsapp {
	display: inline-block;
}

.fondo-valdivia-container {
	position: relative;
	width: 100vw;
	margin: 0;
	padding: 0;
}

.fondo-valdivia-container .img-full {
	width: 100vw;
	height: 700px;
	display: block;
}

.fondo-valdivia-container .botones-contacto {
	position: absolute;
	top: 260px;
	left: 152px; /* antes: 112px */
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Botones de contacto alineados a la izquierda */
.botones-contacto {
	display: flex;
	gap: 64px;
	margin: 24px 0 24px 32px;
}
.btn-contacto {
	padding: 28px 80px;
	border: none;
	border-radius: 16px;
	font-size: 2rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: #25D366;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
	transition: background 0.2s;
	display: inline-block;
}
.btn-contacto.correo {
	background: #D93025; /* Rojo Gmail */
	text-align: center;
}
.btn-contacto.whatsapp {
    position: relative;
}
.btn-contacto.whatsapp .numero-whatsapp {
    display: none;
}

.img-camiones {
	display: block;
	margin: 0;
	width: 99vw; /* antes: 98vw */
	height: auto;
	max-width: 99vw; /* antes: 98vw */
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}
section#vehiculos {
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}
/* Imagen de camiones de lado a lado */
.img-full {
	width: 100vw;
	height: 700px;
	display: block;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	object-fit: cover;
}
/* Frase en la barra negra */
.frase {
	display: block;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 500;
	color: #fff;
	background: #000;
	padding: 8px 16px;
	margin: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-bottom: 2px solid #FFD700; /* Línea decorativa */
}
/* Barra de navegación negra */
.navbar {
	background: #000;
	color: #fff;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	z-index: 10;
	position: relative;
	height: 80px; /* disminuido */
}
.navbar-content {
	display: flex;
	align-items: center;
	padding: 0 32px;
	height: 80px; /* disminuido */
	justify-content: space-between;
}
.logo {
    height: 56px;
    margin-right: 32px;
    margin-left: 120px; /* antes: 80px */
}
nav ul {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}
nav a {
	color: #fff;
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	transition: color 0.2s;
}
nav a:hover {
	color: #FFD700;
}

body {
	font-family: 'Segoe UI', Arial, sans-serif;
	margin: 0;
	padding: 0;
	background: #fff; /* Fondo blanco sólido para todo el contenido */
	color: #222;
	position: relative;
	overflow-x: hidden; /* Evitar barra de desplazamiento horizontal */
}

header {
	background: #FFD700;
	padding: 32px 0 16px 0;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	z-index: 1;
}

h1 {
	margin: 0;
	font-size: 2.5rem;
	letter-spacing: 2px;
}

main {
	background: #000; /* Negro sólido */
	box-shadow: 0 12px 48px rgba(0,0,0,0.22);
	border-radius: 32px;
	padding: 48px 32px;
	margin: 32px auto;
	max-width: 800px; /* Antes: 1100px */
	color: #fff;
	position: relative;
	z-index: 1;
}
/* Secciones de vehículos diferenciadas */
.vehiculo-seccion {
	background: #fff; /* Blanco sólido */
	border-radius: 18px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.10);
	margin-bottom: 32px;
	padding: 32px 24px;
	color: #222; /* Texto oscuro para mejor contraste */
	opacity: 1; /* Asegura que no haya transparencia */
}
.vehiculo-seccion h2 {
    color: #FFD700; /* dorado */
    font-size: 2rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18); /* igual que MBVito.html, sombra más notoria */
    letter-spacing: 1px; /* igual que MBVito.html */
    font-weight: 700;    /* igual que MBVito.html */
}
.vehiculo-galeria {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: flex-start;
}
.vehiculo-flex {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 700px;
	margin: 0 auto 24px auto;
}
.vehiculo-img {
	display: block;
	width: 320px;
	max-width: 320px;
	margin: 0;
	border-radius: 16px;
}
.texto-vehiculo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 48px;
	color: #222;
	font-size: 1.3rem;
	font-weight: 500;
	min-width: 220px;
}
.vehiculo-btn {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	border-radius: 16px;
	transition: box-shadow 0.2s;
}
.vehiculo-btn:focus,
.vehiculo-btn:hover {
	box-shadow: 0 0 0 4px #FFD70044;
}

/* Servicios sobre la imagen Fondo Valdivia */
.servicios-dentro-fondo {
    position: absolute;
    top: 45%;
    left: 65%; /* Más a la derecha */
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 3;
    align-items: center;
}

.servicio-item {
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 600;
    padding: 28px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    letter-spacing: 1px;
    min-width: 260px;
    transition: background 0.3s, color 0.3s;
}

/* Elimina el cambio de color al pasar el cursor */
/*.servicio-item:hover {
    background: #FFD700;
    color: #000;
}*/

/* Responsive para pantallas pequeñas */
@media (max-width: 900px) {
    .servicios-dentro-fondo {
        position: static;
        transform: none;
        right: 0;
        margin: 24px auto 0 auto;
        align-items: center;
    }
    .servicio-item {
        min-width: 160px;
        font-size: 1rem;
        padding: 10px 18px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
        background: #fff;
    }

    .navbar {
        height: auto;
        min-height: 64px;
        padding: 0;
    }
    .navbar-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0 0 0;
        height: auto;
    }
    .logo {
        height: 38px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 6px;
        display: block;
    }
    .frase {
        font-size: 0.95rem;
        margin: 6px 0 0 0;
        padding: 6px 8px;
        line-height: 1.3;
        background: #000;
        border-bottom: 2px solid #FFD700;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        color: #fff;
        text-align: center;
        width: 100vw;
        position: static;
    }
    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    nav a {
        font-size: 0.95rem;
        padding: 6px 8px;
        border-radius: 5px;
        text-align: center;
        color: #fff;
        text-decoration: none;
        background: transparent;
        border: none;
    }
    nav a:hover {
        background: #FFD700;
        color: #000;
    }

    .img-camiones {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto;
        margin: 0 0 0 0;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .fondo-valdivia-container {
        margin-top: 0;
        padding: 0;
        position: relative;
        width: 100vw;
    }
    .img-full {
        width: 100vw;
        height: 180px;
        object-fit: cover;
        margin: 0 auto;
        display: block;
        position: relative;
        border-radius: 0;
        box-shadow: none;
    }

    .servicios-dentro-fondo {
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 94vw;
        max-width: 420px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        z-index: 2;
        margin: 0;
        pointer-events: none;
    }
    .botones-contacto-recuadros {
        margin-top: 0;
        margin-bottom: 0;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 0;
        right: 0;
        transform: none;
        z-index: 2;
        /* Centrado debajo de los servicios */
        top: calc(16px + 6px + 5 * 32px + 5 * 7px - 15px); /* sube los botones 30px más arriba */
        left: -14vw;
        right: auto;
        transform: none;
        justify-content: flex-start;
        align-items: center;
        margin-left: 0;
        margin-right: auto;
    }
    .servicio-item {
        min-width: 80px;
        font-size: 1.15rem;
        padding: 8px 6px;
        border-radius: 20px;
        margin: 0;
        text-align: center;
        background: rgba(0,0,0,0.82);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        pointer-events: auto;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .botones-contacto {
        flex-direction: column;
        gap: 8px;
        margin: 0 auto;
        align-items: center;
        width: auto;
    }
    .btn-contacto {
        font-size: 1.30rem;
        padding: 17px 0;
        width: 65vw;
        max-width: 180px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        text-align: center;
    }

    .barra-contacto {
        flex-direction: column;
        gap: 4px;
        font-size: 1rem;
        padding: 10px 0;
        width: 100vw;
        background: #000 !important;
        color: #fff;
        margin: 0;
        z-index: 9999;
        opacity: 1 !important;
        box-shadow: none !important;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contacto-correo, .contacto-whatsapp {
        display: block;
        text-align: center;
        font-size: 0.95rem;
        margin: 2px 0;
    }

    main {
        background: #000;
        box-shadow: 0 12px 48px rgba(0,0,0,0.22);
        border-radius: 24px;
        padding: 24px 8px;
        margin: 24px auto;
        max-width: 98vw;
        color: #fff;
        position: relative;
        z-index: 1;
    }
    .vehiculo-seccion {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
        margin-bottom: 18px;
        padding: 18px 8px;
        color: #222;
        opacity: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .vehiculo-seccion h2 {
        color: #FFD700;
        font-size: 1.2rem;
        margin-bottom: 10px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.18);
        letter-spacing: 1px;
        font-weight: 700;
        text-align: center;
    }
    .vehiculo-flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 98vw;
        margin: 0 auto 12px auto;
        width: 100%;
    }
    .vehiculo-img {
        width: 90vw;
        max-width: 260px;
        margin: 0 0 8px 0;
        border-radius: 12px;
        display: block;
    }
    .texto-vehiculo {
        margin-left: 0;
        color: #222;
        font-size: 1rem;
        font-weight: 500;
        min-width: 120px;
        text-align: center;
        margin-bottom: 8px;
        width: 100%;
    }
    .vehiculo-btn {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        border-radius: 12px;
        transition: box-shadow 0.2s;
        width: 100%;
    }
    .vehiculo-btn:focus,
    .vehiculo-btn:hover {
        box-shadow: 0 0 0 4px #FFD70044;
    }

    .botones-contacto-recuadros {
        left: -14vw;
        right: auto;
        transform: none;
        justify-content: flex-start;
        align-items: center;
        margin-left: 0;
        margin-right: auto;
    }

        .vehiculo-img[src*="Hyundai tucson"] {
            margin-left: 12vw;
        }
		.vehiculo-img[src*="MB"] {
            margin-left: 13vw;
        }
		.vehiculo-img[src*="MB FENIX"] {
            margin-left: 30px;
        }
		.vehiculo-img[src*="MB SPRINTER"] {
            margin-left: 13vw;
        }
		.vehiculo-img[src*="MB VITO"] {
            margin-left: 10vw;
        }
    }