
<script>
document.getElementById('formWhatsApp').addEventListener('submit', function(e) {
    e.preventDefault();

    const telefono = "5213312345678"; // Cambia por tu número con código de país
    const nombre = document.getElementById('nombre').value;
    const mensaje = document.getElementById('mensaje').value;

    const texto = `Hola, soy ${nombre}. ${mensaje}`;
    const url = `https://wa.me/${telefono}?text=${encodeURIComponent(texto)}`;

    window.open(url, '_blank');
});
</script>

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;

	<!-- Ícono flotante de WhatsApp -->
<a href="https://wa.me/5213312745349" target="_blank" class="whatsapp-float">
    <i class="fab fa-whatsapp"></i>
</a>



.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
    line-height: 60px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
    background-color: #128C7E;
}


}

header {
    background: #0d6efd;
    color: white;
    text-align: center;
    padding: 1rem;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: #333;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h2 {
    margin: 10px 0;
}

.card:hover {
    transform: scale(1.05);
}


.form-contacto {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-contacto input, .form-contacto textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-contacto button {
    background: #0d6efd;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-contacto button:hover {
    background: #084298;
}


.btn-whatsapp {
    background-color: #25D366;
    border: none;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: #128C7E;
}


