/* Estilos para Ficha Metodológica - Target Consulting */

.ficha-metodologica {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ficha-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
}

.ficha-header h1 {
    color: #2c5aa0;
    font-size: 28px;
    margin: 0;
    font-weight: bold;
}

.ficha-subtitle {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.4;
}

.ficha-disclaimer {
    text-align: right;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

.ficha-logo {
    float: right;
    margin-left: 20px;
}

.ficha-logo img {
    width: 80px;
    height: auto;
}

.ficha-logo-default {
    width: 80px;
    height: 80px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

.ficha-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.ficha-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.ficha-section h3 {
    color: #2c5aa0;
    font-size: 16px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
}

.ficha-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: #007bff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.ficha-section p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.ficha-highlight {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
}

.ficha-error-margin {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #856404;
}

.ficha-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ficha-social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.ficha-social-link:hover {
    background: #f0f8ff;
}

.ficha-social-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background: #007bff;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

/* Estilos específicos para diferentes tipos de contenido */
.ficha-sample-size {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.ficha-margin-error {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
}

.ficha-rejection-rate {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.ficha-date {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .ficha-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ficha-header h1 {
        font-size: 24px;
    }
    
    .ficha-metodologica {
        padding: 15px;
    }
    
    .ficha-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .ficha-logo {
        float: none;
        margin: 0 auto 20px auto;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ficha-metodologica {
        padding: 10px;
    }
    
    .ficha-section {
        padding: 15px;
    }
    
    .ficha-header h1 {
        font-size: 20px;
    }
    
    .ficha-subtitle {
        font-size: 12px;
    }
    
    .ficha-section h3 {
        font-size: 14px;
    }
    
    .ficha-section p {
        font-size: 13px;
    }
}

/* Utilidades adicionales */
.ficha-text-center {
    text-align: center;
}

.ficha-text-bold {
    font-weight: bold;
}

.ficha-text-italic {
    font-style: italic;
}

.ficha-margin-bottom {
    margin-bottom: 20px;
}

.ficha-padding {
    padding: 15px;
}

/* Variantes de color para diferentes estudios */
.ficha-blue {
    border-left-color: #007bff;
}

.ficha-green {
    border-left-color: #28a745;
}

.ficha-orange {
    border-left-color: #fd7e14;
}

.ficha-purple {
    border-left-color: #6f42c1;
}

.ficha-red {
    border-left-color: #dc3545;
}

/* Estilos para impresión */
@media print {
    .ficha-metodologica {
        background: white;
        box-shadow: none;
        padding: 0;
    }
    
    .ficha-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .ficha-footer {
        page-break-before: always;
    }
}