<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ubicación | Landing Profesional</title>

<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">

<style>
    body {
        font-family: "Poppins", sans-serif;
        margin: 0;
        background: #f0f2f5;
        color: #333;
    }

    /* Hero */
    .hero {
        background: linear-gradient(135deg, #1d3557, #457b9d);
        color: white;
        padding: 60px 20px;
        text-align: center;
    }
    .hero h1 {
        font-size: 36px;
        font-weight: 600;
        margin-bottom: 10px;
    }
    .hero p {
        font-size: 18px;
        opacity: 0.8;
    }

    /* CARD */
    .container {
        max-width: 900px;
        margin: 40px auto;
        padding: 20px;
    }

    .card {
        background: white;
        padding: 25px;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        animation: fadeIn 0.8s ease;
    }

    /* Temporizador */
    #timer {
        font-size: 45px;
        text-align: center;
        font-weight: 600;
        color: #e63946;
        letter-spacing: 2px;
    }

    /* Mapa */
    .map-container {
        width: 100%;
        height: 400px;
        border-radius: 15px;
        overflow: hidden;
    }
    iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* Botón flotante WhatsApp */
    .whatsapp {
        position: fixed;
        bottom: 25px;
        right: 25px;
        background: #25D366;
        color: white;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none;
        font-size: 28px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: transform 0.2s;
    }
    .whatsapp:hover {
        transform: scale(1.1);
    }

    /* Animación */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

</style>

</head>
<body>

<!-- HERO -->
<section class="hero">
    <h1>Bienvenida</h1>
    <p>BLACK MOON</p>
</section>

<div class="container">

    <!-- Temporizador -->
    <div class="card">
        <h2 style="text-align:center; margin-bottom:5px;">Tiempo en la página</h2>
        <div id="timer">00:00:00</div>
    </div>

    <!-- Mapa -->
    <div class="card">
        <h2 style="text-align:center;">Nuestra Ubicación</h2>
        <div class="map-container">
           <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3733.5251038521374!2d-103.29082752769563!3d20.648205200746194!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8428b35b787706bd%3A0xdb9f9e9915dda5d6!2sBlack%20Moon%20Coffe%20%26%20Tea!5e0!3m2!1ses!2smx!4v1764999030858!5m2!1ses!2smx" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
        </div>
    </div>

</div>

<!-- Botón WhatsApp -->
<a class="whatsapp" href="https://wa.me/5213333333333" target="_blank">💬</a>

<script>
    let seconds = 0;

    function formatTime(sec){
        let h = Math.floor(sec / 3600);
        let m = Math.floor((sec % 3600) / 60);
        let s = sec % 60;

        return (
            String(h).padStart(2,'0') + ":" +
            String(m).padStart(2,'0') + ":" +
            String(s).padStart(2,'0')
        );
    }

    function startTimer(){
        setInterval(() => {
            seconds++;
            document.getElementById("timer").textContent = formatTime(seconds);
        }, 1000);
    }

    window.onload = startTimer;
</script>

</body>
</html>

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *