/* =============================================
   8. MODULAR SOLUTIONS SECTION (Light Theme)
   ============================================= */
.solutions-suite {
    padding: var(--spacing-section) 0;
    background: #f8fafc;
    /* Very light cool grey overall background */
    background-image: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 25%);
    position: relative;
    /* Performance Fix: Defer layout calculation until visible */
    content-visibility: auto;
    contain-intrinsic-size: 1 auto 500px;
    /* Estimación de altura de contenido */
}

.solutions-suite .section-header {
    margin-bottom: 2.5rem;
}

/* Light theme overrides for this section */
.solutions-suite .section-title {
    color: #0f172a;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.solutions-suite .section-desc {
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
}

.solutions-suite .section-desc strong {
    color: #0f172a;
}

/* Title highlight for light backgrounds */
.title-highlight-light {
    background: linear-gradient(135deg, #0891b2, #7c3aed, #db2777);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

/* =============================================
   BENTO GRID SYSTEM (Innovative Layout)
   ============================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(320px, auto));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.bento-card {
    /* background set via specific classes */
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Slight white border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    group: bento;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
    z-index: 10;
}

/* Spans */
.span-2 {
    grid-column: span 2;
}

.span-1 {
    grid-column: span 1;
}

/* Internal Layout */
.bento-content {
    position: relative;
    z-index: 2;
}

.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bento-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.bento-desc {
    color: #475569;
    /* slate-600 - WCAG AA compliant contrast ratio 5.4:1 on light backgrounds */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Visual Decor in Background */
.bento-decor {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    opacity: 0.05;
    pointer-events: none;
    transition: all 0.5s ease;
}

.bento-card:hover .bento-decor {
    opacity: 0.1;
    transform: scale(1.1);
}

/* Action Link */
.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: fit-content;
}

.bento-link:hover {
    background: #0f172a;
    color: #ffffff;
}

.bento-link svg {
    width: 16px;
    height: 16px;
}

/* Feature Tags (for larger cards) */
.bento-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bento-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

/* Specific Colors - Soft Backgrounds */
.bento-cyan {
    background: #f0f9ff;
}

.bento-cyan .bento-icon-wrapper {
    background: rgba(34, 211, 238, 0.15);
    color: #0891b2;
}

.bento-emerald {
    background: #f0fdf4;
}

.bento-emerald .bento-icon-wrapper {
    background: rgba(52, 211, 153, 0.15);
    color: #059669;
}

.bento-violet {
    background: #f5f3ff;
}

.bento-violet .bento-icon-wrapper {
    background: rgba(167, 139, 250, 0.15);
    color: #7c3aed;
}

.bento-indigo {
    background: #eef2ff;
}

.bento-indigo .bento-icon-wrapper {
    background: rgba(129, 140, 248, 0.15);
    color: #4f46e5;
}

.bento-amber {
    background: #fffbeb;
}

.bento-amber .bento-icon-wrapper {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.bento-rose {
    background: #fff1f2;
}

.bento-rose .bento-icon-wrapper {
    background: rgba(251, 113, 133, 0.15);
    color: #e11d48;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}

/* Featured Module */
.module-featured {
    background: linear-gradient(135deg, #f0fdff 0%, #faf5ff 100%);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.15);
}

.module-featured:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.25);
}

/* Module Specific Hover Effects - Gradient Fills */
.module-cyan:hover {
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.5) 0%, #ffffff 100%);
}

.module-cyan::before {
    background: #06b6d4;
}

.module-emerald:hover {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.5) 0%, #ffffff 100%);
}

.module-emerald::before {
    background: #10b981;
}

.module-violet:hover {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.5) 0%, #ffffff 100%);
}

.module-violet::before {
    background: #8b5cf6;
}

.module-indigo:hover {
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.5) 0%, #ffffff 100%);
}

.module-indigo::before {
    background: #6366f1;
}

.module-amber:hover {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.5) 0%, #ffffff 100%);
}

.module-amber::before {
    background: #f59e0b;
}

.module-rose:hover {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.5) 0%, #ffffff 100%);
}

.module-rose::before {
    background: #f43f5e;
}

/* Module Color Variants */
.module-cyan {
    /* Base style handled by module-card */
}

.module-cyan .module-icon svg {
    stroke: #06b6d4;
    filter: drop-shadow(0 4px 6px rgba(6, 182, 212, 0.3));
}

.module-cyan .module-icon svg {
    stroke: #0891b2;
}

.module-cyan h3 {
    color: #0e7490;
}

.module-emerald {
    /* Base style handled */
}

.module-emerald .module-icon svg {
    stroke: #10b981;
    filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.3));
}

.module-emerald .module-icon svg {
    stroke: #059669;
}

.module-emerald h3 {
    color: #047857;
}

.module-violet {
    /* Base style handled */
}

.module-violet .module-icon svg {
    stroke: #8b5cf6;
    filter: drop-shadow(0 4px 6px rgba(139, 92, 246, 0.3));
}

.module-violet .module-icon svg {
    stroke: #7c3aed;
}

.module-violet h3 {
    color: #6d28d9;
}

.module-indigo {
    /* Base style handled */
}

.module-indigo .module-icon svg {
    stroke: #6366f1;
    filter: drop-shadow(0 4px 6px rgba(99, 102, 241, 0.3));
}

.module-indigo .module-icon svg {
    stroke: #4f46e5;
}

.module-indigo h3 {
    color: #4338ca;
}

.module-amber {
    /* Base style handled */
}

.module-amber .module-icon svg {
    stroke: #f59e0b;
    filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.3));
}

.module-amber .module-icon svg {
    stroke: #d97706;
}

.module-amber h3 {
    color: #b45309;
}

.module-rose {
    /* Base style handled */
}

.module-rose .module-icon svg {
    stroke: #f43f5e;
    filter: drop-shadow(0 4px 6px rgba(244, 63, 94, 0.3));
}

.module-rose .module-icon svg {
    stroke: #e11d48;
}

.module-rose h3 {
    color: #be123c;
}

/* Module Sizes */
.module-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 580px;
}

.module-tall {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 580px;
}

.module-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.module-square {
    grid-column: span 1;
    grid-row: span 1;
}

/* Module Content */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.module-icon-large {
    font-size: 4rem;
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--accent-secondary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-premium {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-top: auto;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    height: 18px;
}

.module-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
}

.module-link:hover svg {
    transform: translateX(4px);
}

/* Module Specific Link Colors - High Contrast (WCAG AA Compliant) */
/* Module Specific Link Hover Colors - Dynamic Mix */
.module-cyan:hover {
    background: linear-gradient(145deg, #ffffff 0%, #ecfeff 100%);
    border-color: #a5f3fc;
}

.module-emerald:hover {
    background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
}

.module-violet:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    border-color: #ddd6fe;
}

.module-indigo:hover {
    background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
    border-color: #c7d2fe;
}

.module-amber:hover {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
}

.module-rose:hover {
    background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%);
    border-color: #fecdd3;
}

.module-cyan .module-link {
    color: #0891b2;
}

.module-emerald .module-link {
    color: #059669;
}

.module-violet .module-link {
    color: #7c3aed;
}

.module-indigo .module-link {
    color: #4f46e5;
}

.module-amber .module-link {
    color: #d97706;
}

.module-rose .module-link {
    color: #e11d48;
}

.module-description {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Module Features */
.module-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.feature-icon {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Module List */
.module-list {
    list-style: none;
    margin: 1rem 0;
    flex-grow: 1;
}

.module-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #64748b;
    font-size: 0.95rem;
}

.module-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.module-list.compact li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

/* Module Tech Tags */
.module-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 210, 255, 0.1);
    color: #0891b2;
    border-radius: 4px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

/* Module Stats */
.module-stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(168, 85, 247, 0.08));
    border-radius: 12px;
    margin-top: auto;
    border: 1px solid rgba(0, 210, 255, 0.15);
}

.module-stat.small {
    padding: 1rem;
}

.module-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0891b2;
    font-family: var(--font-code);
    line-height: 1;
}

.module-stat.small .stat-value {
    font-size: 2rem;
}

.module-stat .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Module Highlight */
.module-highlight {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 8px;
    margin: 1rem 0;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0891b2;
    font-family: var(--font-code);
}

.highlight-text {
    font-size: 0.9rem;
    color: #64748b;
}

/* Mini Chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 80px;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-purple));
    border-radius: 4px 4px 0 0;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.security-badge {
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Platform Icons */
.platform-icons {
    display: flex;
    justify-content: space-around;
    font-size: 2rem;
    margin-top: 1rem;
}

/* Integration CTA */
.integration-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.cta-content p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Solutions More CTA */
.solutions-more-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.btn-view-solutions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), #06b6d4);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    color: #0f172a;
}

.btn-view-solutions:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.btn-view-solutions svg {
    transition: transform 0.3s ease;
}

.btn-view-solutions:hover svg {
    transform: translateX(5px);
}

/* Quoter CTA - Colorful Light Theme */
.solutions-suite .quoter-cta {
    margin-top: 5rem;
    padding: 4rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(145deg, #ecfeff 0%, #f0fdfa 25%, #f5f3ff 50%, #fdf4ff 75%, #fce7f3 100%);
    border: 2px solid #a78bfa;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
    position: relative;
    overflow: hidden;
}

.solutions-suite .quoter-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(236, 72, 153, 0.1) 100%);
    pointer-events: none;
}

.quoter-cta-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.quoter-cta-icon {
    flex-shrink: 0;
}

.solutions-suite .quoter-cta .quoter-cta-icon svg {
    stroke: #7c3aed;
}

.solutions-suite .quoter-cta-text h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.solutions-suite .quoter-cta-text p {
    color: #64748b;
    font-size: 1rem;
    max-width: 500px;
}

/* Module SVG Icons - Light Theme */
.solutions-suite .module-icon svg,
.solutions-suite .module-icon-large svg {
    stroke: #0891b2;
}

.solutions-suite .module-icon-large {
    margin-bottom: 1rem;
}

.solutions-suite .module-icon-large svg {
    width: 60px;
    margin-bottom: 0.5rem;
}

.quoter-cta-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
}

.btn-quoter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-quoter:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.4);
}

.btn-quoter .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-quoter:hover .btn-arrow {
    transform: translateX(5px);
}

/* Quoter Section CTA Button */
.btn-quoter-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    color: #0f172a;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
    width: fit-content;
    margin: 1rem 0;
}

.btn-quoter-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.5);
    color: #ffffff;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
}

.btn-quoter-cta svg {
    transition: transform 0.3s ease;
}

.btn-quoter-cta:hover svg {
    transform: translateX(4px);
}