/* Variables y configuración base */
:root {
    --primary-color: #2b4c7e;
    --secondary-color: #567ebb;
    --accent-color: #ff6b6b;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --danger-color: #f44336;
    
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    
    --bg-light: #f5f5f5;
    --bg-lighter: #f9f9f9;
    --border-color: #e0e0e0;
    
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 6px 12px rgba(0,0,0,0.15);
    
    --transition-speed: 0.3s;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Estructura y tabs básicos */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    position: relative;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    text-align: center;
    flex: 0 0 auto;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: transparent;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
    transition: all var(--transition-speed) ease;
}

/* Tabs internos (method-tabs) */
.method-tabs {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.method-tab {
    position: relative;
    padding: 10px 16px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    text-align: center;
    flex: 0 0 auto;
}

.method-tab:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.method-tab.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: transparent;
}

.method-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
    transition: all var(--transition-speed) ease;
}

.method-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.method-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.method-content.active {
    display: block;
}

/* Inputs y formularios */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.input-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(43, 76, 126, 0.2);
}

.inputs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.inputs-row::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 15px 0 5px;
    opacity: 0.7;
}

.inputs-row .input-group {
    flex: 1;
    min-width: 200px;
}

/* Botones */
.btn-generate {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 10px rgba(43, 76, 126, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 200px;
}

.btn-generate:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(43, 76, 126, 0.4);
}

.btn-generate:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(43, 76, 126, 0.3);
}

.btn-generate::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-generate:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: var(--secondary-color);
}

.buttonrow {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 10px 0;
    position: relative;
}

/* Indicador visual para llamar la atención */
.buttonrow::before {
    content: "⭐";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
    animation: pulse-star 1.5s infinite alternate;
}

@keyframes pulse-star {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.2); }
}

/* Elementos de carga */
.loading {
    display: none;
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid var(--border-color);
}

.loading p {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.loading-spinner {
    border: 4px solid rgba(43, 76, 126, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Resultados */
.results-display {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg-lighter);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    display: none;
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    border-left: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.result-card-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.result-card-content {
    flex: 1;
}

.result-card-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.rating span {
    color: gold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Descripción del método */
.method-description {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f0f4f8;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.method-description::after {
    content: "↓ GERE SEUS PALPITES ABAIXO ↓";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.method-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Elementos del sonho */
.elementos-container {
    margin: 20px 0;
    min-height: 100px;
}

.elementos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.elemento-item {
    padding: 12px;
    background-color: #f5f7fa;
    border-radius: 8px;
    border: 1px solid #dde1e4;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.elemento-item:hover {
    background-color: #e8f4fd;
    border-color: #a1c6e7;
}

.elemento-item.selected {
    background-color: #e1f5fe;
    border-color: #4fc3f7;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.2);
}

.elemento-nombre {
    font-weight: 500;
    margin-bottom: 5px;
}

.elemento-grupo {
    font-size: 0.85rem;
    color: var(--text-light);
}

.placeholder-text {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    background-color: var(--bg-lighter);
    border-radius: 8px;
}

/* Elementos seleccionados */
.selected-elements {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--bg-lighter);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

.empty-selection {
    color: var(--text-light);
    font-style: italic;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #e1f5fe;
    border-radius: 20px;
    padding: 5px 10px;
    margin: 5px;
    font-size: 0.9rem;
}

.tag-grupo {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: 5px;
}

.tag-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tag-remove:hover {
    background-color: var(--accent-color);
    color: white;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f4f8;
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Resumen */
.result-preview {
    background-color: var(--bg-lighter);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.preview-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    box-shadow: var(--shadow-sm);
}

.preview-section {
    margin-bottom: 15px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.empty-data {
    color: var(--text-light);
    font-style: italic;
}

.analysis-note {
    font-style: italic;
    margin-top: 15px;
    color: var(--text-light);
}

.resumen-list {
    margin: 0;
    padding-left: 20px;
    list-style-position: outside;
}

/* Mejora para la sección de FAQ y listas */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: #f7f9fc;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-item div {
    padding: var(--spacing-lg);
}

/* Mejoras específicas para listas en FAQ */
.faq-item ul, 
.faq-item ol {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}

.faq-item ul {
    list-style-type: disc;
}

.faq-item ol {
    list-style-type: decimal;
}

.faq-item li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0.5rem;
}

.faq-item li:last-child {
    margin-bottom: 0;
}

.faq-item li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.faq-item p + ul,
.faq-item p + ol {
    margin-top: -0.4rem;
}

/* Estilos para cruz del día */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s;
    margin: 0;
}

.checkbox-group label:hover {
    background-color: #e0e0e0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    width: auto;
}

.cruz-visualization {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--bg-lighter);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Alertas y notificaciones */
.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: var(--border-radius);
    border-left: 4px solid transparent;
    background-color: var(--bg-lighter);
}

.alert-info {
    background-color: #e6f3ff;
    border-left-color: var(--info-color);
}

.alert-warning {
    background-color: #fff9e6;
    border-left-color: var(--warning-color);
}

.alert-success {
    background-color: #e8f5e9;
    border-left-color: var(--success-color);
}

.alert-danger {
    background-color: #ffebee;
    border-left-color: var(--danger-color);
}

/* Steps list para dicas e estratégias */
.steps-list {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.steps-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1.2rem;
    counter-increment: step-counter;
    line-height: 1.6;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.steps-list strong {
    color: var(--primary-color);
}

/* Links list */
.links-list {
    list-style: none;
    padding-left: 10px;
    margin: 1rem 0;
}

.links-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.links-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.links-list li:last-child {
    margin-bottom: 0;
}

.links-list strong {
    color: var(--primary-color);
}

/* Mejoras visuales para selector e imágenes */
.cycle-diagram {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.cycle-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-box {
    background-color: #f5f7fa;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: var(--border-radius-sm);
}

.info-box strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.info-box ul {
    margin: 10px 0 5px;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
}

.combo-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.combo-item {
    padding: 8px 16px;
    background-color: #f0f4f8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.combo-item:hover {
    background-color: #e0e7f1;
}

.combo-item.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Recomendaciones */
.recommendations-card {
    border-left-color: var(--accent-color);
    background-color: #fff9f9;
}

.recommendations-card .result-card-icon {
    background-color: var(--accent-color);
}

.recommendation-item {
    background-color: #f5f7fa;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    min-width: 80px;
    text-align: center;
}

.recommendation-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.recommendation-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.result-recommendations {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

/* Análisis estadístico */
.stats-insights {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.estrategia-info {
    display: none;
    animation: fadeIn 0.5s ease;
}

.estrategia-info.active {
    display: block;
}

.estrategia-info h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.estrategia-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Visualización de datos */
.visualization-container {
    animation: fadeIn 0.5s ease;
}

.visualization-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.visualization-header h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

#periodo-analisado {
    color: var(--text-light);
    font-style: italic;
}

.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-item {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.chart-item h4 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.chart-wrapper {
    height: 250px;
    position: relative;
}

.data-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.data-table {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.data-table h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.table-wrapper {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th, 
.stats-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: var(--primary-color);
}

.stats-table tr:hover {
    background-color: #f9f9f9;
}

.stats-table .value-cell {
    text-align: right;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.data-insights {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.data-insights h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.insights-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.insight-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    background-color: #f9f9f9;
}

.insight-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.insight-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.insight-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

.visualization-loading, 
.palpites-loading {
    text-align: center;
    padding: 50px 20px;
}

.palpites-container {
    animation: fadeIn 0.5s ease;
}

.chart-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.stat-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.confianca-indicator {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.confianca-text {
    font-size: 0.9rem;
    margin-left: 10px;
    color: var(--text-light);
}

.stat-pattern {
    background-color: #f5f7fa;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Estilos para los badges de grupos */
.grupo-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f0f4f8;
    border-radius: 4px;
    padding: 3px 8px;
    margin-right: 5px;
    font-size: 0.9rem;
}

.grupo-circulo {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Estilos para colores por grupo */
.grupo-1 { background-color: #FF6384; }  /* Avestruz */
.grupo-2 { background-color: #36A2EB; }  /* Águia */
.grupo-3 { background-color: #FFCE56; }  /* Burro */
.grupo-4 { background-color: #4BC0C0; }  /* Borboleta */
.grupo-5 { background-color: #9966FF; }  /* Cachorro */
.grupo-6 { background-color: #FF9F40; }  /* Cabra */
.grupo-7 { background-color: #C9CBCF; }  /* Carneiro */
.grupo-8 { background-color: #7FB800; }  /* Camelo */
.grupo-9 { background-color: #00A6ED; }  /* Cobra */
.grupo-10 { background-color: #FFD700; } /* Coelho */
.grupo-11 { background-color: #FF85EA; } /* Cavalo */
.grupo-12 { background-color: #8D6E63; } /* Elefante */
.grupo-13 { background-color: #FF5252; } /* Galo */
.grupo-14 { background-color: #26A69A; } /* Gato */
.grupo-15 { background-color: #66BB6A; } /* Jacaré */
.grupo-16 { background-color: #FFA000; } /* Leão */
.grupo-17 { background-color: #BA68C8; } /* Macaco */
.grupo-18 { background-color: #F06292; } /* Porco */
.grupo-19 { background-color: #4DD0E1; } /* Pavão */
.grupo-20 { background-color: #FF7043; } /* Peru */
.grupo-21 { background-color: #BF360C; } /* Touro */
.grupo-22 { background-color: #FFC400; } /* Tigre */
.grupo-23 { background-color: #795548; } /* Urso */
.grupo-24 { background-color: #CDDC39; } /* Veado */
.grupo-25 { background-color: #78909C; } /* Vaca */

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active,
.method-content.active {
    animation: fadeInTab 0.4s ease-in-out;
}

/* Media queries */
@media (max-width: 768px) {
    .tab-buttons,
    .method-tabs {
        gap: 5px;
    }
    
    .tab-button,
    .method-tab {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .inputs-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .inputs-row .input-group {
        width: 100%;
    }
    
    .buttonrow {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-generate {
        width: 100%;
        max-width: 300px;
    }

    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .elementos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .recommendation-item {
        min-width: 60px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .checkbox-group label {
        width: 100%;
    }
    
    .result-card {
        padding: 12px;
    }
    
    .result-card-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .faq-item h3 {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .faq-item div {
        padding: 15px;
    }
    
    .charts-container,
    .data-tables {
        flex-direction: column;
    }
    
    .chart-item,
    .data-table {
        min-width: 100%;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    
    .insights-wrapper {
        grid-template-columns: 1fr;
    }

    .method-description::after {
        font-size: 0.75rem;
        padding: 4px 10px;
        white-space: normal;
        text-align: center;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .tab-button,
    .method-tab {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .result-card {
        flex-direction: column;
    }
    
    .result-card-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .steps-list li {
        padding-left: 35px;
    }
    
    .steps-list li::before {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.tab-button:focus,
.method-tab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.tab-button:focus:not(:focus-visible),
.method-tab:focus:not(:focus-visible) {
    outline: none;
}