/* ===================================
   Caasag Custom Styles
   Sistema de Gestión Educativa
   =================================== */

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Colores personalizados basados en la paleta */
:root {
    --primary-purple: #7f2191;
    --primary-blue: #51AEE5;
    --secondary-purple: #7f2191;
    --accent-blue: #3946a2;
    --gradient-primary: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    --gradient-tertiary: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 50%, var(--accent-blue) 100%);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 64px rgba(0,0,0,0.15);
    --border-radius-sm: 10px;
    --border-radius-md: 20px;
    --border-radius-lg: 25px;
    --border-radius-xl: 50px;
}

/* ===================================
   HERO SECTION STYLES
   =================================== */

.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem 0;
}

.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.text-gradient {
    background: linear-gradient(45deg, #51AEE5, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.text-gradient::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transform: scaleX(0);
    animation: scaleX 1s ease-out 1s both;
}

.brand-text {
    color: #51AEE5;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(81, 174, 229, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-features {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.hero-features .feature-item:hover {
    transform: translateX(5px);
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn-hero-primary {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 32px rgba(81, 174, 229, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::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-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    background: #3a9dd9;
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(81, 174, 229, 0.6);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-hero-secondary:hover::before {
    width: 100%;
}

.btn-hero-secondary:hover {
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

/* ===================================
   HERO IMAGE & FLOATING ELEMENTS
   =================================== */

.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.15);
}

.image-placeholder.small {
    width: 150px;
    height: 100px;
    border-radius: var(--border-radius-sm);
}

.placeholder-content {
    text-align: center;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.image-placeholder:hover .placeholder-content {
    color: rgba(255,255,255,0.9);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

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

.floating-card.card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

/* ===================================
   SCROLL INDICATOR
   =================================== */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.7);
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 12px;
    margin: 0 auto 1rem;
    position: relative;
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse {
    border-color: rgba(255,255,255,1);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    opacity: 1;
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-section {
    background: white;
    position: relative;
    z-index: 2;
    margin-top: -50px;
    padding-top: 4rem;
}

.stat-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

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

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

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
    color: var(--primary-blue);
}

.stat-label {
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* ===================================
   BENEFITS SECTION
   =================================== */

.benefits-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(127,33,145,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.section-header {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

.benefits-grid {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.benefit-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127,33,145,0.03), transparent);
    transition: left 0.5s ease;
}

.benefit-card:hover::before {
    left: 100%;
}

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

.benefit-card-right {
    flex-direction: row-reverse;
}

.benefit-card-right .benefit-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.benefit-icon {
.benefit-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7f2191, #51AEE5);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(127, 33, 145, 0.3);
}
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon::before {
    transform: scale(1);
}

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

.benefit-content {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.benefit-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
}

.benefit-card:hover .benefit-content h4 {
    color: #7f2191;
}

.benefit-content p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
}

.benefit-feature {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #51AEE5;
    transition: transform 0.3s ease;
    background: rgba(81, 174, 229, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.benefit-card:hover .benefit-feature {
    transform: translateX(5px);
    background: rgba(81, 174, 229, 0.15);
}

.benefit-image {
    flex-shrink: 0;
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing-section {
    background: white;
    position: relative;
}

.pricing-calculator {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(81,174,229,0.02) 0%, rgba(127,33,145,0.02) 100%);
    pointer-events: none;
}

.price-display {
    text-align: center;
    position: relative;
    z-index: 2;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
    transition: all 0.3s ease;
}

.price-amount:hover {
    transform: scale(1.05);
    color: var(--primary-blue);
}

.price-unit {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.price-per-student {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.pricing-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.pricing-info .info-item:hover {
    transform: translateX(5px);
}

.pricing-tiers {
    margin-top: 4rem;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127,33,145,0.01) 0%, rgba(81,174,229,0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-blue);
}

.pricing-card.featured {
    border: 3px solid var(--primary-blue);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(81,174,229,0.02) 0%, rgba(127,33,145,0.02) 100%);
}

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

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    animation: pulse 2s infinite;
}

.pricing-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.pricing-range {
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    transition: color 0.3s ease;
}

.pricing-card:hover .price-number {
    color: var(--primary-blue);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.pricing-features .feature-item:hover {
    transform: translateX(5px);
}

.pricing-features .feature-item i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.btn-pricing {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-pricing::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-pricing:hover::before {
    left: 100%;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(127, 33, 145, 0.4);
    color: white;
}

.btn-pricing.featured {
    background: var(--primary-blue);
}

.btn-pricing.featured:hover {
    background: #3a9dd9;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: var(--gradient-tertiary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="stars" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="70" r="0.8" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars)"/></svg>');
    animation: moveStars 20s linear infinite;
}

.cta-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-features .cta-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.cta-features .cta-feature:hover {
    transform: translateX(5px);
}

.cta-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-heavy);
}

.cta-form .form-control,
.cta-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-form .form-control:focus,
.cta-form .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(81, 174, 229, 0.25);
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::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-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(127, 33, 145, 0.4);
    color: white;
}

/* ===================================
   FORM RANGE CUSTOMIZATION
   =================================== */

.form-range {
    height: 8px;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-blue));
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.form-range:hover {
    background: linear-gradient(to right, var(--primary-purple), var(--accent-blue));
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-medium);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-medium);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleX {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes scroll-down {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.5;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

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

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

@media (max-width: 992px) {
    .benefit-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .benefit-card-right {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .cta-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content {
        padding: 1rem 0;
        text-align: center;
    }

    .hero-image-container {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-card {
        position: static;
        margin: 1rem 0;
        display: inline-flex;
        animation: none; /* Eliminar animaciones en móvil */
    }

    .floating-elements {
        position: static;
        text-align: center;
        margin-top: 2rem;
    }

    .stats-section {
        margin-top: 0;
    }

    .calculator-card {
        padding: 2rem 1rem;
    }

    .pricing-tiers .col-lg-4 {
        margin-bottom: 2rem;
    }

    /* Mejorar espaciado de secciones en móvil */
    .benefits-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .benefits-grid .row {
        gap: 1rem;
    }

    /* Estilos específicos para beneficios en móvil */
    .benefit-card {
        flex-direction: column !important;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
        min-height: auto;
        animation: none; /* Eliminar animaciones */
    }

    .benefit-card:hover {
        transform: none; /* Eliminar transformaciones en móvil */
    }

    .benefit-card::before {
        display: none; /* Eliminar efectos de fondo animados */
    }

    .benefit-content {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        width: 100%;
    }

    .benefit-content h4 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
        color: #1a202c; /* Color más oscuro para mejor legibilidad */
    }

    .benefit-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        color: #2d3748; /* Color más oscuro para mejor legibilidad */
    }

    .benefit-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 auto 1rem;
        animation: none; /* Eliminar animaciones del icono */
    }

    .benefit-icon:hover {
        transform: none; /* Eliminar efectos hover en móvil */
    }

    .benefit-feature {
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.5rem;
    }

    .benefit-image {
        order: -1; /* Poner imagen arriba en móvil */
        margin-bottom: 1rem;
    }

    .image-placeholder.small {
        width: 120px;
        height: 80px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .benefit-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .benefit-content {
        padding: 0.8rem;
    }

    .benefit-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .benefit-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .benefit-feature {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .image-placeholder.small {
        width: 100px;
        height: 60px;
    }

    /* Módulos en móviles pequeños */
    .module-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .module-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .module-card h5 {
        font-size: 1.1rem;
    }

    .module-card p {
        font-size: 0.85rem;
    }

    .module-features li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .module-features li i {
        font-size: 0.7rem;
    }

    /* Tabs en móviles pequeños */
    .documentation-tabs .nav-link {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
    }

    .tab-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tab-title {
        font-size: 0.9rem;
    }

    .tab-subtitle {
        font-size: 0.75rem;
    }

    /* Feature groups en móviles pequeños */
    .feature-group {
        margin-bottom: 1.5rem;
    }

    .feature-group h6 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .feature-group li {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .feature-group li i {
        font-size: 0.7rem;
        margin-right: 0.3rem;
    }

    /* Documentation hero en móviles pequeños */
    .documentation-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-stats .stat-mini {
        padding: 0.5rem;
    }

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

    .stat-label {
        font-size: 0.7rem;
    }

    /* Reducir animaciones globalmente en móviles pequeños */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

    .cta-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .benefit-card,
    .stat-card,
    .pricing-card,
    .calculator-card,
    .cta-card {
        padding: 1.5rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.min-vh-100 {
    min-height: 100vh;
}

.py-8 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-8 {
    margin-bottom: 5rem;
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-secondary) 1;
}

/* ===================================
   ACCESSIBILITY & PERFORMANCE
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .hero-section,
    .floating-elements,
    .cta-section {
        display: none;
    }

    .stats-section,
    .benefits-section,
    .pricing-section {
        page-break-inside: avoid;
    }
}

/* ===================================
   DOCUMENTATION PAGE STYLES
   =================================== */

.documentation-hero {
    background: linear-gradient(135deg,
        #7f2191 0%,
        #51AEE5 25%,
        #3946a2 50%,
        #7f2191 75%,
        #51AEE5 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Elementos decorativos de fondo */
.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation: floatDiagonal 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -100px;
    animation: floatVertical 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 5%;
    animation: floatHorizontal 18s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 5%;
    animation: floatDiagonal 22s ease-in-out infinite reverse;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation: particle1 15s ease-in-out infinite;
}

.particle-2 {
    top: 30%;
    right: 25%;
    animation: particle2 18s ease-in-out infinite;
}

.particle-3 {
    bottom: 40%;
    left: 30%;
    animation: particle3 20s ease-in-out infinite;
}

.particle-4 {
    bottom: 20%;
    right: 35%;
    animation: particle4 16s ease-in-out infinite;
}

.particle-5 {
    top: 50%;
    left: 50%;
    animation: particle5 14s ease-in-out infinite;
}

@keyframes floatDiagonal {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, -40px) rotate(180deg); }
    75% { transform: translate(-30px, 20px) rotate(270deg); }
}

@keyframes floatVertical {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes floatHorizontal {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(25px); }
}

@keyframes particle1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    25% { transform: translate(100px, -50px); opacity: 1; }
    50% { transform: translate(-50px, -100px); opacity: 0.3; }
    75% { transform: translate(-100px, 50px); opacity: 0.8; }
}

@keyframes particle2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    33% { transform: translate(-80px, 60px); opacity: 0.9; }
    66% { transform: translate(60px, -80px); opacity: 0.6; }
}

@keyframes particle3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(120px, -80px); opacity: 0.3; }
}

@keyframes particle4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(-90px, 70px); opacity: 1; }
}

@keyframes particle5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(40px, -60px) scale(1.5); opacity: 1; }
    50% { transform: translate(-60px, -40px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(-40px, 60px) scale(1.2); opacity: 0.8; }
}

/* Grid pattern overlay */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Badge mejorado */
.hero-badge {
    position: relative;
    z-index: 3;
}

.badge-container {
    position: relative;
    display: inline-block;
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50px;
    animation: pulse 3s ease-in-out infinite;
}

.badge-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    color: #7f2191;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-text {
    background: linear-gradient(135deg, #7f2191, #51AEE5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-accent {
    width: 8px;
    height: 8px;
    background: #51AEE5;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Título mejorado */
.hero-title-wrapper {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.title-brand {
    background: linear-gradient(135deg, #fff 0%, #51AEE5 50%, #fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite, slideInRight 1s ease-out 0.5s both;
    position: relative;
}

.title-accent {
    display: inline-block;
    margin-left: 1rem;
    color: #51AEE5;
    animation: sparkle 2s ease-in-out infinite;
}

.title-underline {
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #51AEE5 50%, transparent 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.8s both;
    max-width: 200px;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.7; }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

/* Descripción mejorada */
.hero-description-wrapper {
    position: relative;
    z-index: 3;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.floating-icons {
    background: linear-gradient(135deg, #51AEE5, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.description-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Tabs mejoradas */
.documentation-tabs {
    position: relative;
    z-index: 3;
}

.tabs-header {
    margin-bottom: 2rem;
}

.tabs-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tabs-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.nav-pills-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.documentation-tabs .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.documentation-tabs .nav-pills .nav-link::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 ease;
}

.documentation-tabs .nav-pills .nav-link:hover::before {
    left: 100%;
}

.documentation-tabs .nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.documentation-tabs .nav-pills .nav-link.active {
    background: white;
    color: #7f2191;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(1.08);
    border-color: #51AEE5;
}

.tab-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.nav-link.active .tab-icon {
    background: #7f2191;
    color: white;
}

.tab-content {
    flex: 1;
}

.tab-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.tab-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-link.active .tab-subtitle {
    opacity: 0.7;
}

.tab-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-link:hover .tab-arrow,
.nav-link.active .tab-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Estadísticas mini */
.hero-stats {
    position: relative;
    z-index: 3;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-mini:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #51AEE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Animaciones de entrada */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-up[data-delay="0"] { animation-delay: 0s; }
.animate-fade-in-up[data-delay="200"] { animation-delay: 0.2s; }
.animate-fade-in-up[data-delay="400"] { animation-delay: 0.4s; }
.animate-fade-in-up[data-delay="600"] { animation-delay: 0.6s; }
.animate-fade-in-up[data-delay="800"] { animation-delay: 0.8s; }

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

/* Utilidades */
.min-vh-75 {
    min-height: 75vh;
}

.mb-6 {
    margin-bottom: 4rem;
}

.mt-6 {
    margin-top: 4rem;
}

/* ===================================
   DOCUMENTATION CONTENT STYLES
   =================================== */

.documentation-content {
    background: #f8f9fa;
}

.documentation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none;
}

.documentation-card .card-header {
    background: linear-gradient(135deg, #7f2191, #3946a2);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

.documentation-card .card-header h3 {
    margin: 0;
    font-weight: 700;
}

.documentation-card .card-body {
    padding: 2rem;
}

/* Module Cards */
.modules-grid {
    margin-top: 3rem;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


.module-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.module-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.module-features li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

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

/* Stats Grid for Documentation */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Feature Groups */
.feature-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.feature-group h6 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-group ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.feature-group li {
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.feature-group li strong {
    color: var(--dark-color);
}

/* Sidebar Styles */
.module-sidebar .quick-access,
.module-sidebar .benefits-box,
.module-sidebar .support-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.quick-link i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    width: 20px;
}

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

.benefits-list li,
.feature-list li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.benefits-list li:last-child,
.feature-list li:last-child {
    border-bottom: none;
}

/* Documentation CTA */
.documentation-cta {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 25px;
}

/* ===================================
   RESPONSIVE DESIGN FOR DOCUMENTATION
   =================================== */

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

    .documentation-tabs .nav-pills .nav-link {
        min-width: 250px;
        padding: 1.2rem 1.5rem;
    }
}

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

    .documentation-tabs .nav-pills {
        flex-direction: column;
        align-items: center;
    }

    .documentation-tabs .nav-pills .nav-link {
        margin: 0.25rem 0;
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }

    .floating-shape {
        display: none;
    }

    .hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .documentation-hero {
        min-height: auto;
        padding: 4rem 0;
    }

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

    .tabs-title {
        font-size: 1.5rem;
    }

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

    .documentation-tabs .nav-pills .nav-link {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .tab-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tab-title {
        font-size: 1rem;
    }

    .tab-subtitle {
        font-size: 0.8rem;
    }

    .tab-arrow {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats .row {
        gap: 0.5rem;
    }

    .stat-mini {
        padding: 1rem 0.5rem;
    }

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

    .stat-label {
        font-size: 0.8rem;
    }

    .description-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .module-card {
        margin-bottom: 1.5rem;
    }

    .cta-card {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

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

    .hero-description {
        font-size: 1.1rem;
    }

    .documentation-tabs .nav-pills .nav-link {
        min-width: auto;
        padding: 0.8rem;
    }

    .nav-pills-container {
        padding: 0.5rem;
    }

    .badge-content {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .floating-particle {
        display: none;
    }

    .hero-grid-overlay {
        background-size: 30px 30px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .hero-background-elements,
    .floating-shape,
    .floating-particle {
        display: none;
    }

    .documentation-hero {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        background-attachment: fixed;
    }
}

/* Module Cards */
.modules-grid {
    margin-top: 3rem;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.module-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.module-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.module-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.module-features li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

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

/* Stats Grid for Documentation */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Feature Groups */
.feature-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.feature-group h6 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-group ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.feature-group li {
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.feature-group li strong {
    color: var(--dark-color);
}

/* Sidebar Styles */
.module-sidebar .quick-access,
.module-sidebar .benefits-box,
.module-sidebar .support-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.quick-link i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    width: 20px;
}

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

.benefits-list li,
.feature-list li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.benefits-list li:last-child,
.feature-list li:last-child {
    border-bottom: none;
}

/* Documentation CTA */
.documentation-cta {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 25px;
}

/* Responsive Design for Documentation */
@media (max-width: 768px) {
    .documentation-tabs .nav-pills {
        flex-direction: column;
        align-items: center;
    }

    .documentation-tabs .nav-pills .nav-link {
        margin: 0.25rem 0;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    .module-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }

    .module-card h5 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .module-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .module-features {
        padding-left: 0;
        list-style: none;
    }

    .module-features li {
        padding: 0.4rem 0;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .module-features li i {
        margin-right: 0.5rem;
        color: #51AEE5;
        font-size: 0.8rem;
    }

    /* Optimización para tabs en móvil */
    .documentation-tabs .nav-pills {
        flex-direction: column;
        gap: 0.5rem;
    }

    .documentation-tabs .nav-link {
        padding: 1rem;
        font-size: 0.9rem;
        text-align: left;
    }

    .tab-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tab-title {
        font-size: 1rem;
    }

    .tab-subtitle {
        font-size: 0.8rem;
    }

    /* Optimización para feature groups en móvil */
    .feature-group ul {
        padding-left: 1rem;
    }

    .feature-group li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .feature-group li i {
        font-size: 0.8rem;
        margin-right: 0.4rem;
    }

    .feature-group h6 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .cta-card {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}
