/* ============================================================
   TOLIMA PRECISO — Stylesheet
   ============================================================ */

/* ---------- Animations ---------- */
@keyframes fadeIn    { from { opacity: 0; }                         to { opacity: 1; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight{ from { opacity: 0; transform: translateX(-40px); }to { opacity: 1; transform: translateX(0); } }
@keyframes pulse-ring{ 0%  { transform: scale(0.8); opacity: 0.6; } 100%{ transform: scale(2.2); opacity: 0; } }
@keyframes draw-line { from { stroke-dashoffset: 1000; }            to { stroke-dashoffset: 0; } }
@keyframes count-pulse { 0%,100%{ transform: scale(1); }  50%{ transform: scale(1.05); } }
@keyframes float     { 0%,100%{ transform: translateY(0); }  50%{ transform: translateY(-10px); } }
@keyframes grid-pulse{ 0%,100%{ opacity: 0.03; }  50%{ opacity: 0.08; } }
@keyframes modalIn   { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ---------- Utility animation classes ---------- */
.animate-fade-in    { animation: fadeIn  1s ease-out; }
.animate-slide-up   { animation: slideUp 0.8s ease-out; }
.animate-slide-left { animation: slideLeft  0.8s ease-out; }
.animate-slide-right{ animation: slideRight 0.8s ease-out; }
.animate-float      { animation: float 4s ease-in-out infinite; }
.animate-count-pulse{ animation: count-pulse 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; animation-fill-mode: both; }
.delay-200 { animation-delay: 0.2s; animation-fill-mode: both; }
.delay-300 { animation-delay: 0.3s; animation-fill-mode: both; }
.delay-400 { animation-delay: 0.4s; animation-fill-mode: both; }
.delay-500 { animation-delay: 0.5s; animation-fill-mode: both; }
.delay-600 { animation-delay: 0.6s; animation-fill-mode: both; }

/* ---------- SVG draw animation ---------- */
.draw-svg path,
.draw-svg line,
.draw-svg polygon {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 2.5s ease-out forwards;
}
.draw-svg.delay-draw path,
.draw-svg.delay-draw line,
.draw-svg.delay-draw polygon { animation-delay: 1.2s; }

/* ---------- Background helpers ---------- */
.grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-pulse 6s ease-in-out infinite;
}
.hero-gradient {
    background: linear-gradient(to bottom, rgba(8,8,8,0.7), rgba(8,8,8,0.4), #080808);
}
.dot-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ---------- Text effects ---------- */
.text-glow { text-shadow: 0 0 40px rgba(194,94,40,0.3); }

/* ---------- Card hover effects ---------- */
.card-solution:hover .card-icon {
    background-color: #C25E28;
    color: white;
}
.card-solution:hover { border-color: rgba(194,94,40,0.3); }

/* ---------- Scroll reveal ---------- */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Toast ---------- */
.toast {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Mobile menu ---------- */
.mobile-menu { transform: translateX(100%); transition: transform 0.3s ease-out; }
.mobile-menu.open { transform: translateX(0); }

/* ---------- Accordion ---------- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}
.accordion-content.open { max-height: 500px; }

/* ---------- Modal overlay ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #121212;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 2px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.35s ease-out;
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

/* ---------- Payment plan selector ---------- */
.plan-btn {
    border: 1px solid rgba(255,255,255,0.08);
    background: #1E1E1E;
    border-radius: 2px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
    width: 100%;
    color: inherit;
}
.plan-btn:hover { border-color: rgba(194,94,40,0.3); }
.plan-btn.selected {
    border-color: #C25E28;
    background: rgba(194,94,40,0.08);
}

/* ---------- Loading spinner ---------- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Status badge ---------- */
.badge-pending  { background: rgba(234,179,8,0.12); color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }
.badge-paid     { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-rejected { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
