/* Fix for Hostinger - Ensure all text is visible */

/* Main sections */
.section-header h2 {
    color: #2c3e50 !important;
}

.section-header h3 {
    color: #2c3e50 !important;
}

/* Highlight sections - Video Más Visto and Historia de Mayor Impacto */
.highlight-section h4 {
    color: #333 !important;
}

.highlight-title {
    color: #333 !important;
}

.highlight-metric span {
    color: #333 !important;
}

.highlight-metric i {
    color: #667eea !important;
}

/* Cards and containers */
.card h3, .card h4 {
    color: #333 !important;
}

.card p, .card span {
    color: #666 !important;
}

/* Metrics and numbers */
.metric-value, .kpi-value {
    color: #333 !important;
}

.metric-label, .kpi-title {
    color: #666 !important;
}

/* Format duel section */
.format-duel-clean {
    background: #ffffff !important;
}

.duel-header h3 {
    color: #333 !important;
}

.analysis-card h4, .metrics-card h4 {
    color: #333 !important;
}

.performance-label, .metric-title {
    color: #333 !important;
}

.performance-value, .metric-value {
    color: #333 !important;
}

/* Dashboard sections */
.dashboard-card h3, .dashboard-card h4 {
    color: #333 !important;
}

/* Instagram and Facebook sections */
.instagram-section h2, .facebook-section h2 {
    color: #2c3e50 !important;
}

/* JEEPFEST section */
.jeepfest h2, .jeepfest h3 {
    color: #2c3e50 !important;
}

/* Footer */
.footer {
    background: #2c3e50 !important;
    color: white !important;
}

.footer h3, .footer p {
    color: white !important;
}

/* Ensure all text in cards is visible */
.card, .dashboard-card, .analysis-card, .metrics-card {
    background: #ffffff !important;
    color: #333 !important;
}

/* Fix any white text on white background */
* {
    color: inherit;
}

/* Specific fixes for problematic sections */
.viral-content, .viral-description {
    color: #333 !important;
}

.breakdown-section h3 {
    color: #333 !important;
}

.breakdown-label, .breakdown-value {
    color: #333 !important;
}

/* Force all text in highlight sections to be black */
.highlight-section * {
    color: #333 !important;
}

.highlight-section h4 {
    color: #333 !important;
    font-weight: 600 !important;
}

.highlight-title {
    color: #333 !important;
    font-weight: 500 !important;
}

.highlight-metric {
    color: #333 !important;
}

.highlight-metric span {
    color: #333 !important;
    font-weight: 500 !important;
}

.highlight-metric i {
    color: #667eea !important;
}

/* Alternative: Dark background for highlight sections */
.content-highlights {
    background: #2c3e50 !important;
    color: white !important;
    padding: 2rem !important;
    border-radius: 15px !important;
    margin: 2rem 0 !important;
}

.content-highlights h4 {
    color: white !important;
    font-weight: 600 !important;
}

.content-highlights .highlight-title {
    color: #e9ecef !important;
    font-weight: 500 !important;
}

.content-highlights .highlight-metric span {
    color: white !important;
    font-weight: 500 !important;
}

.content-highlights .highlight-metric i {
    color: #667eea !important;
}

/* Force all text in highlight sections to be visible */
.highlight-section {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
}

.highlight-section h4 {
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.highlight-section .highlight-title {
    color: #495057 !important;
    font-weight: 500 !important;
}

.highlight-section .highlight-metric span {
    color: #2c3e50 !important;
    font-weight: 500 !important;
}

.highlight-section .highlight-metric i {
    color: #667eea !important;
}

/* Ensure all text in content sections is visible */
.content-highlights h4 {
    color: #333 !important;
}

.content-highlights p {
    color: #333 !important;
}

.content-highlights span {
    color: #333 !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    font-size: 28px;
    color: white;
    z-index: 2;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animation for the button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        right: 60px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Fix mobile metrics colors - Force all text to be dark */
    .metric-value, .kpi-value {
        color: #333 !important;
    }
    
    .metric-label, .kpi-title {
        color: #666 !important;
    }
    
    .highlight-metric span {
        color: #333 !important;
    }
    
    .highlight-title {
        color: #333 !important;
    }
    
    .highlight-section h4 {
        color: #333 !important;
    }
    
    /* Fix specific metrics section */
    #metricas-adicionales {
        background: #ffffff !important;
    }
    
    #metricas-adicionales * {
        color: #333 !important;
    }
    
    #metricas-adicionales h2 {
        color: #2c3e50 !important;
    }
    
    #metricas-adicionales h3 {
        color: #2c3e50 !important;
    }
    
    #metricas-adicionales .metric-value {
        color: #333 !important;
    }
    
    #metricas-adicionales .metric-label {
        color: #666 !important;
    }
    
    /* Fix all sections background */
    .section {
        background: #ffffff !important;
    }
    
    .section * {
        color: #333 !important;
    }
    
    .section h2 {
        color: #2c3e50 !important;
    }
    
    .section h3 {
        color: #2c3e50 !important;
    }
    
    /* Fix all text in mobile */
    .card, .dashboard-card, .analysis-card, .metrics-card {
        background: #ffffff !important;
        color: #333 !important;
    }
    
    .card h3, .card h4, .dashboard-card h3, .dashboard-card h4 {
        color: #333 !important;
    }
    
    .card p, .card span, .dashboard-card p, .dashboard-card span {
        color: #666 !important;
    }
    
    /* Mobile hamburger menu - Always show on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-list {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-list li {
        margin: 0 15px;
    }
    
    .nav-link {
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .nav-link:hover {
        color: #667eea;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 1001 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .nav {
        position: relative !important;
    }
    
    .nav .container {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 20px 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        color: #333 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mobile responsive fixes */
    .container {
        padding: 0 15px !important;
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    .section-header h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }
    
    .section-header p {
        font-size: 0.9rem !important;
        text-align: center;
    }
    
    /* Cards responsive */
    .card {
        margin: 1rem 0 !important;
        padding: 1rem !important;
    }
    
    .card h3, .card h4 {
        font-size: 1.2rem !important;
    }
    
    /* Charts responsive */
    .chart-container {
        width: 100% !important;
        height: 250px !important;
        margin: 1rem 0 !important;
    }
    
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Metrics responsive */
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .metric-card {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .metric-value {
        font-size: 1.5rem !important;
    }
    
    .metric-label {
        font-size: 0.8rem !important;
    }
    
    /* Top posts responsive */
    .top-posts {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .post-card {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .post-title {
        font-size: 1rem !important;
    }
    
    .post-metrics {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .post-metric {
        font-size: 0.8rem !important;
    }
    
    /* Format duel responsive */
    .duel-container-clean {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .duel-section {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .format-card {
        padding: 1.5rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .format-title {
        font-size: 1.1rem !important;
    }
    
    .metric-value {
        font-size: 1.8rem !important;
    }
    
    .metric-label {
        font-size: 0.8rem !important;
    }
    
    /* Analysis section responsive */
    .analysis-section-clean {
        grid-template-rows: auto auto !important;
        gap: 1rem !important;
    }
    
    .analysis-card, .metrics-card {
        padding: 1rem !important;
    }
    
    .performance-item {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    
    .performance-bar {
        width: 100% !important;
    }
    
    /* Metrics section bottom responsive */
    .metrics-section-bottom {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Dashboard responsive */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .dashboard-card {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    /* Viral content responsive */
    .viral-metrics {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .viral-metrics-top {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .viral-metric {
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .metric-number {
        font-size: 1.5rem !important;
    }
    
    .metric-label {
        font-size: 0.8rem !important;
    }
    
    /* Content highlights responsive */
    .content-highlights {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .highlight-section {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .highlight-metrics {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .highlight-metric {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* JEEPFEST responsive */
    .jeepfest-kpis {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .kpi-card {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .conclusions-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Footer responsive */
    .footer {
        padding: 2rem 1rem !important;
        text-align: center !important;
    }
    
    .footer-content {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* Tablet responsive (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 20px !important;
    }
    
    .section {
        padding: 2.5rem 0 !important;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .top-posts {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .duel-container-clean {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .duel-section {
        grid-template-columns: 1fr auto 1fr !important;
        gap: 2rem !important;
    }
    
    .viral-metrics-top {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .content-highlights {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .jeepfest-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .conclusions-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px !important;
    }
    
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .card {
        padding: 0.8rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .chart-container {
        height: 200px !important;
    }
    
    .metric-value {
        font-size: 1.2rem !important;
    }
    
    .format-card {
        padding: 1rem !important;
    }
    
    .format-title {
        font-size: 1rem !important;
    }
    
    .metric-value {
        font-size: 1.5rem !important;
    }
    
    .highlight-section {
        padding: 0.8rem !important;
    }
    
    .kpi-card {
        padding: 0.8rem !important;
    }
}
