/* ================================
   REUSABLE COMPONENTS
   Enterprise Theme
================================ */

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    letter-spacing: -0.01em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-800) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
    transform: translateY(-2px);
}

.btn--accent {
    background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn--accent:hover {
    background: linear-gradient(135deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);
    box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary-700);
    border-color: var(--color-primary-700);
}

.btn--secondary:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary-600);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.btn--whatsapp {
    background: linear-gradient(135deg, var(--color-whatsapp) 0%, #128C7E 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn--whatsapp:hover {
    background: linear-gradient(135deg, #2BE16E 0%, var(--color-whatsapp) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgb(37 211 102 / 0.4);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-lg);
}

/* === CARDS === */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover), 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image {
    transform: scale(1.03);
}

.card__content {
    padding: var(--space-6);
}

.card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.card__description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* === CATEGORY CARD === */
.category-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 24, 41, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    transition: background var(--transition-base);
}

.category-card:hover .category-card__image {
    transform: scale(1.08);
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(12, 24, 41, 0.98) 100%);
}

.category-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.category-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent-400);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: gap var(--transition-base);
}

.category-card:hover .category-card__link {
    gap: var(--space-3);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.section-header__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-accent-500);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
}

.section-header__label::before,
.section-header__label::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--color-accent-400);
}

.section-header__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: var(--leading-tight);
}

.section-header__description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* === FEATURES/BENEFITS === */
/* === FEATURES/BENEFITS === */
.feature {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-card-hover), 0 0 30px rgba(245, 158, 11, 0.1);
    transform: translateY(-8px);
}

.feature:hover::before {
    opacity: 1;
}

/* === CTA SECTION === */
.section--primary {
    background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-900) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section--primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: var(--text-4xl);
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.cta__description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary-700);
    box-shadow: var(--shadow-lg);
}

.btn--white:hover {
    background: var(--color-neutral-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.feature__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-white) 100%);
    border: 1px solid var(--color-primary-100);
    border-radius: var(--radius-xl);
    color: var(--color-primary-600);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.feature:hover .feature__icon {
    background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.4);
}

.feature__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.feature__description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* === STATS === */
.stat {
    text-align: center;
    padding: var(--space-6);
}

.stat__number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--color-accent-400);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat__label {
    font-size: var(--text-base);
    color: var(--color-white);
    opacity: 0.9;
    font-weight: var(--font-medium);
}

/* === BLOG CARD === */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.blog-card__image-wrapper {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-accent-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.blog-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.blog-card__excerpt {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex: 1;
}

.blog-card__meta {
    font-size: var(--text-sm);
    color: var(--color-neutral-500);
    font-weight: var(--font-medium);
}

/* === TESTIMONIAL === */
.testimonial {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--color-primary-100);
    line-height: 1;
}

.testimonial__quote {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial__avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-primary-100);
}

.testimonial__name {
    font-weight: var(--font-bold);
    color: var(--color-text);
}

.testimonial__role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.service-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-200);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    transition: all 0.3s ease;
}

.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    color: white;
    transform: scale(1.1);
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.service-card__description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* === MAP SECTION === */
.map-section {
    padding: var(--space-16) 0;
    background: var(--color-neutral-100);
}

.map-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (max-width: 768px) {
    .map-section__grid {
        grid-template-columns: 1fr;
    }
}

.map-section__info {
    padding: var(--space-8);
}

.map-section__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.map-section__description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.map-section__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.map-section__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.map-section__item-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    flex-shrink: 0;
}

.map-section__item-content h4 {
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: 4px;
}

.map-section__item-content p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.map-section__embed {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-section__embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === WHATSAPP CHAT WIDGET === */

/* Container for button + tooltip */
.whatsapp-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-whatsapp);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tooltip Banner */
.whatsapp-tooltip {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: tooltipPulse 3s ease-in-out infinite;
    transform-origin: right center;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-tooltip__text {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}

.whatsapp-tooltip__text strong {
    color: #128C7E;
    font-weight: 600;
    display: block;
}

.whatsapp-tooltip__icon {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-tooltip__icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

@keyframes tooltipPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
    }
}

/* Hide tooltip when chat is open */
.whatsapp-container.chat-open .whatsapp-tooltip {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* Floating Button */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    flex-shrink: 0;
}

/* Pulse animation ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover::before {
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
    transition: all 0.3s ease;
}

.whatsapp-float.active .icon-whatsapp {
    opacity: 0;
    transform: rotate(90deg) scale(0);
    position: absolute;
}

.whatsapp-float.active .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.whatsapp-float .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    position: absolute;
}

.whatsapp-float.active::before {
    animation: none;
    opacity: 0;
}

/* Chat Widget Window */
.whatsapp-chat {
    position: fixed;
    bottom: 100px;
    right: var(--space-6);
    width: 360px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: var(--z-whatsapp);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: bottom right;
}

.whatsapp-chat.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.whatsapp-chat__header {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    padding: 24px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative pattern */
.whatsapp-chat__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.whatsapp-chat__header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.whatsapp-chat__header-title svg {
    width: 28px;
    height: 28px;
}

.whatsapp-chat__header-subtitle {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}

/* Body */
.whatsapp-chat__body {
    padding: 20px;
    background: linear-gradient(180deg, #ECE5DD 0%, #f0f2f5 100%);
    max-height: 350px;
    overflow-y: auto;
}

.whatsapp-chat__label {
    font-size: 13px;
    color: #667781;
    margin-bottom: 16px;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Agents List */
.whatsapp-chat__agent {
    display: flex;
    align-items: center;
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid #25d366;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.whatsapp-chat__agent:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
    border-left-color: #128C7E;
}

.whatsapp-chat__agent:last-child {
    margin-bottom: 0;
}

.whatsapp-chat__avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DCF8C6 0%, #B8E994 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.whatsapp-chat__avatar svg {
    width: 26px;
    height: 26px;
    fill: #128C7E;
}

.whatsapp-chat__info {
    flex: 1;
}

.whatsapp-chat__name {
    font-size: 15px;
    font-weight: 600;
    color: #111b21;
    display: block;
    margin-bottom: 3px;
}

.whatsapp-chat__role {
    font-size: 12px;
    color: #8696a0;
}

.whatsapp-chat__arrow {
    width: 20px;
    height: 20px;
    fill: #25d366;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
}

.whatsapp-chat__agent:hover .whatsapp-chat__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .whatsapp-tooltip {
        display: none;
    }

    .whatsapp-container {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-chat {
        right: 16px;
        left: auto;
        bottom: 90px;
        width: calc(100vw - 32px);
        border-radius: 12px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* === CLIENT LOGOS === */
.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-10);
}

.logo-grid__item {
    max-width: 140px;
    max-height: 60px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.logo-grid__item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--primary {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
}

.badge--accent {
    background: var(--color-accent-100);
    color: var(--color-accent-600);
}

.badge--success {
    background: var(--color-green-100);
    color: var(--color-green-600);
}

/* === DIVIDERS === */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-400) 0%, var(--color-primary-500) 100%);
    border-radius: var(--radius-full);
    margin: var(--space-4) 0;
}

.divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* ==================================
   WHATSAPP CHAT WIDGET
================================== */

/* Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    border: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
    transition: all 0.3s ease;
}

.whatsapp-float .icon-close {
    display: none;
    stroke: white;
    fill: none;
}

.whatsapp-float.active .icon-whatsapp {
    display: none;
}

.whatsapp-float.active .icon-close {
    display: block;
}

.whatsapp-float.active {
    animation: none;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 2px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Chat Widget */
.whatsapp-chat {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: calc(100vw - 50px);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-chat.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.whatsapp-chat__header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    padding: var(--space-5);
    color: white;
    position: relative;
    overflow: hidden;
}

.whatsapp-chat__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.whatsapp-chat__header-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
    position: relative;
}

.whatsapp-chat__header-subtitle {
    font-size: var(--text-sm);
    opacity: 0.9;
    position: relative;
}

/* Body */
.whatsapp-chat__body {
    padding: var(--space-4);
    max-height: 320px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ECE5DD 0%, #E5DDD5 100%);
}

.whatsapp-chat__label {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-neutral-600);
    margin-bottom: var(--space-3);
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    display: inline-block;
    width: 100%;
}

/* Agent Cards */
.whatsapp-chat__agent {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
}

.whatsapp-chat__agent:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #25D366;
}

.whatsapp-chat__avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-chat__avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.whatsapp-chat__info {
    display: flex;
    flex-direction: column;
}

.whatsapp-chat__name {
    font-weight: var(--font-semibold);
    color: var(--color-neutral-900);
    font-size: var(--text-sm);
}

.whatsapp-chat__role {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
}

/* Tooltip - positioned to the left of the WhatsApp button */
.whatsapp-tooltip {
    position: fixed;
    bottom: 25px;
    right: 95px;
    background: var(--color-white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: var(--text-sm);
    z-index: 9997;
    animation: tooltip-pulse 2s ease-in-out infinite;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 60px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--color-white);
}

@keyframes tooltip-pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.85;
        transform: translateX(-3px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-chat {
        bottom: 90px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* WhatsApp Container */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9998;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.whatsapp-container .whatsapp-float {
    position: relative;
    bottom: auto;
    left: auto;
    order: 2;
}

.whatsapp-container .whatsapp-tooltip {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    height: auto;
    order: 1;
    margin-right: 24px;
}

.whatsapp-tooltip__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-tooltip__text strong {
    color: #25D366;
}

/* Hide tooltip when chat is open */
.whatsapp-container.chat-open .whatsapp-tooltip {
    display: none;
}