/* Custom CSS Variables */
:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary-color: #22c55e;
    --secondary-dark: #16a34a;
    --secondary-light: #4ade80;
    --accent-color: #06b6d4;
    --text-dark: #0c4a6e;
    --text-light: #075985;
    --text-muted: #64748b;
    --bg-light: #FFFAF0;
    --bg-white: #F5F5F5;
    --border-color: #e0f2fe;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xxl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9e42 0%, #059c3c 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-xxl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Scrolling Enhancements */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
    transition: scroll-behavior 0.3s ease;
}

/* Navigation link active state */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 20px;
        opacity: 1;
    }
}

/* Section entrance animations */
section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.scrolling-to {
    opacity: 0;
    transform: translateY(30px);
}

section.scrolled-to {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 9999;
    opacity: 0;
}

.scroll-indicator.active {
    opacity: 1;
    transform: scaleX(1);
}

/* Enhanced button hover effects for navigation */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    /* display: none; eliminado para evitar reflow */
}

.spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark) !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.text-gradient {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    /* A subtle underline color */
    text-underline-offset: 4px;
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    font-size: 1.125rem;
    /* Enhanced primary CTA button */
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
    /* Enhanced hover effect */
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

.btn-secondary-gradient {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-secondary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
    /* Enhanced hover effect */
}

.btn-secondary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

/* Custom Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.35rem;
    font-size: 1.25rem;
    background-color: transparent;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    background-color: rgba(14, 165, 233, 0.1);
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-collapse {
        background: var(--bg-white);
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }

    .navbar.scrolled .navbar-collapse {
        background: var(--bg-white);
    }

    .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }

    .nav-link:hover {
        background-color: rgba(14, 165, 233, 0.1);
        transform: translateX(5px);
    }

    .nav-link::after {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 140px 0;
    /* Enhanced padding for better desktop spacing */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    z-index: -2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(2, 132, 199, 0.9) 100%);
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    /* Enhanced typography for better desktop readability */
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.65;
    font-weight: 400;
    max-width: 90%;
    /* Enhanced subtitle for better readability and visual hierarchy */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Enhanced badge styling for better prominence */
}

.hero-stats {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    /* Enhanced spacing for stats section */
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
    /* Enhanced stat numbers for better visual impact */
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    font-size: 1.125rem;
    border-width: 2px;
    /* Enhanced outline button styling */
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    /* Enhanced outline button hover effect */
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
    /* Added spacing for better desktop layout */
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xxl);
    max-width: 550px;
    transform: perspective(1000px) rotateY(-5deg);
    /* Enhanced image wrapper with 3D effect */
}

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

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(2, 132, 199, 0.2) 100%);
}

/* Hide elements with AOS animations until AOS is ready */
[data-aos] {
    opacity: 0;
    transform: translate(0, 20px);
    /* A common starting point for fade-up animations */
    transition: opacity 0s, transform 0s;
    /* No transition initially */
}

/* AOS will override these properties when it initializes */
body.aos-init [data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* Apply transitions when animated */
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Enhanced floating cards with better styling and positioning */
}

.floating-card.top-left {
    top: -30px;
    left: -30px;
    animation: floatCard 5s ease-in-out infinite;
}

.floating-card.bottom-right {
    bottom: -30px;
    right: -30px;
    animation: floatCard 5s ease-in-out infinite reverse;
    /* Improved positioning for better desktop layout */
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    /* Enhanced icon styling */
}

.floating-card-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.2;
}

.floating-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.3;
    /* Enhanced typography for floating cards */
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    position: relative;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.feature-list li i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Services Section */
.services-section {
    background: var(--bg-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Enhanced section padding and positioning */
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.02) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    /* Subtle background gradient for depth */
}

.services-section .section-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    /* Enhanced title for services section */
}

.services-section .section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
    /* Enhanced subtitle for services section */
}

.services-image {
    position: relative;
    display: flex;
    justify-content: center;
    margin-right: 3rem;
    /* Added spacing for better desktop distribution */
}

.services-image img {
    border-radius: var(--border-radius-xxl);
    box-shadow: var(--shadow-xxl);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition);
    /* Enhanced image styling with 3D effect */
}

.services-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
    /* Subtle hover interaction */
}

.services-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--gradient-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Enhanced badge styling and positioning */
}

.service-features {
    margin-top: 3rem;
    padding-left: 1rem;
    /* Enhanced spacing and indentation */
}

.service-feature {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    /* Enhanced service feature styling */
}

.service-feature:hover {
    background: rgba(14, 165, 233, 0.05);
    transform: translateX(10px);
    /* Subtle hover effect */
}

.feature-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    /* Enhanced feature number styling */
}

.service-feature:hover .feature-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    /* Interactive effect on hover */
}

.feature-content h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    /* Enhanced heading typography */
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.0625rem;
    margin-bottom: 0;
    /* Enhanced paragraph readability */
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-light);
}

.testimonialsSwiper {
    width: 100%;
    height: 100%;
    padding: 2rem 0;
}

.swiper-pagination {
    position: relative;
    margin-top: 3rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-white);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    height: 100%;
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-description {
    color: var(--text-light);
    margin-bottom: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i.bi-check-circle-fill {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.pricing-features li i.bi-x-circle {
    color: #ef4444;
    font-size: 1.125rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.accordion-item {
    border: none;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.accordion-collapse {
    border: none;
    transition: height 0.3s ease-out, opacity 0.3s ease-out;
}

.accordion-collapse.collapsing {
    height: 0 !important;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.accordion-collapse.show {
    opacity: 1;
}

.accordion-collapse:not(.show) {
    opacity: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
}

/* Footer */
.footer-section {
    background: var(--text-dark);
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
}

.footer-copyright,
.footer-made-with {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: var(--shadow-xl);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transform: scale(0.8) rotate(0deg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0deg);
    animation: bounceIn 0.6s ease-out;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top.clicked {
    animation: pulseClick 0.4s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) rotate(180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.05) rotate(90deg);
    }

    70% {
        transform: scale(0.9) rotate(45deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseClick {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.back-to-top:hover::before {
    width: 100%;
    height: 100%;
}

/* Large Desktop Optimization */
@media (min-width: 1400px) {
    .hero-section {
        padding: 140px 0 160px 0;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 85%;
    }

    .hero-image-wrapper {
        max-width: 600px;
    }

    .floating-card {
        min-width: 240px;
    }
}

/* Request Trial Section */
.request-trial-section {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 180px 0 80px 0;
    /* Increased top padding to account for fixed navbar */
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.request-trial-section .section-title {
    margin-top: 2rem;
    /* Additional margin for title */
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.request-form-container {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.request-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.trial-request-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-request-form .form-control,
.trial-request-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.trial-request-form .form-control:focus,
.trial-request-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.trial-request-form .form-control:hover,
.trial-request-form .form-select:hover {
    border-color: var(--primary-light);
}

.trial-request-form .form-control::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.trial-request-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.trial-request-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    margin-top: 0.125rem;
}

.trial-request-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.trial-request-form .form-check-label {
    font-weight: 400;
    color: var(--text-light);
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.trial-request-form .form-check-label a {
    text-decoration: none;
    font-weight: 600;
}

.trial-request-form .form-check-label a:hover {
    text-decoration: underline;
}

.trial-request-form .invalid-feedback {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.375rem;
    color: #dc3545;
}

.trial-request-form .is-invalid {
    border-color: #dc3545 !important;
}

.trial-request-form .is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.trial-request-form .is-valid {
    border-color: var(--secondary-color) !important;
}

.trial-request-form .is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25) !important;
}

.success-message {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.success-message h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-message ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.success-message .btn {
    margin-top: 1.5rem;
}

/* Form Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trial-request-form {
    animation: slideInUp 0.6s ease-out;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-left: -0.625rem;
    margin-top: -0.625rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design for Request Trial Section */
@media (max-width: 768px) {
    .request-trial-section {
        padding: 160px 0 60px 0;
        /* Increased top padding for mobile navbar */
    }

    .request-trial-section .section-title {
        margin-top: 1.5rem;
        /* Reduced margin for mobile */
    }

    .request-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .trial-badge {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .trial-request-form .form-control,
    .trial-request-form .form-select {
        font-size: 16px;
        /* Previene zoom en iOS */
    }
}

@media (max-width: 576px) {
    .request-trial-section {
        padding: 240px 0 50px 0;
        /* Máximo padding para asegurar visibilidad */
    }

    .request-trial-section .section-title {
        margin-top: 2rem;
    }

    .request-form-container {
        padding: 1.5rem 1rem;
        border-radius: var(--border-radius-lg);
    }

    .success-message {
        padding: 2rem 1.5rem;
    }
}

/* Preselected Plan Styling */
.form-select.preselected {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    font-weight: 600;
    color: var(--primary-dark);
}

.form-select.preselected:focus {
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Services section responsive improvements */
    .services-image {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    .service-features {
        padding-left: 0;
    }

    .service-feature {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .pricing-card.featured {
        transform: none;
        margin-top: 1rem;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card,
    .pricing-card {
        padding: 2rem;
    }

    .floating-card {
        display: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .price {
        font-size: 2.5rem;
    }

    /* Enhanced mobile services section */
    .service-feature {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .service-feature:hover {
        transform: translateX(0);
    }

    .feature-number {
        margin: 0 auto 1rem;
        width: 55px;
        height: 55px;
        font-size: 1.125rem;
    }

    .services-badge {
        position: static;
        margin: 1rem auto 0;
        width: fit-content;
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* === Mejoras responsive adicionales para móviles === */
@media (max-width: 576px) {
  section, .features-section, .services-section, .pricing-section, .faq-section, .cta-section {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .feature-card,
  .pricing-card,
  .contact-card {
    padding: 1rem 0.7rem !important;
  }
  .section-title, .footer-brand { font-size: 1.2rem !important; }
  .section-subtitle { font-size: 1rem !important; margin-bottom: 1.2rem; }
  .footer-section { padding: 1.5rem 0 0.7rem 0 !important; font-size: 0.99rem; }
  .footer-links li { margin-bottom: 0.62rem; }
  .footer-links a { font-size: 0.97rem; padding: 0.15rem 0 !important; }
  .footer-brand img { height: 32px !important; }
  .social-links a { width: 34px; height: 34px; font-size: 1.15rem; }
  .btn,
  .btn-primary-gradient,
  .btn-secondary-gradient,
  .btn-light,
  .btn-outline-light {
    width:100% !important;
    box-sizing: border-box;
    font-size: 1rem !important;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    margin-bottom: 0.6rem;
  }
  input, select, textarea {
    font-size: 1rem !important;
    padding: 0.7rem 0.7rem !important;
    border-radius: 0.6rem;
  }
  .col-lg-6, .col-lg-7, .col-lg-5, .col-lg-4, .col-lg-8, .col-lg-2 {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hero-image { max-width: 80vw; }
}
@media (max-width: 360px) {
  .section-title, .footer-brand { font-size: 1rem !important; }
  .btn, .btn-primary-gradient, .btn-secondary-gradient, .btn-light, .btn-outline-light { font-size: 0.85rem !important; }
}