/* ═══════════════════════════════════════════
   AhorraWeb — Custom CSS
   ═══════════════════════════════════════════ */

/* ─── SMOOTH SCROLL ─────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ─── GLOBAL ────────────────────────────────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #000;
    color: #fff;
}

/* ─── HEADER ────────────────────────────────── */
.header-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ─── LUCIDE ICONS ──────────────────────────── */
[class^="icon-"],
[class*=" icon-"] {
    font-family: 'lucide';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── FAQ ANIMATION ─────────────────────────── */
.faq-content {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-toggle span:first-child {
    color: #333;
}

/* ─── CARD TRANSITIONS ──────────────────────── */
.service-card,
.process-step,
.testimonial-card,
.price-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── BUTTON HOVER STATES ───────────────────── */
a, button {
    cursor: pointer;
}

/* ─── FORM FOCUS STYLES ─────────────────────── */
input:focus,
textarea:focus {
    border-color: #000 !important;
    outline: none;
}

/* ─── URGENCY BADGE PULSE ───────────────────── */
@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ─── CUSTOM SCROLLBAR ──────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ─── MULTI-STEP FORM ──────────────────────── */
.step-panel {
    transition: opacity 0.4s ease;
}

select.appearance-none {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.border-red-400 {
    border-color: #f87171 !important;
}

/* ─── WHATSAPP WIDGET ──────────────────────── */
#whatsappWidget {
    animation: whatsapp-entrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) 2s both;
}

@keyframes whatsapp-entrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#whatsappWidget:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ─── RESPONSIVE ADJUSTMENTS ────────────────── */
@media (max-width: 768px) {
    .trust-bar > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
