/* ============================================
   MXCORP - Estilos Personalizados
   Complemento a Tailwind CSS (CDN)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    /* slate-50 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* slate-300 */
    border-radius: 9999px;
    border: 4px solid #f8fafc;
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
    /* green-400 */
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Nav Link Enhancement ---- */
.nav-link {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #22c55e;
    /* green-500 */
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Sticky Header Scrolled State ---- */
nav.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

nav.scrolled .nav-logo {
    transform: scale(0.9);
}

/* ---- Scroll Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-line {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.8);
}

.reveal-line {
    width: 0;
    opacity: 1;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.reveal-line.active {
    opacity: 1;
    width: 100%;
}

/* ---- Process Steps ---- */
.process-step:hover .step-icon {
    background: #22c55e;
    color: #fff;
    transform: scale(1.1) rotate(360deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-icon {
    transition: all 0.5s ease;
}

/* ---- Leaflet Custom Icon ---- */
.custom-div-icon {
    background: none !important;
    border: none !important;
}

/* ---- Lucide Icons Fix ---- */
i[data-lucide],
svg.lucide {
    display: inline-block !important;
    vertical-align: middle;
    min-width: 1.25rem;
    min-height: 1.25rem;
}

/* ---- Pulse Green Animation ---- */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.animate-pulse-green {
    animation: pulse-green 3s infinite;
}

/* ---- Honeypot Anti-Bot (oculto con múltiples técnicas) ---- */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* ---- "Lo más importante" highlight box ---- */
.key-takeaways {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #22c55e;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.key-takeaways h3 {
    color: #166534;
    font-weight: 900;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.key-takeaways li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 900;
}