/* =============================
   Estilos Globales Reveltech
   ============================= */

/* --- Navbar tipo "glass" --- */
.glass-nav {
    backdrop-filter: blur(12px);
    background: rgba(10, 25, 47, 0.55);
    border-bottom: 1px solid rgba(230, 241, 255, 0.08);
}

/* --- Overlay del Hero --- */
.hero-overlay {
    background: linear-gradient(180deg,
            rgba(10, 25, 47, 0.7) 0%,
            rgba(10, 25, 47, 0.85) 100%);
}

/* --- Overlay de fondo de sección Servicios --- */
.services-overlay {
    background: rgba(10, 25, 47, 0.90);
}

/* =============================
   Animaciones
   ============================= */

/* Fade in hacia arriba */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rebote lento del ícono */
.animate-bounce-slow {
    animation: bounce 2.5s infinite ease-in-out;
}

/* Aparición del mensaje de éxito */
.animate-pop-in {
    animation: popIn 0.35s ease-out forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Borde neon utilizado en tarjetas */
.border-neon {
    box-shadow: 0 0 12px rgba(0, 210, 190, 0.3);
}

/* =============================
   BACKGROUND IMAGES CENTRALIZADOS
   ============================= */
/* Hero principal */
.bg-hero-reveltech {
    background-image: url('../img/hero-dashboard.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo con parallax en sección Servicios */
.bg-servicios-reveltech {
    background-image: url('../img/hero-analisis-datos.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.revel-chat-widget {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.revel-chat-widget.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.glass-panel {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 210, 190, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 210, 190, 0.1) inset;
}

/* Botones internos del chat */
.chat-option-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chat-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 190, 0.1), transparent);
    transition: 0.5s;
}

.chat-option-btn:hover::before {
    left: 100%;
}

.chat-option-btn:hover {
    transform: translateX(5px);
    background-color: rgba(0, 210, 190, 0.05);
    border-color: #00d2be;
    box-shadow: 0 0 10px rgba(0, 210, 190, 0.1);
}

/* --- EL BOTÓN TECNOLÓGICO SUPER PRO --- */
/* --- EL BOTÓN TECNOLÓGICO SUPER PRO (CORREGIDO) --- */
.whatsapp-tech-container {
    /* POSICIONAMIENTO FIJO Y RESTRINGIDO */
    position: fixed; /* Fija el botón a la pantalla */
    bottom: 25px;    /* Distancia desde abajo */
    right: 25px;     /* Distancia desde la derecha */
    z-index: 9990;   /* Por encima de casi todo */
    
    /* TAMAÑO EXACTO (SOLUCIÓN AL GHOST CLICK) */
    width: 60px;
    height: 60px;
    
    /* Centrado y forma */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Hace que el contenedor sea redondo */
}

/* Ajuste para Celulares: Más pequeño y ajustado a la esquina */
@media (max-width: 768px) {
    .whatsapp-tech-container {
        width: 50px;
        height: 50px;
        bottom: 15px; /* Más pegado al borde en móvil */
        right: 15px;
    }
}

.whatsapp-tech-btn {
    position: relative;
    z-index: 2;
    /* Que ocupe todo el espacio del contenedor restringido */
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Asegura que el botón sea redondo */
    
    display: flex; /* Para centrar el ícono dentro del botón */
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #00d2be 0%, #009e8e 100%);
    box-shadow: 0 4px 15px rgba(0, 210, 190, 0.4); /* Sombra mejorada */
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer; /* Manito al pasar el mouse */
}

.whatsapp-tech-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.whatsapp-tech-btn:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

.whatsapp-tech-btn:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}

/* Ondas de Radar (Sonar) */
.tech-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #00d2be;
    opacity: 0;
    z-index: 1;
    animation: radar-ping 2.5s infinite;
}

.tech-pulse-ring:nth-child(2) {
    animation-delay: 0.6s;
}

.tech-pulse-ring:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes radar-ping {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
        border-width: 0px;
    }
}

/* Icono Shake sutil */
.tech-icon-shake {
    animation: slight-shake 5s infinite;
}

@keyframes slight-shake {

    0%,
    90% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(-10deg);
    }

    94% {
        transform: rotate(10deg);
    }

    96% {
        transform: rotate(-10deg);
    }

    98% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Badge de Notificación CORREGIDO (Fuera del botón) */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border: 2px solid #0a192f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

@keyframes pop-in {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* --- EFECTOS TYPEWRITER (ESCRITURA) --- */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: #00d2be;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.5s;
}

/* Ocultar Badge de reCAPTCHA pero mantenerlo activo */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
}