@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/MaterialSymbolsOutlined-Subset.ttf') format('truetype');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

:root {
    --primary-color: #49b32b;
    --primary-dark: #3a8d22;
    /* High contrast for text */
    --background-light: #f5f7f8;
    --background-dark: #101922;
    --text-secondary: #5a646e;
    /* Improved contrast */
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-light);
    color: #111418;
}

/* Global Placeholder Styling */
::placeholder {
    font-size: 0.85rem;
    opacity: 0.7;
}

:-ms-input-placeholder {
    font-size: 0.85rem;
}

::-ms-input-placeholder {
    font-size: 0.85rem;
}

/* Custom Primary Colors and Buttons */
.text-primary {
    color: var(--primary-dark) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3e9e24;
    border-color: #3e9e24;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(73, 179, 43, 0.3);
}

.btn-light {
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-primary-bg:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Typography and Spacing */
.fw-black {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.015em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Components */
.avatar-stack .avatar {
    width: 32px;
    height: 32px;
    background-size: cover;
    background-position: center;
    margin-right: -8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Effects */
.grayscale-filter {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.hover-grayscale-none:hover {
    filter: grayscale(0%);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.blur-5 {
    filter: blur(50px);
}

.bg-gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
}

.arrow-hover:hover .material-symbols-outlined {
    transform: translateX(5px);
}

.arrow-hover .material-symbols-outlined {
    transition: transform 0.3s;
}

.stats-card:hover {
    border-color: var(--primary-color) !important;
}

.hero-image-container {
    height: auto;
    width: 100%;
    display: block;
}

.hero-image-container img {
    border-radius: 1.5rem;
    width: 100%;
    height: auto;
    display: block;
}

/* Service Icon Styling */
.service-icon-bg {
    background-color: var(--primary-color) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

/* Pricing Card Highlighted */
.pricing-card-highlight {
    transform: scale(1.05);
    border: 2px solid var(--primary-color) !important;
    z-index: 1;
}

@media (max-width: 991px) {
    .pricing-card-highlight {
        transform: scale(1);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.pricing-card-highlight .btn-primary {
    background-color: #3d9624;
    border-color: #3d9624;
}

/* Payment Section Styles */
.payment-card {
    border-left: 4px solid var(--primary-color) !important;
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.payment-card:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

/* Modern CTA Background */
.cta-modern-bg {
    background: linear-gradient(135deg, #101922 0%, #1a2a3a 100%);
    position: relative;
    z-index: 1;
}

.cta-modern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--primary-color), transparent 50%);
    opacity: 0.15;
    z-index: -1;
}

/* Optimization Services Hover Fix */
.optimization-service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #dee2e6;
}

.optimization-service-card:hover {
    transform: scale(1.03);
    border-color: #ffc107 !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
    background-color: white !important;
}

.optimization-service-card:hover .bg-warning-subtle {
    background-color: #ffc107 !important;
    color: white !important;
}

/* Accessibility: Improved Contrast for secondary text on light bg */
.text-secondary {
    color: var(--text-secondary) !important;
}

/* Accessibility: Swiper Tap Targets */
.swiper-pagination-bullet {
    width: 14px !important;
    height: 14px !important;
    margin: 0 10px !important;
    opacity: 0.6 !important;
    display: inline-block !important;
    background: #000 !important;
    /* Visual fallback if primary fails */
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--primary-dark) !important;
}

/* Performance Optimization: will-change hints */
h1,
.lead,
.hero-buttons,
.avatar-stack,
.hero-image-container,
.logos-container>div,
.stats-card,
.swiper-slide,
#servicios .col,
#portfolio-grid [class*="col-"],
.pricing-card-highlight,
.payment-card,
.feature-item,
#section-contact-cta [class*="col-lg-"],
footer [class*="col-"] {
    will-change: transform, opacity;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float .material-symbols-outlined {
    font-size: 36px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float .material-symbols-outlined {
        font-size: 30px;
    }
}