/* ═══════════════════════════════════════════════════════
   Maquiservicios Tech — Custom Styles
   ═══════════════════════════════════════════════════════ */

/* ── Smooth scroll ───────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Selection ───────────────────────────────────────── */
::selection {
    background-color: #00A6D6;
    color: #ffffff;
}

/* ── Scroll to top offset for sticky nav ─────────────── */
[id] {
    scroll-margin-top: 80px;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */

/* Float animation (hero decorative elements) */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Button shine sweep */
@keyframes btn-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btn-shine 3s ease-in-out infinite;
}

/* Glow pulse */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 166, 214, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 166, 214, 0.3);
    }
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Gradient shift (subtle background animation) */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL (fade-up on scroll)
   ══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   ANIMATED UNDERLINE (for links)
   ══════════════════════════════════════════════════════ */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00A6D6;
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* ══════════════════════════════════════════════════════
   GLASS CARD
   ══════════════════════════════════════════════════════ */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════
   DOT GRID BACKGROUND
   ══════════════════════════════════════════════════════ */
.dot-grid {
    background-image: radial-gradient(circle, rgba(0, 166, 214, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ══════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ══════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00A6D6;
}

/* ══════════════════════════════════════════════════════
   FORM FOCUS STYLES
   ══════════════════════════════════════════════════════ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 166, 214, 0.15);
}

/* ══════════════════════════════════════════════════════
   NAVBAR SCROLL SHADOW
   ══════════════════════════════════════════════════════ */
.nav-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ══════════════════════════════════════════════════════
   MISC
   ══════════════════════════════════════════════════════ */

/* WhatsApp button pulse ring */
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-pulse {
    animation: wa-pulse 2s infinite;
}

/* Typing cursor blink */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.animate-blink {
    animation: blink 0.8s step-end infinite;
}

/* ══════════════════════════════════════════════════════
   SUCCESS MODAL — check_circle effects
   ══════════════════════════════════════════════════════ */

/* Glow pulse ring around the icon circle */
@keyframes success-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4),
                    0 0 20px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0),
                    0 0 40px rgba(34, 197, 94, 0.25);
    }
}

.success-ring {
    animation: success-glow 2s ease-in-out infinite;
}

/* Icon scale-bounce on appear + subtle continuous pulse */
@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    }
}

.success-icon {
    animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               success-pulse 2s ease-in-out 0.8s infinite;
}
