/**
 * Solutions Common CSS
 * Estilos compartidos entre todas las páginas de solutions
 * Elimina la necesidad de estilos inline repetidos
 */

/* ==========================================================================
   Section Headers
   ========================================================================== */

.solutions-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.solutions-section-header.wide {
    max-width: 800px;
}

.solutions-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solutions-section-header p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Section header color themes */
.solutions-section-header.theme-dark h2 {
    color: #0f172a;
}

.solutions-section-header.theme-dark p {
    color: #64748b;
}

.solutions-section-header.theme-white h2 {
    color: #fff;
}

.solutions-section-header.theme-white p {
    color: rgba(255, 255, 255, 0.8);
}

.solutions-section-header.theme-library h2 {
    color: #064e3b;
}

.solutions-section-header.theme-library p {
    color: #065f46;
}

.solutions-section-header.theme-academic h2 {
    color: #0f172a;
}

.solutions-section-header.theme-academic p {
    color: #64748b;
}

.solutions-section-header.theme-moodle h2 {
    color: #083344;
}

.solutions-section-header.theme-moodle p {
    color: #0e7490;
}

.solutions-section-header.theme-attendance h2 {
    color: #4c0519;
}

.solutions-section-header.theme-attendance p {
    color: #881337;
}

.solutions-section-header.theme-classrooms h2 {
    color: #451a03;
}

.solutions-section-header.theme-classrooms p {
    color: #78350f;
}

.solutions-section-header.theme-records h2 {
    color: #0f172a;
}

.solutions-section-header.theme-records p {
    color: #64748b;
}

.solutions-section-header.theme-analytics h2 {
    color: #0f172a;
}

.solutions-section-header.theme-analytics p {
    color: #64748b;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.solutions-stats-section {
    background: white;
    padding: 4rem 0;
}

.solutions-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.solutions-stats-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */

.solutions-comparison-section {
    padding: 6rem 0;
}

/* Comparison section backgrounds by theme */
.solutions-comparison-section.bg-library {
    background-color: #ecfdf5;
}

.solutions-comparison-section.bg-academic {
    background-color: #f8fafc;
}

.solutions-comparison-section.bg-moodle {
    background-color: #ecfeff;
}

.solutions-comparison-section.bg-attendance {
    background-color: #fff1f2;
}

.solutions-comparison-section.bg-classrooms {
    background-color: #fffbeb;
}

.solutions-comparison-section.bg-records {
    background-color: #f8fafc;
}

.solutions-comparison-section.bg-analytics {
    background-color: #f1f5f9;
}

/* Comparison Cards */
.solutions-comparison-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.solutions-comparison-card.traditional {
    border: 1px solid #e2e8f0;
}

.solutions-comparison-card.codetech {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Card badges */
.solutions-comparison-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.solutions-comparison-badge.traditional {
    background: #ef4444;
}

.solutions-comparison-badge.traditional-gray {
    background: #64748b;
}

/* Theme-specific badge colors */
.solutions-comparison-badge.library {
    background: #059669;
}

.solutions-comparison-badge.academic {
    background: #6366f1;
}

.solutions-comparison-badge.moodle {
    background: #0891b2;
}

.solutions-comparison-badge.attendance {
    background: #e11d48;
}

.solutions-comparison-badge.classrooms {
    background: #d97706;
}

.solutions-comparison-badge.records {
    background: #0891b2;
}

/* Card titles */
.solutions-comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Comparison list */
.solutions-comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: red;
}

.solutions-comparison-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solutions-comparison-list li:last-child {
    margin-bottom: 0;
}

.solutions-comparison-list .icon-x {
    color: #ef4444;
}

.solutions-comparison-list .icon-check {
    color: #10b981;
}

/* Theme-specific check colors */
.solutions-comparison-list .icon-check.library {
    color: #059669;
}

.solutions-comparison-list .icon-check.academic {
    color: #6366f1;
}

.solutions-comparison-list .icon-check.moodle {
    color: #0891b2;
}

.solutions-comparison-list .icon-check.attendance {
    color: #e11d48;
}

.solutions-comparison-list .icon-check.classrooms {
    color: #d97706;
}

.solutions-comparison-list .icon-check.records {
    color: #0891b2;
}

/* Theme-specific card backgrounds */
.solutions-comparison-card.codetech.library {
    background: #d1fae5;
    border: 2px solid #34d399;
}

.solutions-comparison-card.codetech.academic {
    background: #e0e7ff;
    border: 2px solid #818cf8;
}

.solutions-comparison-card.codetech.moodle {
    background: #cffafe;
    border: 2px solid #22d3ee;
}

.solutions-comparison-card.codetech.attendance {
    background: #fff0f5;
    border: 2px solid #fda4af;
}

.solutions-comparison-card.codetech.classrooms {
    background: #fff7ed;
    border: 2px solid #fbbf24;
}

.solutions-comparison-card.codetech.records {
    background: #ecfeff;
    border: 2px solid #06b6d4;
}

/* Text colors by theme */
.solutions-comparison-card.library h3,
.solutions-comparison-card.library li {
    color: #064e3b;
}

.solutions-comparison-card.academic h3,
.solutions-comparison-card.academic li {
    color: #312e81;
}

.solutions-comparison-card.moodle h3,
.solutions-comparison-card.moodle li {
    color: #083344;
}

.solutions-comparison-card.attendance h3,
.solutions-comparison-card.attendance li {
    color: #4c0519;
}

.solutions-comparison-card.classrooms h3,
.solutions-comparison-card.classrooms li {
    color: #451a03;
}

.solutions-comparison-card.records h3,
.solutions-comparison-card.records li {
    color: #164e63;
}

/* ==========================================================================
   Features/Modules Section
   ========================================================================== */

.solutions-features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.solutions-features-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.solutions-features-header p {
    font-size: 1.1rem;
}

/* Feature header subtitle colors by theme */
.solutions-features-header.library p {
    color: #a7f3d0;
}

.solutions-features-header.academic p {
    color: #c7d2fe;
}

.solutions-features-header.moodle p {
    color: #a5f3fc;
}

.solutions-features-header.attendance p {
    color: #fecdd3;
}

.solutions-features-header.classrooms p {
    color: #fef3c7;
}

.solutions-features-header.records p {
    color: #cffafe;
}

.solutions-features-header.analytics p {
    color: #cffafe;
}

.solutions-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Integration Section
   ========================================================================== */

.solutions-integration-section {
    padding: 6rem 0;
    background: #fff;
}

.solutions-integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solutions-integration-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.solutions-integration-content p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.solutions-integration-list {
    list-style: none;
    padding: 0;
}

.solutions-integration-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.solutions-integration-icon {
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme-specific integration icon colors */
.solutions-integration-icon.library {
    background: #ecfdf5;
    color: #059669;
}

.solutions-integration-icon.academic {
    background: #eef2ff;
    color: #6366f1;
}

.solutions-integration-icon.moodle {
    background: #ecfeff;
    color: #0891b2;
}

.solutions-integration-icon.attendance {
    background: #fff1f2;
    color: #e11d48;
}

.solutions-integration-icon.classrooms {
    background: #fffbeb;
    color: #d97706;
}

.solutions-integration-icon.records {
    background: #ecfeff;
    color: #0891b2;
}

.solutions-integration-item h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.solutions-integration-item p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Integration diagram */
.solutions-integration-diagram {
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.solutions-integration-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.solutions-flow-item {
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    width: 120px;
}

.solutions-flow-item.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.solutions-flow-item.primary {
    background: white;
    width: 140px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.solutions-flow-item svg {
    margin-bottom: 0.5rem;
}

.solutions-flow-item .label {
    font-weight: 600;
    font-size: 0.9rem;
}

.solutions-flow-arrow svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.solutions-testimonials-section {
    padding: 4rem 0;
}

.solutions-testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-testimonials-header h2 {
    font-size: 2rem;
}

.solutions-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solutions-testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.solutions-testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.solutions-testimonial-text {
    color: #4b5563;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.solutions-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.solutions-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Avatar colors by theme */
.solutions-testimonial-avatar.library {
    background: #d1fae5;
    color: #059669;
}

.solutions-testimonial-avatar.attendance {
    background: #ffe4e6;
    color: #e11d48;
}

.solutions-testimonial-avatar.classrooms {
    background: #fef3c7;
    color: #d97706;
}

.solutions-testimonial-name {
    font-weight: 700;
    color: #111827;
}

.solutions-testimonial-role {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.solutions-cta-section {
    padding: 4rem 0 6rem;
}

.solutions-cta-card {
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.solutions-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.solutions-cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.solutions-cta-card p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.solutions-cta-card .btn-neon {
    position: relative;
    z-index: 1;
}

/* CTA backgrounds by theme */
.solutions-cta-card.library {
    background: #064e3b;
}

.solutions-cta-card.library p {
    color: #6ee7b7;
}

.solutions-cta-card.academic {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
}

.solutions-cta-card.academic p {
    color: #c7d2fe;
}

.solutions-cta-card.moodle {
    background: #083344;
}

.solutions-cta-card.moodle p {
    color: #a5f3fc;
}

.solutions-cta-card.attendance {
    background: #881337;
}

.solutions-cta-card.attendance p {
    color: #fda4af;
}

.solutions-cta-card.classrooms {
    background: #78350f;
}

.solutions-cta-card.classrooms p {
    color: #fef3c7;
}

.solutions-cta-card.records {
    background: #164e63;
}

.solutions-cta-card.records p {
    color: #cffafe;
}

.solutions-cta-card.analytics {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.solutions-cta-card.analytics p {
    color: #cbd5e1;
}

/* ==========================================================================
   Hero Badge
   ========================================================================== */

.solutions-hero-badge {
    margin-bottom: 1.5rem;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Badge colors by theme */
.solutions-hero-badge.library {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: #a7f3d0;
}

.solutions-hero-badge.academic {
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    color: #c7d2fe;
}

.solutions-hero-badge.moodle {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #a5f3fc;
}

.solutions-hero-badge.attendance {
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.2);
    color: #ffe4e6;
}

.solutions-hero-badge.classrooms {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fef3c7;
}

.solutions-hero-badge.records {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #cffafe;
}

.solutions-hero-badge.analytics {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

/* ==========================================================================
   Buttons Container
   ========================================================================== */

.solutions-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .solutions-integration-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .solutions-comparison-card.codetech {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .solutions-section-header h2,
    .solutions-features-header h2 {
        font-size: 2rem;
    }

    .solutions-cta-card {
        padding: 2.5rem 1.5rem;
    }

    .solutions-cta-card h2 {
        font-size: 1.8rem;
    }

    .solutions-flow-item {
        width: 100px;
    }

    .solutions-flow-item.primary {
        width: 120px;
    }
}