/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos Generales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #f4f4f4;
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

a:hover {
    color: #e64a19;
}

/* Barra Roja Superior */
.top-bar {
    background-color: #ff4c4c;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.1em;
}

/* Header */
header {
    background: url('https://www.lubricentrocerca.com/images/fondo.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 20px;
    margin-top: -5px; /* Para compensar la altura de la top-bar */
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

header .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

header .logo {
    text-align: center;
    margin-bottom: 20px;
}

header .logo img {
    width: 150px; /* Ajusta el tamaño según sea necesario */
    height: auto;
    display: inline-block;
}

header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3em;
    color: #ff5722;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #25D366;
    color: #fff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #1DA851;
    transform: scale(1.05);
}

/* Sección de Introducción */
.introduccion {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

.introduccion h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 20px;
}

.introduccion p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Sección Por Qué Elegirnos */
.por-que-elegirnos {
    padding: 60px 20px;
    background-color: #121212;
    text-align: center;
}

.por-que-elegirnos h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 40px;
}

.por-que-elegirnos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.razon {
    background-color: #1e1e1e;
    padding: 30px 20px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.9;
}

.razon:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.razon i {
    font-size: 3em;
    color: #ff5722;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.razon:hover i {
    color: #ff8a50;
}

.razon h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    color: #ff5722;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.razon:hover h3 {
    color: #ff8a50;
}

.razon p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Sección de Servicios */
.servicios {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

.servicios h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 20px;
}

.servicios p {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.servicio {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.servicio-img {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.servicio-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio-img img:hover {
    transform: scale(1.05);
}

.servicio-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    color: #ff5722;
    margin-top: 15px;
    margin-bottom: 10px;
}

.servicio-content p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Sección de Reseñas de Clientes */
.reseñas {
    padding: 60px 20px;
    background-color: #121212;
    text-align: center;
}

.reseñas h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 20px;
}

.reseñas p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.video-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: rgba(255, 255, 255, 0.8);
}

.play-button:hover {
    color: rgba(255, 255, 255, 1);
}

.video-wrapper {
    width: 100%;
}

.video-wrapper video {
    width: 100%;
    border-radius: 8px;
}

/* Widget de Reseñas de Google */
.google-reviews {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

.google-reviews h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 20px;
}

.reviews-widget {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-widget iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    height: 800px;
}

/* Sección del Mapa */
.mapa {
    padding: 60px 20px;
    background-color: #121212;
    text-align: center;
}

.mapa h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 20px;
}

.mapa p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.mapa-iframe {
    display: flex;
    justify-content: center;
}

.mapa-iframe iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border: 0;
    border-radius: 8px;
}

/* Sección de Cotización */
.cotizacion {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

.cotizacion h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #ff5722;
    margin-bottom: 20px;
}

.cotizacion p {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.cotizacion form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px; /* Espacio entre filas */
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1em; /* Aumento de tamaño de fuente */
}

.cotizacion select {
    font-family: 'Oswald', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 40px 10px 10px; /* Aumento de padding-right para espacio del icono */
    font-size: 1em; /* Aumento de tamaño de fuente */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5"><polygon points="0,0 10,0 5,5" fill="%23333"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center; /* Ajuste de posición del icono */
    background-size: 10px 5px;
    margin-bottom: 15px; /* Espacio debajo del select */
}

.cotizacion select:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

/* Espacio adicional antes del botón */
.cotizacion button {
    margin-top: 20px;
    background-color: #25D366;
    color: #fff;
    padding: 15px 30px; /* Aumento de padding para mejor clicabilidad */
    font-size: 1.1em; /* Aumento de tamaño de fuente */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.cotizacion button:hover {
    background-color: #1DA851;
    transform: scale(1.05);
}

/* Botón Flotante de Solicitud de Cotización Estilo WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 150px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Verde característico de WhatsApp */
    color: #fff;
    border-radius: 25px;
    text-align: center;
    font-size: 1em;
    box-shadow: 2px 2px 3px #999;
    z-index: 1006;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    transform: scale(1.05);
}

.whatsapp-float i {
    margin-right: 10px;
    font-size: 1.2em;
}

.whatsapp-float span {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #1e1e1e;
    color: #f4f4f4;
    padding: 20px;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.footer-nav ul li {
    display: inline;
    margin: 0 10px;
}

.footer-nav ul li a {
    color: #ff5722;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #e64a19;
}

/* Responsivo */
@media (max-width: 992px) {
    .por-que-elegirnos-grid, .servicios-grid {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        font-size: 2.5em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Ajustes para la Sección de Cotización */
    .cotizacion {
        width: 85%;
        max-width: 450px;
    }

    .cotizacion .form-row {
        flex-direction: column;
    }

    .cotizacion select {
        padding: 10px 40px 10px 10px; /* Mantener el padding-right */
    }
}

@media (max-width: 768px) {
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    header h1 {
        font-size: 2em;
    }

    .cotizacion {
        width: 95%;
        max-width: 400px;
    }

    /* Ajustes para el Botón Flotante */
    .whatsapp-float {
        width: 120px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float span {
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }

    .razon, .servicio {
        width: 100%;
        margin-bottom: 20px;
    }

    .cotizacion {
        width: 100%;
        max-width: none;
        padding: 30px 15px;
    }

    .cotizacion h2 {
        font-size: 1.8em;
    }

    .cotizacion p {
        font-size: 1em;
    }

    .cotizacion button {
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Ajustes para el Botón Flotante */
    .whatsapp-float {
        width: 120px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float span {
        font-size: 0.9em;
    }
}

/* Animaciones y Transiciones */
.razon:hover i,
.razon:hover h3 {
    color: #ff8a50;
}

.servicio:hover img {
    transform: scale(1.05);
}

.cta-button,
.cta-button-whatsapp {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover,
.cta-button-whatsapp:hover {
    transform: scale(1.05);
}

/* Scroll suave para anclas */
html {
    scroll-behavior: smooth;
}
.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}
