/* Asegurar que el fondo gris se aplique correctamente */
html, body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: #b7aeae !important; /* Forzar el color */
    width: 100%;
    min-height: 100vh; /* Asegura que cubra toda la pantalla */
}


/* Sección Hero */
.hero {
    background: url('hero.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* Sección Servicios */
.services {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service img {
    width: 100%;
    border-radius: 10px;
}

.service h3 {
    font-size: 1.4rem;
    margin: 15px 0;
}

/* Sección ¿Por qué Elegirnos? */
.why-choose {
    text-align: center;
    padding: 60px 20px;
}

.why-choose h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefit i {
    font-size: 40px; /* Tamaño del icono */
    color: #004aad; /* Color azul corporativo */
    margin-bottom: 10px; /* Espacio debajo del icono */
}

/* Sección Hero (imagen de fondo específica) */
.hero {
    position: relative;
    width: 100%;
    height: 90vh; /* Ocupa casi toda la pantalla */
    background: url('perito avaluador avalúo.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Capa oscura para mejor legibilidad del texto */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* Sección Contacto */
.contact {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor del formulario más grande */
.contact-form-container {
    background: white;
    padding: 50px; /* Aumentar el padding para más espacio */
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px; /* Antes era 600px */
    width: 95%;
    text-align: center;
    margin: 0 auto;
    border: 3px solid rgb(224, 223, 229);
}

/* Inputs y Textarea más grandes */
.contact form input,
.contact form textarea {
    margin: 15px 0;
    padding: 18px; /* Antes era 14px */
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px; /* Un poco más redondeado */
    font-size: 1.1rem; /* Antes era 1rem */
}

/* Textarea más alto */
.contact form textarea {
    height: 150px; /* Antes era 120px */
    resize: none;
}

/* Botón más grande */
.contact form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 16px; /* Antes era 14px */
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 1.1rem;
    width: 100%; /* Para que ocupe todo el ancho */
}

.contact form button:hover {
    background: #0056b3;
}





/* Información de Contacto */
.contact-info {
    margin-top: 40px;
    text-align: center;
}

/* Pie de Página */
footer {
    background: #060606;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 30px;
    width: 100%;
}







/* Animación de "Salto Suave" en los Servicios */
.service {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service:hover {
    transform: translateY(-10px); /* Elevar 10px */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* Sombra más fuerte */
}

/* Animación de Rotación Suave en los Íconos */
.benefit i {
    transition: transform 0.3s ease-in-out;
}

.benefit:hover i {
    transform: rotate(10deg); /* Girar 10 grados */
}

/* Efecto de "Zoom In" en las Imágenes de los Servicios */
.service img {
    transition: transform 0.3s ease-in-out;
}

.service:hover img {
    transform: scale(1.1); /* Aumentar un 10% */
}

/* Efecto de Rebote en los Servicios */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.service:hover {
    animation: bounce 0.4s ease-in-out;
}




.logo-flotante {
    position: fixed;
    left: 10px;  /* Lo mantiene pegado al lado izquierdo */
    top: 10px;   /* Lo mantiene pegado a la parte superior */
    width: 120px; /* Tamaño más pequeño */
    height: auto;
    max-width: 120px; /* Limita el tamaño máximo */
    max-height: 120px;
    z-index: 1000; /* Se mantiene por encima del contenido */
    opacity: 0.9; /* Un poco transparente para no distraer */
    transition: transform 0.3s ease-in-out;
}

.logo-flotante:hover {
    transform: scale(1.1); /* Aumenta ligeramente al pasar el cursor */
    opacity: 1;
}



.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 24px;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex; /* Asegura que sea visible */
    align-items: center;
    justify-content: center;
}

.whatsapp-float i {
    font-size: 30px;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}




/* Estilo para el botón flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px; /* Distancia desde la parte inferior */
    right: 20px;  /* Distancia desde la parte derecha */
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 30px; /* Tamaño del icono */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 9999; /* Asegura que el botón esté por encima de otros elementos */
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* Color más oscuro al hacer hover */
    transform: scale(1.1); /* Efecto de agrandado al pasar el ratón */
}

/* Asegura que el icono de WhatsApp se vea correctamente */
.whatsapp-btn i {
    margin: 0;
}
