mail-pro / index.html
actimedia's picture
incluir tambien informacion de los planes de hosting de este link https://py.ax/dominio/
a5b2023 verified
Raw History Blame Contribute Delete
40.8 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mail Pro - Correo Corporativo Fácil</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#22C55E', // Verde principal
secondary: '#16A34A', // Verde oscuro
tertiary: '#86EFAC', // Verde claro
}
}
}
}
</script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}
.form-step {
display: none;
}
.form-step.active {
display: block;
animation: fadeIn 0.5s ease-in-out;
}
.border-red-500 {
border-color: #ef4444;
animation: pulse 0.5s ease-in-out;
}
@keyframes pulse {
0% { transform: translateX(0); }
25% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
100% { transform: translateX(0); }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.btn-primary {
background-color: #22C55E;
color: white;
}
.btn-secondary {
background-color: #16A34A;
color: white;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Hero Section -->
<div class="gradient-bg text-white">
<div class="container mx-auto px-4 py-16 md:py-24">
<nav class="flex justify-between items-center mb-16">
<div class="text-2xl font-bold" style="color:#1f2937">Paraguay 🇵🇾</div>
<!--
<div>
<a href="#" class="px-4 py-2 rounded-full bg-white text-primary font-medium hover:bg-gray-100 transition">Iniciar Sesión</a>
</div>
-->
</nav>
<div class="max-w-3xl mx-auto text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6 text-gray-800">Tu correo corporativo en minutos, <span class="text-green-600">sin complicaciones</span></h1>
<p class="text-xl mb-10 text-gray-600">Diseñado para personas sin conocimientos técnicos. Registra tu dominio y obtén tu correo profesional en simples pasos.</p>
<button id="startBtn" class="px-8 py-4 bg-green-600 text-white font-bold rounded-full text-lg hover:bg-green-700 transition shadow-lg">Comienza Ahora</button>
</div>
</div>
</div>
<!-- Steps Indicator -->
<div class="container mx-auto px-4 -mt-8">
<div class="bg-white rounded-lg shadow-lg p-1 max-w-4xl mx-auto">
<div class="flex justify-between">
<div class="step-indicator flex-1 text-center py-3" data-step="1">
<div class="step-number w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center mx-auto mb-2 font-bold">1</div>
<span class="text-sm font-medium text-gray-500">Elige tu dominio</span>
</div>
<div class="step-indicator flex-1 text-center py-3" data-step="2">
<div class="step-number w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center mx-auto mb-2 font-bold">2</div>
<span class="text-sm font-medium text-gray-500">Tu información</span>
</div>
<div class="step-indicator flex-1 text-center py-3" data-step="3">
<div class="step-number w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center mx-auto mb-2 font-bold">3</div>
<span class="text-sm font-medium text-gray-500">Confirmación</span>
</div>
</div>
</div>
</div>
<!-- Form Container -->
<div class="container mx-auto px-4 py-16 max-w-4xl">
<div class="bg-white rounded-lg shadow-xl overflow-hidden">
<!-- Step 1: Domain Selection -->
<div id="step1" class="form-step active p-8">
<h2 class="text-2xl font-bold mb-6 text-gray-800">Elige tu dominio perfecto</h2>
<p class="text-gray-600 mb-8">Este será la dirección de tu correo corporativo (ejemplo: tu@midominio.com)</p>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="domain-name">Nombre del dominio</label>
<div class="flex">
<input type="text" id="domain-name" class="flex-grow px-4 py-3 border border-gray-300 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-primary" placeholder="tunegocio">
<select id="domain-extension" class="px-4 py-3 border-t border-b border-r border-gray-300 rounded-r-lg bg-gray-50 focus:outline-none focus:ring-2 focus:ring-primary">
<option>.com.py</option>
<option>.com</option>
<option>.net</option>
<option>.org</option>
</select>
</div>
</div>
<div class="mb-8">
<button id="check-domain" class="px-6 py-3 btn-secondary rounded-lg hover:bg-red-700 transition">Verificar disponibilidad</button>
</div>
<div id="domain-result" class="hidden p-4 border border-gray-200 rounded-lg mb-8">
<div class="flex items-center">
<i data-feather="check-circle" class="text-green-500 mr-3"></i>
<div>
<h3 class="font-bold text-gray-800" id="domain-result-text"></h3>
<p class="text-sm text-gray-600">¡Perfecto! Este dominio está disponible.</p>
</div>
</div>
</div>
<div class="flex justify-end">
<button id="nextToStep2" class="px-6 py-3 btn-primary rounded-lg hover:bg-blue-700 transition disabled:opacity-50" disabled>Continuar</button>
</div>
</div>
<!-- Step 2: User Information -->
<div id="step2" class="form-step p-8">
<div class="bg-blue-50 border-l-4 border-blue-500 p-4 mb-6 rounded">
<div class="flex justify-between items-center">
<div>
<h3 class="font-bold text-blue-800">Dominio reservado. Expira en:</h3>
<p class="text-blue-600" id="selected-domain-display"></p>
</div>
<div class="bg-white px-3 py-1 rounded-full shadow-sm">
<span class="text-red-500 font-bold" id="reservation-timer">05:00</span>
</div>
</div>
</div>
<h2 class="text-2xl font-bold mb-4 text-gray-800">Información personal</h2>
<div class="mb-6">
<h4 class="font-medium text-gray-700 mb-3">Ejemplos de correos con tu dominio:</h4>
<div class="flex flex-wrap gap-2 mb-6">
<span class="px-3 py-1 bg-gray-100 text-gray-700 rounded-full text-sm">info@<span class="domain-example"></span></span>
<span class="px-3 py-1 bg-gray-100 text-gray-700 rounded-full text-sm">ventas@<span class="domain-example"></span></span>
<span class="px-3 py-1 bg-gray-100 text-gray-700 rounded-full text-sm">admin@<span class="domain-example"></span></span>
<span class="px-3 py-1 bg-gray-100 text-gray-700 rounded-full text-sm">contacto@<span class="domain-example"></span></span>
<span class="px-3 py-1 bg-gray-100 text-gray-700 rounded-full text-sm">soporte@<span class="domain-example"></span></span>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<label class="block text-gray-700 mb-2" for="full-name">Nombres completos</label>
<input type="text" id="full-name" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary transition">
</div>
<div>
<label class="block text-gray-700 mb-2" for="id-number">Cédula/RUC</label>
<input type="text" id="id-number" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary transition">
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="personal-email">Correo personal</label>
<input type="email" id="personal-email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary transition">
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<label class="block text-gray-700 mb-2" for="city">Ciudad</label>
<input type="text" id="city" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<div>
<label class="block text-gray-700 mb-2" for="phone">Teléfono</label>
<input type="tel" id="phone" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="address">Dirección</label>
<input type="text" id="address" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<div class="mb-8">
<label class="block text-gray-700 mb-2" for="industry">Rubro de tu negocio</label>
<select id="industry" class="w-full px-4 py-3 border border-gray-300 rounded-lg bg-white focus:outline-none focus:ring-2 focus:ring-primary">
<option value="" disabled selected>Selecciona tu rubro</option>
<option>Comercio</option>
<option>Servicios</option>
<option>Manufactura</option>
<option>Tecnología</option>
<option>Salud</option>
<option>Educación</option>
<option>Construcción</option>
<option>Agricultura</option>
<option>Turismo</option>
<option>Otro</option>
</select>
</div>
<div class="flex justify-between">
<button id="backToStep1" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">Atrás</button>
<button id="nextToStep3" class="px-6 py-3 btn-primary rounded-lg hover:bg-blue-700 transition">Continuar</button>
</div>
</div>
<!-- Step 3: Confirmation -->
<div id="step3" class="form-step p-8">
<div class="text-center mb-8">
<i data-feather="check-circle" class="w-16 h-16 text-green-500 mx-auto mb-4"></i>
<h2 class="text-2xl font-bold mb-2 text-gray-800">¡Estás a un paso de tu correo corporativo!</h2>
<p class="text-gray-600">Revisa que toda la información sea correcta</p>
</div>
<div class="bg-gray-50 rounded-lg p-6 mb-8">
<h3 class="font-bold text-lg mb-4 text-gray-800">Resumen de tu solicitud</h3>
<div class="space-y-4">
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Dominio solicitado:</span>
<span class="font-medium" id="confirm-domain">example.com</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Nombre completo:</span>
<span class="font-medium" id="confirm-name">-</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Cédula/RUC:</span>
<span class="font-medium" id="confirm-id">-</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Correo personal:</span>
<span class="font-medium" id="confirm-email">-</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Teléfono:</span>
<span class="font-medium" id="confirm-phone">-</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Ciudad:</span>
<span class="font-medium" id="confirm-city">-</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Dirección:</span>
<span class="font-medium" id="confirm-address">-</span>
</div>
<div class="flex justify-between border-b border-gray-200 pb-2">
<span class="text-gray-600">Rubro:</span>
<span class="font-medium" id="confirm-industry">-</span>
</div>
</div>
</div>
<div class="flex justify-between">
<button id="backToStep2" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">Atrás</button>
<button id="submit-form" class="px-6 py-3 btn-secondary rounded-lg hover:bg-red-700 transition">Enviar por WhatsApp</button>
</div>
</div>
</div>
</div>
<!-- Features Section -->
<div class="bg-gray-50 py-16">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">¿Por qué elegir MailMaster Pro?</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4">
<i data-feather="zap" class="text-green-800"></i>
</div>
<h3 class="text-xl font-bold mb-2 text-gray-800">Configuración en minutos</h3>
<p class="text-gray-600">Sin conocimientos técnicos necesarios. Obtén tu correo profesional en simples pasos.</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4">
<i data-feather="shield" class="text-green-800"></i>
</div>
<h3 class="text-xl font-bold mb-2 text-gray-800">Seguridad garantizada</h3>
<p class="text-gray-600">Protección avanzada contra spam y virus para mantener tu información segura.</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="w-12 h-12 bg-white border border-green-200 rounded-full flex items-center justify-center mb-4">
<i data-feather="headphones" class="text-green-800"></i>
</div>
<h3 class="text-xl font-bold mb-2 text-gray-800">Soporte 24/7</h3>
<p class="text-gray-600">Nuestro equipo está disponible para ayudarte cuando lo necesites.</p>
</div>
</div>
</div>
</div>
<!-- Hosting Plans Section -->
<div class="bg-gray-50 py-16">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Nuestros Planes de Hosting</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto">
<!-- Plan Básico -->
<div class="bg-white p-6 rounded-lg shadow-lg border-t-4 border-green-500 transform hover:scale-105 transition duration-300">
<h3 class="text-xl font-bold mb-4 text-center text-gray-800">Plan Básico</h3>
<div class="text-center mb-6">
<span class="text-4xl font-bold text-green-600">₲ 120.000</span>
<span class="text-gray-500">/anual</span>
</div>
<ul class="space-y-3 mb-8">
<li class="flex items-center"><i data-feather="check" class="text-green-500 mr-2"></i> 10 GB Almacenamiento SSD</li>
<li class="flex items-center"><i data-feather="check" class="text-green-500 mr-2"></i> Dominio .com.py incluido</li>
<li class="flex items-center"><i data-feather="check" class="text-green-500 mr-2"></i> 5 Cuentas de Correo</li>
<li class="flex items-center"><i data-feather="check" class="text-green-500 mr-2"></i> Certificado SSL Gratis</li>
<li class="flex items-center"><i data-feather="check" class="text-green-500 mr-2"></i> 1 Base de Datos MySQL</li>
</ul>
<button class="w-full py-3 bg-green-600 text-white font-medium rounded-lg hover:bg-green-700 transition">Seleccionar</button>
</div>
<!-- Plan Avanzado -->
<div class="bg-white p-6 rounded-lg shadow-lg border-t-4 border-blue-500 transform hover:scale-105 transition duration-300">
<h3 class="text-xl font-bold mb-4 text-center text-gray-800">Plan Avanzado</h3>
<div class="text-center mb-6">
<span class="text-4xl font-bold text-blue-600">₲ 180.000</span>
<span class="text-gray-500">/anual</span>
</div>
<ul class="space-y-3 mb-8">
<li class="flex items-center"><i data-feather="check" class="text-blue-500 mr-2"></i> 20 GB Almacenamiento SSD</li>
<li class="flex items-center"><i data-feather="check" class="text-blue-500 mr-2"></i> Dominio .com.py incluido</li>
<li class="flex items-center"><i data-feather="check" class="text-blue-500 mr-2"></i> 15 Cuentas de Correo</li>
<li class="flex items-center"><i data-feather="check" class="text-blue-500 mr-2"></i> Certificado SSL Gratis</li>
<li class="flex items-center"><i data-feather="check" class="text-blue-500 mr-2"></i> 5 Bases de Datos MySQL</li>
<li class="flex items-center"><i data-feather="check" class="text-blue-500 mr-2"></i> Copias de Seguridad</li>
</ul>
<button class="w-full py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 transition">Seleccionar</button>
</div>
<!-- Plan Premium -->
<div class="bg-white p-6 rounded-lg shadow-lg border-t-4 border-purple-500 transform hover:scale-105 transition duration-300">
<h3 class="text-xl font-bold mb-4 text-center text-gray-800">Plan Premium</h3>
<div class="text-center mb-6">
<span class="text-4xl font-bold text-purple-600">₲ 250.000</span>
<span class="text-gray-500">/anual</span>
</div>
<ul class="space-y-3 mb-8">
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> 50 GB Almacenamiento SSD</li>
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> Dominio .com.py incluido</li>
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> 30 Cuentas de Correo</li>
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> Certificado SSL Gratis</li>
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> Bases de Datos Ilimitadas</li>
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> Copias de Seguridad Diarias</li>
<li class="flex items-center"><i data-feather="check" class="text-purple-500 mr-2"></i> Soporte Prioritario 24/7</li>
</ul>
<button class="w-full py-3 bg-purple-600 text-white font-medium rounded-lg hover:bg-purple-700 transition">Seleccionar</button>
</div>
</div>
<div class="text-center mt-12">
<p class="text-gray-600 mb-4">¿Necesitas un plan personalizado?</p>
<a href="https://wa.me/595991344000" class="inline-flex items-center px-6 py-3 border border-green-600 text-green-600 font-medium rounded-lg hover:bg-green-600 hover:text-white transition">
<i data-feather="message-circle" class="mr-2"></i> Contactar a Ventas
</a>
</div>
</div>
</div>
<!-- FAQ Section -->
<div class="container mx-auto px-4 py-16 max-w-4xl">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Preguntas frecuentes</h2>
<div class="space-y-4">
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-question w-full px-6 py-4 text-left font-medium text-gray-800 hover:bg-gray-50 transition flex justify-between items-center">
<span>¿Necesito conocimientos técnicos para configurar mi correo?</span>
<i data-feather="chevron-down" class="transform transition-transform"></i>
</button>
<div class="faq-answer px-6 pb-4 hidden text-gray-600">
No, nuestro sistema está diseñado para que cualquier persona pueda configurar su correo corporativo sin necesidad de conocimientos técnicos. Solo sigue los simples pasos del formulario y listo.
</div>
</div>
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-question w-full px-6 py-4 text-left font-medium text-gray-800 hover:bg-gray-50 transition flex justify-between items-center">
<span>¿Cuánto tiempo toma activar mi correo corporativo?</span>
<i data-feather="chevron-down" class="transform transition-transform"></i>
</button>
<div class="faq-answer px-6 pb-4 hidden text-gray-600">
Normalmente el proceso de activación toma entre 5 a 15 minutos después de completar tu registro. Recibirás un correo electrónico con las instrucciones para acceder a tu nueva cuenta.
</div>
</div>
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-question w-full px-6 py-4 text-left font-medium text-gray-800 hover:bg-gray-50 transition flex justify-between items-center">
<span>¿Puedo cambiar mi dominio después?</span>
<i data-feather="chevron-down" class="transform transition-transform"></i>
</button>
<div class="faq-answer px-6 pb-4 hidden text-gray-600">
Sí, puedes adquirir dominios adicionales en cualquier momento y configurarlos para usarlos con tu cuenta de correo. Nuestro equipo de soporte puede ayudarte con este proceso.
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">MailMaster Pro</h3>
<p class="text-gray-400">La solución más fácil para obtener tu correo corporativo profesional.</p>
</div>
<div>
<h4 class="font-bold mb-4">Enlaces</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Inicio</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Precios</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Nosotros</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contacto</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Legal</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Términos</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Privacidad</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Cookies</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Contacto</h4>
<ul class="space-y-2">
<li class="flex items-center text-gray-400"><i data-feather="mail" class="mr-2"></i> info@actimedia.com.py</li>
<li class="flex items-center text-gray-400"><i data-feather="phone" class="mr-2"></i> +595 991 344000</li>
<li class="flex items-center text-gray-400"><i data-feather="map-pin" class="mr-2"></i> Avda. Gral. Santos 2592</li>
<li class="flex items-center text-gray-400"><i data-feather="map-pin" class="mr-2"></i> Asunción - Paraguay</li>
</ul>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2025 MailMaster Pro. Todos los derechos reservados.</p>
</div>
</div>
</footer>
<!-- WhatsApp Floating Button -->
<a href="https://wa.me/595991344000" class="fixed bottom-6 right-6 bg-green-600 text-white p-4 rounded-full shadow-lg hover:bg-green-700 transition z-50">
<i data-feather="message-circle"></i>
</a>
<script>
// Initialize feather icons
feather.replace();
// Form navigation logic
document.addEventListener('DOMContentLoaded', function() {
// Start button
document.getElementById('startBtn').addEventListener('click', function() {
document.getElementById('step1').classList.add('active');
document.querySelector('.step-indicator[data-step="1"] .step-number').classList.remove('bg-gray-200');
document.querySelector('.step-indicator[data-step="1"] .step-number').classList.add('bg-green-600', 'text-white');
document.querySelector('.step-indicator[data-step="1"] span').classList.remove('text-gray-500');
document.querySelector('.step-indicator[data-step="1"] span').classList.add('text-primary');
// Scroll to form
document.querySelector('.form-step.active').scrollIntoView({ behavior: 'smooth', block: 'start' });
});
// Domain check
document.getElementById('check-domain').addEventListener('click', function() {
const domainName = document.getElementById('domain-name').value;
const domainExt = document.getElementById('domain-extension').value;
if(domainName.trim() === '') {
alert('Por favor ingresa un nombre para tu dominio');
return;
}
// Simulate domain check
setTimeout(function() {
document.getElementById('domain-result').classList.remove('hidden');
document.getElementById('domain-result-text').textContent = domainName + domainExt + ' está disponible';
document.getElementById('nextToStep2').disabled = false;
// Auto proceed to step 2 if .com.py domain
if(domainExt === '.com.py') {
document.getElementById('nextToStep2').click();
}
}, 800);
});
// Next to step 2
document.getElementById('nextToStep2').addEventListener('click', function() {
const domainName = document.getElementById('domain-name').value;
const domainExt = document.getElementById('domain-extension').value;
const fullDomain = domainName + domainExt;
document.getElementById('step1').classList.remove('active');
document.getElementById('step2').classList.add('active');
// Update domain display
document.getElementById('selected-domain-display').textContent = fullDomain;
document.querySelectorAll('.domain-example').forEach(el => {
el.textContent = fullDomain;
});
// Start reservation timer
let minutes = 5;
let seconds = 0;
const timerInterval = setInterval(() => {
if(seconds === 0) {
if(minutes === 0) {
clearInterval(timerInterval);
return;
}
minutes--;
seconds = 59;
} else {
seconds--;
}
document.getElementById('reservation-timer').textContent =
`${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
if(minutes === 0 && seconds === 0) {
clearInterval(timerInterval);
alert('Tu reserva del dominio ha expirado. Por favor verifica nuevamente la disponibilidad.');
}
}, 1000);
// Update step indicator
document.querySelector('.step-indicator[data-step="2"] .step-number').classList.remove('bg-gray-200');
document.querySelector('.step-indicator[data-step="2"] .step-number').classList.add('bg-green-600', 'text-white');
document.querySelector('.step-indicator[data-step="2"] span').classList.remove('text-gray-500');
document.querySelector('.step-indicator[data-step="2"] span').classList.add('text-primary');
});
// Back to step 1
document.getElementById('backToStep1').addEventListener('click', function() {
document.getElementById('step2').classList.remove('active');
document.getElementById('step1').classList.add('active');
// Update step indicator
document.querySelector('.step-indicator[data-step="2"] .step-number').classList.add('bg-gray-200');
document.querySelector('.step-indicator[data-step="2"] .step-number').classList.remove('bg-green-600', 'text-white');
document.querySelector('.step-indicator[data-step="2"] span').classList.add('text-gray-500');
document.querySelector('.step-indicator[data-step="2"] span').classList.remove('text-primary');
});
// Next to step 3
document.getElementById('nextToStep3').addEventListener('click', function() {
// Validate form
const fullName = document.getElementById('full-name').value;
const idNumber = document.getElementById('id-number').value;
const personalEmail = document.getElementById('personal-email').value;
// Validate all required fields
const requiredFields = [
{ id: 'full-name', name: 'Nombres completos' },
{ id: 'id-number', name: 'Cédula/RUC' },
{ id: 'personal-email', name: 'Correo personal' }
];
let isValid = true;
let firstInvalidField = null;
for (const field of requiredFields) {
const element = document.getElementById(field.id);
if (element.value.trim() === '') {
if (!firstInvalidField) firstInvalidField = element;
isValid = false;
element.classList.add('border-red-500');
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
setTimeout(() => {
element.focus();
}, 500);
} else {
element.classList.remove('border-red-500');
}
}
if (!isValid) {
const errorMessage = firstInvalidField ?
`Por favor completa el campo: ${firstInvalidField.previousElementSibling.textContent.trim()}` :
'Por favor completa todos los campos requeridos';
alert(errorMessage);
return;
}
// Reset any error highlights
document.querySelectorAll('input').forEach(input => {
input.classList.remove('border-red-500');
});
// Scroll to top of step 3 before showing it
document.getElementById('step3').scrollIntoView({ behavior: 'smooth', block: 'start' });
// Update confirmation data
const domainName = document.getElementById('domain-name').value;
const domainExt = document.getElementById('domain-extension').value;
document.getElementById('confirm-domain').textContent = domainName + domainExt;
document.getElementById('confirm-phone').textContent = document.getElementById('phone').value;
document.getElementById('confirm-city').textContent = document.getElementById('city').value;
document.getElementById('confirm-address').textContent = document.getElementById('address').value;
document.getElementById('confirm-name').textContent = fullName;
document.getElementById('confirm-id').textContent = idNumber;
document.getElementById('confirm-email').textContent = personalEmail;
document.getElementById('confirm-industry').textContent = document.getElementById('industry').value;
document.getElementById('step2').classList.remove('active');
document.getElementById('step3').classList.add('active');
// Scroll to submit button
setTimeout(() => {
document.getElementById('submit-form').scrollIntoView({ behavior: 'smooth', block: 'center' });
}, 500);
// Update step indicator
document.querySelector('.step-indicator[data-step="3"] .step-number').classList.remove('bg-gray-200');
document.querySelector('.step-indicator[data-step="3"] .step-number').classList.add('bg-green-600', 'text-white');
document.querySelector('.step-indicator[data-step="3"] span').classList.remove('text-gray-500');
document.querySelector('.step-indicator[data-step="3"] span').classList.add('text-primary');
});
// Back to step 2
document.getElementById('backToStep2').addEventListener('click', function() {
document.getElementById('step3').classList.remove('active');
document.getElementById('step2').classList.add('active');
// Update step indicator
document.querySelector('.step-indicator[data-step="3"] .step-number').classList.add('bg-gray-200');
document.querySelector('.step-indicator[data-step="3"] .step-number').classList.remove('bg-green-600', 'text-white');
document.querySelector('.step-indicator[data-step="3"] span').classList.add('text-gray-500');
document.querySelector('.step-indicator[data-step="3"] span').classList.remove('text-primary');
});
// Submit form
document.getElementById('submit-form').addEventListener('click', function() {
const domain = document.getElementById('confirm-domain').textContent;
const name = document.getElementById('confirm-name').textContent;
const id = document.getElementById('confirm-id').textContent;
const email = document.getElementById('confirm-email').textContent;
const phone = document.getElementById('confirm-phone').textContent;
const city = document.getElementById('confirm-city').textContent;
const address = document.getElementById('confirm-address').textContent;
const industry = document.getElementById('confirm-industry').textContent;
const message = `Nueva solicitud de correo corporativo:\n\n` +
`*Dominio:* ${domain}\n` +
`*Nombre:* ${name}\n` +
`*Cédula/RUC:* ${id}\n` +
`*Correo:* ${email}\n` +
`*Teléfono:* ${phone}\n` +
`*Ciudad:* ${city}\n` +
`*Dirección:* ${address}\n` +
`*Rubro:* ${industry}`;
const whatsappUrl = `https://wa.me/595991344000?text=${encodeURIComponent(message)}`;
window.open(whatsappUrl, '_blank');
});
// Close modal
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('successModal').classList.add('hidden');
});
// FAQ toggle
document.querySelectorAll('.faq-question').forEach(question => {
question.addEventListener('click', function() {
const answer = this.nextElementSibling;
const icon = this.querySelector('i');
if(answer.classList.contains('hidden')) {
answer.classList.remove('hidden');
icon.classList.add('rotate-180');
} else {
answer.classList.add('hidden');
icon.classList.remove('rotate-180');
}
});
});
});
</script>
</body>
</html>