/* ==========================================================================
   BLOG - TRANSFORMACIÓN DIGITAL
   Estilos para la página de blog sobre beneficios de la digitalización
   ========================================================================== */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content * {
    color: white !important;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item * {
    color: white !important;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
    color: white !important;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
    color: white !important;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    color: white !important;
}

/* Main Content */
.blog-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-section {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-number {
    font-size: 4rem;
    font-weight: 800;
    color: #667eea;
    opacity: 0.3;
    line-height: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 25px;
    line-height: 1.8;
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: start;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.2);
}

.highlight-box i {
    font-size: 2rem;
    color: #92400e;
}

.highlight-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}

.highlight-box p {
    color: #78350f;
    margin: 0;
}

/* Chart Container */
.content-visual {
    position: sticky;
    top: 100px;
}

.chart-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    min-width: 140px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.bar-wrapper {
    flex: 1;
    background: #e2e8f0;
    border-radius: 10px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.secondary {
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
}

.bar-fill::after {
    content: attr(data-value);
    font-size: 0.9rem;
    font-weight: 700;
}

.chart-source {
    font-size: 0.85rem;
    color: #718096;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.benefit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.benefit-icon i {
    font-size: 2.2rem;
    color: white;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.benefit-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: auto;
    flex-grow: 1;
}

.benefit-stat {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* Process Timeline */
.digitalization-content {
    margin-top: 30px;
}

.intro-text {
    margin-bottom: 50px;
}

.process-timeline {
    position: relative;
    padding-left: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
}

.timeline-marker i {
    color: white;
    font-size: 1.2rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.timeline-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.timeline-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.timeline-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.timeline-features li {
    padding: 8px 0;
    font-size: 1rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-features i {
    color: #10b981;
    font-size: 1.1rem;
}

.timeline-investment {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 15px;
    border: 2px solid #667eea;
}

.timeline-savings {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 10px;
    margin-left: 10px;
}

/* Case Studies */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.case-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 35px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
}

.case-card.animate-in {
    opacity: 1;
    transform: scale(1);
}

.case-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.case-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    padding: 10px;
    background: #f8f9fa;
}

.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.case-category {
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 600;
    margin: 5px 0 0 0;
}

.case-challenge,
.case-solution,
.case-results {
    margin-bottom: 25px;
}

.case-challenge h4,
.case-solution h4,
.case-results h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-challenge h4 {
    color: #dc2626;
}

.case-challenge h4 i {
    color: #dc2626;
}

.case-solution h4 {
    color: #f59e0b;
}

.case-solution h4 i {
    color: #f59e0b;
}

.case-results h4 {
    color: #10b981;
}

.case-results h4 i {
    color: #10b981;
}

.case-challenge p,
.case-solution p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.metric {
    text-align: center;
    padding: 12px 8px;
    background: #f0fdf4;
    border-radius: 10px;
    min-width: 0;
    overflow: hidden;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    word-break: break-word;
}

.metric-label {
    font-size: 0.75rem;
    color: #4a5568;
    margin-top: 5px;
    line-height: 1.3;
    word-break: break-word;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
}

.cta-section * {
    color: white !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: white !important;
}

.cta-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    color: white !important;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white !important;
}

.cta-feature span {
    color: white !important;
}

.cta-feature i {
    color: #10b981 !important;
    font-size: 1.3rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary {
    background: white !important;
    color: #667eea !important;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.btn-primary * {
    color: #667eea !important;
}

.btn-primary:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover * {
    color: white !important;
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.cta-stat-item * {
    color: white !important;
}

.cta-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white !important;
}

.cta-stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: white !important;
}

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

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

    .content-section {
        padding: 40px 30px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-visual {
        position: static;
    }

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

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

    .case-studies {
        grid-template-columns: 1fr;
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2.2rem;
        color: white !important;
    }

    .cta-text {
        font-size: 1.1rem;
        color: white !important;
    }

    .cta-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-stat-number,
    .cta-stat-label {
        color: white !important;
    }

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

    .cta-feature {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }

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

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

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

    .bar-label {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .process-timeline {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -35px;
        width: 30px;
        height: 30px;
    }

    .timeline-marker i {
        font-size: 1rem;
    }

    .case-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metric-value {
        font-size: 1.8rem;
    }

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

    .cta-title {
        font-size: 1.8rem;
        color: white !important;
    }

    .cta-features {
        grid-template-columns: 1fr;
    }

    .cta-feature {
        justify-content: center;
        color: white !important;
    }

    .cta-stat-number {
        font-size: 2.5rem;
        color: white !important;
    }
}

/* Dark Theme Support */
body.dark-theme .blog-content {
    background: #0f172a;
}

body.dark-theme .content-section {
    background: #1e293b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .section-title,
body.dark-theme .lead-text {
    color: #f1f5f9;
}

body.dark-theme .content-text p {
    color: #cbd5e1;
}

body.dark-theme .section-number {
    color: #8b5cf6;
}

body.dark-theme .highlight-box {
    background: linear-gradient(135deg, #422006 0%, #713f12 100%);
    border-left: 4px solid #f59e0b;
}

body.dark-theme .highlight-box h4,
body.dark-theme .highlight-box p {
    color: #fef3c7 !important;
}

body.dark-theme .chart-container {
    background: #0f172a;
    border-color: #334155;
}

body.dark-theme .chart-title,
body.dark-theme .bar-label,
body.dark-theme .chart-source {
    color: #cbd5e1;
}

body.dark-theme .bar-wrapper {
    background: #334155;
}

body.dark-theme .benefit-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .benefit-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

body.dark-theme .benefit-title {
    color: #f1f5f9;
}

body.dark-theme .benefit-text {
    color: #cbd5e1;
}

body.dark-theme .timeline-content {
    background: #0f172a;
    border-left-color: #8b5cf6;
}

body.dark-theme .timeline-title {
    color: #f1f5f9;
}

body.dark-theme .timeline-description,
body.dark-theme .timeline-features li {
    color: #cbd5e1;
}

body.dark-theme .timeline-investment {
    background: #1e293b;
    border-color: #8b5cf6;
    color: #a78bfa;
}

body.dark-theme .timeline-savings {
    background: #064e3b;
    color: #6ee7b7;
}

body.dark-theme .case-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .case-card:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

body.dark-theme .case-title,
body.dark-theme .case-challenge h4,
body.dark-theme .case-solution h4,
body.dark-theme .case-results h4 {
    color: #f1f5f9;
}

body.dark-theme .case-challenge p,
body.dark-theme .case-solution p {
    color: #cbd5e1;
}

body.dark-theme .case-category {
    color: #a78bfa;
}

body.dark-theme .case-logo {
    background: #0f172a;
}

body.dark-theme .metric {
    background: #064e3b;
    border-color: #10b981;
}

body.dark-theme .metric-value,
body.dark-theme .metric-label {
    color: #6ee7b7;
}

/* Dark mode fixes for inline styled elements */
body.dark-theme h3[style*="color: #667eea"],
body.dark-theme h3[style*="color: #764ba2"],
body.dark-theme h3[style*="color: #10b981"] {
    color: #a78bfa !important;
}

body.dark-theme div[style*="background: #f9fafb"] {
    background: #1e293b !important;
}

body.dark-theme div[style*="background: white"] {
    background: #0f172a !important;
}

body.dark-theme p,
body.dark-theme li,
body.dark-theme small,
body.dark-theme div[style*="padding"] p {
    color: #cbd5e1 !important;
}

body.dark-theme strong[style*="color: #667eea"],
body.dark-theme strong[style*="color: #10b981"] {
    color: #a78bfa !important;
}

body.dark-theme div[style*="background: linear-gradient"] h3,
body.dark-theme div[style*="background: linear-gradient"] p {
    color: white !important;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
