/* ==========================================================================
   custom-css (gráficos, rankings, módulos de artículos)
   ========================================================================== */
    .echarts-container {
        width: 100%;
        height: 400px;
        margin: 20px 0;
    }
    
    .echarts-table {
        width: 100%;
        min-height: 300px;
        position: relative;
    }
    
    .chart-title {
        font-size: 18px;
        font-weight: bold;
        color: var(--eb-navy);
        margin-bottom: 15px;
        text-align: center;
    }
    
    .chart-wrapper {
        background: #FFFFFF;
        border-radius: var(--eb-radius);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .tooltip-custom {
        background: var(--eb-navy);
        color: #FFFFFF;
        border: none;
        border-radius: var(--eb-radius);
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    /* Ranking Table Styles */
    .ranking-wrapper {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        background: #fff;
        border-radius: var(--eb-radius);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .ranking-title {
        color: var(--eb-navy);
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 3px solid var(--eb-accent);
    }

    .ranking-table-container {
        overflow-x: auto;
    }

    .ranking-table {
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
    }

    .ranking-table th {
        background-color: var(--eb-navy);
        color: white;
        padding: 15px 10px;
        text-align: left;
        font-weight: bold;
        font-size: 16px;
    }


    .ranking-table th.rank-column {
        width: 80px;
        text-align: left;
    }


    .ranking-table th.company-column {
        width: 50%;
    }

    .ranking-table th.category-column {
        width: 30%;
    }

    .ranking-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .rank-row {
        transition: background-color 0.2s ease;
    }

    .rank-row:hover {
        background-color: #f5f5f5;
    }

    .rank-number {
        font-weight: bold;
        font-size: 18px;
        color: var(--eb-navy);
        text-align: left;
    }

    .company-name {
        font-weight: bold;
        font-size: 16px;
        color: var(--eb-navy);
    }

    .company-category {
        color: #666;
        font-size: 14px;
    }

    .rank-1 .rank-number {
        color: var(--eb-accent);
        font-size: 20px;
    }

    .rank-1 .company-name {
        color: var(--eb-accent);
    }

    .rank-2 .rank-number,
    .rank-3 .rank-number {
        color: var(--eb-navy);
        font-size: 19px;
    }

    /* Performance Charts - MAPFRE */
    .mapfre-performance-wrapper {
        max-width: 100%;
        margin: 2rem auto;
        padding: 1.5rem;
        background: #ffffff;
        border-radius: var(--eb-radius);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .performance-header {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--eb-navy);
    }

    .performance-title {
        font-size: 1.8rem;
        color: var(--eb-navy);
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .performance-subtitle {
        color: #666;
        font-size: 1rem;
        margin: 0;
    }

    .progress-visualization {
        margin: 2rem 0;
    }

    .year-comparison {
        display: flex;
        gap: 2rem;
        justify-content: center;
        align-items: stretch;
    }

    .year-block {
        flex: 1;
        max-width: 300px;
        padding: 1.5rem;
        border-radius: var(--eb-radius);
        text-align: center;
    }

    .year-block.achieved {
        background: linear-gradient(135deg, var(--eb-navy) 0%, var(--eb-navy-900) 100%);
        color: white;
    }

    .year-block.target {
        background: linear-gradient(135deg, var(--eb-accent) 0%, var(--eb-accent-600) 100%);
        color: white;
    }

    .year-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .year-label {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .year-status {
        font-size: 0.9rem;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .amount-display {
        margin-bottom: 1rem;
    }

    .amount-value {
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 0.25rem;
    }

    .amount-label {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .mapfre-progress-bar {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: var(--eb-radius);
        overflow: hidden;
    }

    .mapfre-progress-fill {
        height: 100%;
        border-radius: var(--eb-radius);
        transition: width 0.3s ease;
    }

    .achieved-fill {
        background: #ffffff;
    }

    .target-fill {
        background: #ffffff;
    }

    .metrics-container {
        margin: 2rem 0;
    }

    .metrics-table-container {
        overflow-x: auto;
    }

    .metrics-table {
        width: 100%;
        border-collapse: collapse;
        background: #ffffff;
        border-radius: var(--eb-radius);
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Cards */
    .metrics-cards {
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .metric-card {
        background: #ffffff;
        border-radius: var(--eb-radius);
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-left: 4px solid var(--eb-navy);
    }

    .metric-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .metric-card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--eb-navy);
        margin: 0;
    }

    .metric-card-growth {
        font-size: 0.9rem;
        font-weight: 600;
        color: #10b981;
        background: #f0fdf4;
        padding: 0.25rem 0.5rem;
        border-radius: var(--eb-radius);
    }

    .metric-card-values {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .metric-card-value {
        flex: 1;
        text-align: center;
    }

    .value-label {
        display: block;
        font-size: 0.75rem;
        color: #666;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .value-amount {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .value-amount.achieved {
        color: var(--eb-navy);
    }

    .value-amount.target {
        color: var(--eb-accent);
    }

    .metric-card-arrow {
        font-size: 1.2rem;
        color: #666;
        font-weight: bold;
    }

    /* Responsive Image Container */
    .responsive-image-container {
        width: 100%;
        margin: 1rem 0;
        text-align: center;
    }

    .responsive-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: var(--eb-radius);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: block;
    }

    /* Responsive Controls */
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .metrics-table th {
        background: var(--eb-navy);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .metrics-table td {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .metrics-table tr:last-child td {
        border-bottom: none;
    }

    .metric-name {
        font-weight: 600;
        color: var(--eb-navy);
    }

    .metric-value.achieved {
        color: var(--eb-navy);
        font-weight: 600;
    }

    .metric-value.target {
        color: var(--eb-accent);
        font-weight: 600;
    }

    .metric-growth {
        color: #10b981;
        font-weight: 600;
    }

    .impact-highlights {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }

    .highlight-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: #f8fafc;
        border-radius: var(--eb-radius);
        border-left: 4px solid var(--eb-accent);
    }

    .highlight-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .highlight-content h4 {
        margin: 0 0 0.25rem 0;
        color: var(--eb-navy);
        font-size: 0.9rem;
        font-weight: 600;
    }

    .highlight-content p {
        margin: 0;
        color: #666;
        font-size: 0.8rem;
    }

    @media (max-width: 768px) {
        .ranking-wrapper {
            margin: 10px;
            padding: 15px;
        }
        
        .ranking-title {
            font-size: 20px;
        }
        
        .ranking-table th,
        .ranking-table td {
            padding: 10px 8px;
        }
        
        .company-name {
            font-size: 14px;
        }
        
        .company-category {
            font-size: 12px;
        }

        /* Performance Charts Mobile */
        .mapfre-performance-wrapper {
            padding: 1rem;
        }
        
        .performance-title {
            font-size: 1.4rem;
        }
        
        .year-comparison {
            flex-direction: column;
            gap: 1rem;
        }
        
        .year-block {
            max-width: none;
        }
        
        .amount-value {
            font-size: 2rem;
        }
        
        .metrics-table {
            font-size: 0.9rem;
        }
        
        .metrics-table th,
        .metrics-table td {
            padding: 0.75rem;
        }
        
        .highlight-item {
            flex-direction: column;
            text-align: center;
        }

        /* Mobile Responsive - Switch to Cards */
        .desktop-only {
            display: none;
        }
        
        .mobile-only {
            display: flex;
        }
    }

    /* OEA Table Styles */
    .oea-table-wrapper {
        max-width: 100%;
        margin: 2rem auto;
        padding: 0;
        background: #ffffff;
        border-radius: var(--eb-radius);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .oea-table-container {
        padding: 2rem;
    }

    .oea-table-title {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--eb-navy);
    }

    .oea-title-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .oea-logo {
        height: 60px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .oea-title-text {
        text-align: left;
    }

    .oea-table-title h3 {
        color: var(--eb-navy);
        font-size: 1.8rem;
        margin: 0 0 0.5rem 0;
        font-weight: 700;
    }

    .oea-table-subtitle {
        color: #666;
        font-size: 1rem;
        margin: 0;
        font-weight: 400;
    }

    .oea-table-content {
        overflow-x: auto;
    }

    .oea-assembly-table {
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
        margin-top: 1rem;
    }

    .oea-assembly-table th {
        background: var(--eb-navy);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .oea-assembly-table td {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: top;
    }

    .oea-assembly-table tr:last-child td {
        border-bottom: none;
    }

    .assembly-completed {
        background: #f8fafc;
    }

    .assembly-upcoming {
        background: #fff5f5;
        border-left: 4px solid var(--eb-accent);
    }

    .assembly-edition {
        font-weight: 600;
        color: var(--eb-navy);
        font-size: 1rem;
    }

    .assembly-location strong {
        color: var(--eb-navy);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
    }

    .location-detail {
        color: #666;
        font-size: 0.85rem;
        font-style: italic;
    }

    .assembly-date strong {
        color: var(--eb-accent);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
    }

    .date-detail {
        color: #666;
        font-size: 0.85rem;
    }

    .assembly-topics {
        color: #555;
        line-height: 1.4;
        font-size: 0.9rem;
    }

    .oea-assembly-table tr:hover {
        background: #f1f5f9;
    }

    .assembly-upcoming:hover {
        background: #fef2f2;
    }

    @media (max-width: 768px) {
        .oea-table-container {
            padding: 1rem;
        }
        
        .oea-title-content {
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .oea-logo {
            height: 45px;
        }
        
        .oea-title-text {
            text-align: center;
        }
        
        .oea-table-title h3 {
            font-size: 1.4rem;
        }
        
        .oea-assembly-table {
            font-size: 0.85rem;
        }
        
        .oea-assembly-table th,
        .oea-assembly-table td {
            padding: 0.75rem 0.5rem;
        }
        
        .assembly-topics {
            font-size: 0.8rem;
        }

        /* Hurricane Predictions Mobile */
        .hurricane-predictions-wrapper {
            padding: 1rem;
        }
        
        .hurricane-predictions-title {
            font-size: 1.4rem;
        }
        
        .hurricane-table {
            font-size: 0.85rem;
        }
        
        .hurricane-table th,
        .hurricane-table td {
            padding: 0.75rem 0.5rem;
        }
        
        .source-description {
            font-size: 0.7rem;
        }
        
        .prob-description {
            font-size: 0.75rem;
        }
        
        .trend-indicator {
            font-size: 1.2rem;
        }
    }

    /* Hurricane Predictions Styles */
    .hurricane-predictions-wrapper {
        max-width: 100%;
        margin: 2rem auto;
        padding: 2rem;
        background: #ffffff;
        border-radius: var(--eb-radius);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-family: Arial, sans-serif;
    }

    .hurricane-predictions-title {
        color: var(--eb-navy);
        font-size: 1.8rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--eb-navy);
    }

    .hurricane-comparison-table {
        overflow-x: auto;
        margin-bottom: 2rem;
    }

    .hurricane-table {
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
        border-radius: var(--eb-radius);
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .hurricane-table th {
        background: var(--eb-navy);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .hurricane-table td {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: top;
    }

    .hurricane-table tr:last-child td {
        border-bottom: none;
    }

    .hurricane-table tr:hover {
        background: #f8fafc;
    }

    .noaa-row {
        background: #f8fafc;
        border-left: 4px solid var(--eb-navy);
    }

    .csu-row {
        background: #ffffff;
        border-left: 4px solid var(--eb-accent);
    }

    .average-row {
        background: #f5f5f5;
        border-left: 4px solid #666;
    }

    .source-name strong {
        color: var(--eb-navy);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
        font-size: 1rem;
    }

    .source-description {
        color: #666;
        font-size: 0.85rem;
        font-style: italic;
    }

    .storm-count,
    .hurricane-count,
    .major-hurricane-count {
        font-weight: 600;
        color: var(--eb-navy);
        font-size: 1.1rem;
        text-align: center;
    }

    .probability {
        text-align: center;
    }

    .percentage {
        display: block;
        font-weight: 600;
        color: var(--eb-accent);
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .prob-description {
        color: #666;
        font-size: 0.8rem;
        font-style: italic;
    }

    .hurricane-context {
        margin-top: 1.5rem;
        padding: 1rem;
        background: #f8fafc;
        border-radius: var(--eb-radius);
        border-left: 4px solid var(--eb-accent);
    }

    .context-highlight {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .trend-indicator {
        font-size: 1.5rem;
        flex-shrink: 0;
        margin-top: 0.25rem;
    }

    .context-highlight p {
        margin: 0;
        color: var(--eb-navy);
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .context-highlight strong {
        color: var(--eb-navy);
        font-weight: 600;
    }

    /* ICCP - Índice de Confianza del Consumidor Panameño */
    #iccp-container-2025 {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .iccp-chart-wrapper,
    .iccp-table-wrapper {
        background: #FFFFFF;
        border-radius: var(--eb-radius);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 25px;
        margin-bottom: 30px;
    }

    .iccp-chart-title,
    .iccp-table-title {
        font-size: 20px;
        font-weight: bold;
        color: var(--eb-navy);
        margin-bottom: 20px;
        text-align: center;
        border-bottom: 2px solid #F5F5F5;
        padding-bottom: 15px;
    }

    .iccp-indicators-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }

    .iccp-indicators-table thead {
        background-color: var(--eb-navy);
        color: #FFFFFF;
    }

    .iccp-indicators-table th {
        padding: 20px 15px;
        text-align: left;
        font-weight: 600;
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .iccp-indicators-table tbody tr {
        border-bottom: 2px solid #F5F5F5;
        transition: background-color 0.3s ease;
    }

    .iccp-indicators-table tbody tr:hover {
        background-color: #F5F5F5;
    }

    .iccp-indicators-table td {
        padding: 20px 15px;
        font-size: 16px;
        color: var(--eb-navy);
    }

    .iccp-indicators-table td:first-child {
        font-weight: 600;
        color: var(--eb-navy);
        font-size: 16px;
    }

    .iccp-indicators-table td:nth-child(2),
    .iccp-indicators-table td:nth-child(3) {
        text-align: center;
        font-weight: 600;
        font-size: 18px;
    }

    .iccp-negative {
        color: var(--eb-accent);
        font-weight: 700;
        text-align: center;
        font-size: 18px;
    }

    .iccp-neutral {
        color: #666666;
        font-weight: 700;
        text-align: center;
        font-size: 18px;
    }

    .iccp-trend-down,
    .iccp-trend-up,
    .iccp-trend-stable {
        text-align: center;
        font-size: 20px;
        font-weight: bold;
    }

    .iccp-trend-down {
        color: var(--eb-accent);
    }

    .iccp-trend-up {
        color: #4CAF50;
    }

    .iccp-trend-stable {
        color: #666666;
    }

    /* Responsive para ICCP */
    @media (max-width: 768px) {
        #iccp-container-2025 {
            padding: 10px;
        }

        .iccp-chart-wrapper,
        .iccp-table-wrapper {
            padding: 15px;
            margin-bottom: 20px;
        }

        .iccp-chart-title,
        .iccp-table-title {
            font-size: 16px;
            margin-bottom: 15px;
            padding-bottom: 10px;
        }

        .iccp-indicators-table {
            font-size: 12px;
        }

        .iccp-indicators-table th,
        .iccp-indicators-table td {
            padding: 10px 5px;
            font-size: 12px;
        }

        .iccp-trend-down,
        .iccp-trend-up,
        .iccp-trend-stable {
            font-size: 16px;
        }

        #iccp-area-chart,
        #iccp-bar-chart {
            height: 300px !important;
        }
    }

    /* Merco Empresas 2025 - Tabla Comparativa */
    .merco-empresas-wrapper {
        max-width: 100%;
        margin: 2rem auto;
        padding: 0;
        background: #FFFFFF;
        border-radius: var(--eb-radius);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        font-family: Arial, sans-serif;
    }

    .merco-empresas-title {
        color: var(--eb-navy);
        font-size: 1.8rem;
        font-weight: 700;
        text-align: center;
        margin: 0;
        padding: 2rem 2rem 1.5rem 2rem;
        border-bottom: 2px solid var(--eb-navy);
    }

    .merco-empresas-table-container {
        overflow-x: auto;
        padding: 2rem;
    }

    .merco-empresas-table {
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
    }

    .merco-empresas-table thead {
        background-color: #F5F5F5;
        border-bottom: 2px solid var(--eb-navy);
    }

    .merco-empresas-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 1rem;
        color: var(--eb-navy);
        text-transform: capitalize;
    }

    .merco-empresas-table th.col-2024,
    .merco-empresas-table th.col-2025,
    .merco-empresas-table th.col-puntuacion {
        text-align: center;
    }

    .merco-empresas-table tbody tr {
        border-bottom: 1px dotted #d0d0d0;
        transition: background-color 0.2s ease;
    }

    .merco-empresas-table tbody tr:hover {
        background-color: #f8f8f8;
    }

    .merco-empresas-table tbody tr:last-child {
        border-bottom: 2px solid var(--eb-navy);
    }

    .merco-empresas-table td {
        padding: 1.2rem 1rem;
        font-size: 0.95rem;
        color: var(--eb-navy);
    }

    .merco-empresas-table td.pos-2024 {
        text-align: center;
        font-weight: 600;
        color: #666;
    }

    .merco-empresas-table td.pos-2025 {
        text-align: center;
    }

    .merco-empresas-table td.empresa-name {
        font-weight: 700;
        color: var(--eb-navy);
        font-size: 1rem;
    }

    .merco-empresas-table td.puntuacion {
        text-align: center;
        font-weight: 600;
        color: var(--eb-navy);
        font-size: 1.05rem;
    }

    /* Position Indicators */
    .position-indicator {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-weight: 700;
        font-size: 0.95rem;
        position: relative;
        color: #FFFFFF;
    }

    .position-indicator.neutral {
        background-color: #9ca3af;
    }

    .position-indicator.up {
        background-color: #84cc16;
        position: relative;
    }

    .position-indicator.up::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 12px solid #84cc16;
    }

    .position-indicator.down {
        background-color: #ef4444;
        position: relative;
    }

    .position-indicator.down::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 12px solid #ef4444;
    }

    /* Responsive Merco Empresas */
    @media (max-width: 768px) {
        .merco-empresas-title {
            font-size: 1.4rem;
            padding: 1.5rem 1rem 1rem 1rem;
        }

        .merco-empresas-table-container {
            padding: 1rem;
        }

        .merco-empresas-table {
            font-size: 0.85rem;
        }

        .merco-empresas-table th,
        .merco-empresas-table td {
            padding: 0.75rem 0.5rem;
        }

        .merco-empresas-table th {
            font-size: 0.85rem;
        }

        .merco-empresas-table td.empresa-name {
            font-size: 0.85rem;
        }

        .merco-empresas-table td.puntuacion {
            font-size: 0.9rem;
        }

        .position-indicator {
            width: 38px;
            height: 38px;
            font-size: 0.8rem;
        }

        .position-indicator.up::after,
        .position-indicator.down::after {
            right: -8px;
            border-left-width: 6px;
            border-right-width: 6px;
            border-bottom-width: 10px;
            border-top-width: 10px;
        }
    }

    /* ==========================================================================
       Creditos editoriales (colaboradores / fotografia)
       .eb-credito  -> byline compacto en tarjetas (banner y listados)
       .eb-creditos -> bloque de creditos en la nota ampliada
       ========================================================================== */

    .eb-credito {
        float: left;
        background: none;
        border: 0;
        border-radius: 0;
        overflow: visible;
        font-size: 11px;
        font-weight: 500;
        margin-top: 6px;
    }

    /* Banner y tarjetas con imagen de fondo: texto sobre la foto */
    .grid-post-media_title .eb-credito {
        color: #FFFFFF;
        margin-left: 14px;
        position: relative;
    }

    .grid-post-media_title .eb-credito:before {
        content: '';
        position: absolute;
        left: -8px;
        top: 6px;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
    }

    .grid-post-media_title .eb-credito a {
        color: #FFFFFF;
        text-decoration: underline;
    }

    .grid-post-media_title .eb-credito a:hover {
        color: var(--eb-accent);
    }

    /* Tarjeta de listado: debajo de la fecha, sobre fondo claro */
    .list-post-content .eb-credito {
        width: 100%;
        text-align: left;
        color: #666666;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        margin: -7px 0 10px 0;
    }

    .list-post-content .eb-credito a {
        color: #666666;
    }

    .list-post-content .eb-credito a:hover {
        color: var(--eb-accent);
    }

    /* Nota ampliada */
    .eb-creditos {
        display: block;
        clear: both;
        width: 100%;
        text-align: left;
        font-size: 15px;
        color: var(--eb-navy);
        /* mismo sangrado lateral que los <p> del cuerpo de la nota */
        padding: 0 20px;
        margin-bottom: 10px;
    }

    /* Fuente de la nota: misma alineacion que los creditos y el cuerpo */
    .eb-fuente {
        display: block;
        clear: both;
        width: 100%;
        text-align: left;
        font-size: 15px;
        padding: 0 20px;
        margin-bottom: 10px;
    }

    /* Instancia superior: separada del cuerpo por una linea */
    .eb-creditos--top {
        margin-top: 15px;
        border-bottom: 1px solid #EEEEEE;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }

    .eb-creditos a {
        color: var(--eb-accent);
    }

    .eb-creditos a:hover {
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        .grid-post-media_title .eb-credito {
            font-size: 10px;
        }

        .eb-creditos {
            font-size: 14px;
        }
    }

    /* ==========================================================================
       Anuncios (Bunny Stream) - ratio 4:5, sin player visible
       ========================================================================== */

    .ad-container {
        position: relative;
        width: 90%;
        max-width: 600px;
        margin: 50px auto;
        background: #F5F5F5;
        border-radius: var(--eb-radius);
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .ad-container--sidebar {
        max-width: 400px;
        margin-top: 100px;
    }

    .ad-loading {
        padding: 20px;
        text-align: center;
        color: #666666;
    }

    /* 3:4 -> alto = ancho * 4/3 = 133.333% */
    .ad-video-container {
        position: relative;
        width: 100%;
        padding-bottom: 133.333%;
        overflow: hidden;
        cursor: pointer;
        background: #000000;
    }

    /* pointer-events:none deja pasar el raton a la capa de arriba, asi el
       player de Bunny nunca recibe el clic ni muestra sus controles */
    .ad-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        object-fit: cover;
        pointer-events: none;
    }

    .ad-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: rgba(0, 0, 0, 0);
        transition: background 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        font-size: 18px;
        opacity: 0;
    }

    .ad-video-container:hover .ad-overlay {
        background: rgba(0, 0, 0, 0.3);
        opacity: 1;
    }

    @media (max-width: 768px) {
        .ad-container,
        .ad-container--sidebar {
            max-width: 768px;
        }
    }

    @media (max-width: 480px) {
        .ad-container,
        .ad-container--sidebar {
            max-width: 480px;
        }
    }

    /* Visibilidad por dispositivo */
    [data-mobile-only] {
        display: none;
    }

    [data-desktop-only] {
        display: block;
    }

    @media (max-width: 768px) {
        [data-mobile-only] {
            display: block;
        }

        [data-desktop-only] {
            display: none;
        }
    }


/* ==========================================================================
   sidebar (widget de eventos)
   ========================================================================== */
/* Events Widget Styles (Sidebar) */
.eventos-widget-list {
    padding: 0;
}

.event-widget-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

.event-widget-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.evento-widget-media {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
}

.evento-widget-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--eb-radius);
}

.evento-widget-date {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(45, 56, 86, 0.9);
    color: #FFFFFF;
    padding: 4px 6px;
    border-radius: var(--eb-radius);
    text-align: center;
    line-height: 1;
}

.evento-day {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.evento-month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 2px;
}

.evento-widget-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    padding: 2px 6px;
    border-radius: var(--eb-radius-pill);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.evento-widget-free {
    background: var(--eb-navy);
    color: #FFFFFF;
}

.evento-widget-paid {
    background: var(--eb-accent);
    color: #FFFFFF;
}

.evento-widget-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.evento-widget-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
}


.evento-widget-content h4 a {
    color: var(--eb-navy);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-widget-content h4 a:hover {
    color: var(--eb-accent);
}

.evento-widget-category {
    display: inline-block;
    background: #F5F5F5;
    color: var(--eb-navy);
    padding: 2px 8px;
    border-radius: var(--eb-radius-pill);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.evento-widget-location {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.evento-widget-location i {
    color: var(--eb-accent);
    margin-right: 4px;
    width: 10px;
}

.eventos-widget-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.eventos-ver-todos {
    display: inline-block;
    background: var(--eb-navy);
    color: #FFFFFF !important;
    padding: 8px 20px;
    border-radius: var(--eb-radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.eventos-ver-todos:hover {
    background: var(--eb-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(250, 61, 110, 0.3);
}

@media (max-width: 768px) {
    .evento-widget-media {
        width: 70px;
        height: 50px;
    }

    .evento-widget-content h4 {
        font-size: 13px;
    }

    .evento-widget-date {
        padding: 3px 5px;
    }

    .evento-day {
        font-size: 11px;
    }

    .evento-month {
        font-size: 9px;
    }

    .eventos-ver-todos {
        padding: 6px 16px;
        font-size: 11px;
    }
}


/* ==========================================================================
   footer (modal enviar nota, newsletter)
   ========================================================================== */
/* Footer logo styles */
.footer-logo-large img {
    filter: brightness(0) invert(1); /* Makes logo white */
    width: 200px !important; /* Makes logo larger */
    height: auto !important;
    max-width: none !important;
}

/* Enviar nota modal styles */
.enviar-nota-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: var(--eb-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    background: var(--eb-navy); /* Theme color */
    color: white;
    padding: 20px;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.email-box {
    background: #f8f9fa;
    border: 2px solid var(--eb-navy);
    border-radius: var(--eb-radius);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--eb-navy);
    margin: 20px 0;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.email-box:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 56, 86, 0.2);
}

.email-box.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.note-review {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin: 20px 0 0 0 !important;
}

/* Mailchimp Newsletter Styling */
#mc_embed_shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

#mc_embed_signup {
    background: transparent !important;
    border: none !important;
    font-family: inherit !important;
}

#mc_embed_signup h2 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: left !important;
    line-height: 1.4 !important;
    border: none !important;
}

.indicates-required {
    color: #ccc !important;
    font-size: 12px !important;
    margin: 0 0 15px 0 !important;
    text-align: left !important;
}

.asterisk {
    color: #ff6b6b !important;
    font-weight: bold !important;
}

.mc-field-group {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

.mc-field-group label {
    color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 0 8px 0 !important;
    display: block !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#mce-EMAIL {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #444 !important;
    border-radius: var(--eb-radius) !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
}

#mce-EMAIL:focus {
    border-color: var(--eb-navy) !important;
    box-shadow: 0 0 0 3px rgba(45, 56, 86, 0.1) !important;
}

#mce-EMAIL::placeholder {
    color: #999 !important;
}

#mc-embedded-subscribe {
    background: var(--eb-navy) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: var(--eb-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 10px 0 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

#mc-embedded-subscribe:hover {
    background: #1e2439 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(45, 56, 86, 0.3) !important;
}

#mc-embedded-subscribe:active {
    transform: translateY(0) !important;
}

/* Response messages */
#mce-responses {
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
}

.response {
    margin: 0 !important;
    padding: 10px 15px !important;
    border-radius: var(--eb-radius) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
}

#mce-error-response {
    background: #ff6b6b !important;
    color: white !important;
    border: 1px solid #ff5252 !important;
}

#mce-success-response {
    background: #4caf50 !important;
    color: white !important;
    border: 1px solid #45a049 !important;
}

/* Hide Mailchimp branding */
.optionalParent p {
    display: none !important;
}

.refferal_badge {
    display: none !important;
}

/* Fix clear divs */
.clear {
    clear: both !important;
    overflow: hidden !important;
}

.foot {
    margin: 0 !important;
    padding: 0 !important;
}

/* Newsletter container improvements */
.subcribe-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-logo-large img {
        width: 150px !important;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .email-box {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    /* Mailchimp mobile adjustments */
    #mc_embed_signup h2 {
        font-size: 16px !important;
        margin: 0 0 15px 0 !important;
    }
    
    .mc-field-group label {
        font-size: 13px !important;
    }
    
    #mce-EMAIL {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    #mc-embedded-subscribe {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .footer-logo-large img {
        width: 120px !important;
    }
    
    .email-box {
        font-size: 14px;
    }
}

