/* =========================================
   GARSEG - Estilos Personalizados
   ========================================= */

/* Variables de color corporativos (basados en la imagen) */
:root {
    --garseg-purple-dark: #2E1065;   /* Morado profundo del logo */
    --garseg-purple: #4C1D95;        /* Morado principal */
    --garseg-purple-light: #7C3AED;  /* Morado claro para acentos */
    --garseg-yellow: #FACC15;        /* Amarillo/Dorado del bono */
    --garseg-green: #22C55E;         /* Verde WhatsApp */
    --garseg-bg: #F8FAFC;            /* Fondo gris muy claro */
}

/* Tipografía base */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--garseg-bg);
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
}

/* Scroll suave para toda la página */
html {
    scroll-behavior: smooth;
}

/* =========================================
   Animaciones
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Efecto de pulso para el botón flotante de chat */
.chat-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: var(--garseg-green);
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

/* =========================================
   Botones y Efectos Hover
   ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--garseg-purple), var(--garseg-purple-dark));
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(76, 29, 149, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(76, 29, 149, 0.5);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

/* Tarjetas con efecto de elevación */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Sección Hero (Cabecera)
   ========================================= */
.hero-bg {
    background: linear-gradient(135deg, #1E1B4B 0%, #2E1065 50%, #4C1D95 100%);
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo de fondo en el hero */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Título principal con gradiente de texto */
.text-gradient-yellow {
    background: linear-gradient(135deg, #FACC15, #FDE047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   Widget de Chat Flotante
   ========================================= */
#chat-window {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#chat-window.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

/* Mensajes del chat */
.chat-bubble-bot {
    background: #F3E8FF;
    color: #4C1D95;
    border-radius: 1rem 1rem 1rem 0;
}

.chat-bubble-user {
    background: var(--garseg-green);
    color: white;
    border-radius: 1rem 1rem 0 1rem;
    margin-left: auto;
}

/* Animación de "escribiendo..." */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #F3E8FF;
    border-radius: 1rem 1rem 1rem 0;
    width: fit-content;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #7C3AED;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Scrollbar personalizada para el chat */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}
#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: #C4B5FD;
    border-radius: 3px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}

/* =========================================
   Sección de Sueldos
   ========================================= */
.salary-card-highlight {
    background: linear-gradient(135deg, #2E1065, #4C1D95);
    position: relative;
    overflow: hidden;
}

.salary-card-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* =========================================
   Sección de Requisitos
   ========================================= */
.requisito-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}
.requisito-item:hover {
    background: #F3E8FF;
}

.requisito-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3E8FF;
    color: var(--garseg-purple);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* =========================================
   Sección de Beneficios
   ========================================= */
.beneficio-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}
.beneficio-card:hover {
    transform: translateY(-4px);
    border-color: var(--garseg-purple-light);
    box-shadow: 0 10px 30px -10px rgba(76, 29, 149, 0.2);
}

/* =========================================
   Sección de Ubicación
   ========================================= */
.location-bg {
    background: linear-gradient(135deg, #1E1B4B, #2E1065);
    position: relative;
}

/* =========================================
   Responsive (Mobile-first)
   ========================================= */
@media (max-width: 768px) {
    #chat-window {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 1rem;
        max-height: 85vh;
    }
    
    .hero-bg h2 {
        font-size: 2.5rem !important;
    }
}

/* =========================================
   Utilidades
   ========================================= */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.backdrop-blur-nav {
    backdrop-filter: blur(10px);
    background: rgba(46, 16, 101, 0.9);
}