:root {
    --primary: #FF6B6B;
    --primary-dark: #E55A5A;
    --secondary: #4ECDC4;
    --dark: #292F36;
    --light: #F7F9FC;
    --accent: #FFD166;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    width: 95%;
    margin: 0 auto;
}

.header-title {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--dark);
    max-width: 700px;
    margin: 20px auto 30px;
    font-weight: 500;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.wheel-container {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

#wheelCanvas {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--dark);
    border-radius: 50%;
    z-index: 10;
    border: 4px solid var(--accent);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.8);
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: var(--primary);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 5;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

.controls {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

.btn i {
    margin-right: 10px;
}

.btn-secondary {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    background: #3db9b0;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}

.btn-accent:hover {
    background: #ffc44d;
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
}

.result-container {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: var(--border-radius);
    display: none;
}

.result-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.customizer {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.options-list {
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.option-item:last-child {
    border-bottom: none;
}

.option-actions {
    display: flex;
    gap: 8px;
}

.option-btn {
    background: #e9ecef;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-btn:hover {
    background: var(--primary);
    color: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(255, 107, 107, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.5rem;
}



.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--secondary);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
}

.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.4rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    .controls {
        flex-direction: column;
        gap: 10px;
    }
}

.decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.05;
    z-index: -1;
}

.dec-1 {
    top: -150px;
    right: -150px;
}

.dec-2 {
    bottom: -150px;
    left: -150px;
}



.config-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.config-actions .btn {
    flex: 1;
    min-width: 120px;
}

.history-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 30px;
    display: none;
}

.history-panel h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.history-item:last-child {
    border-bottom: none;
}

.import-export {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Mejora para las notificaciones */
.notification.success {
    background: var(--secondary);
}

.notification.error {
    background: var(--primary);
}

.notification.warning {
    background: var(--accent);
    color: var(--dark);
}

/* Indicador de color en las opciones */
.color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}


 /* ===== ARTICLE SPECIFIC STYLES - NO BODY STYLES ===== */
 #wheel-guide-article {
      width: 95%;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem 1.5rem;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    /* Hero Section */
    .wheel-guide-hero {
      text-align: center;
      margin-bottom: 2.5rem;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
      border-radius: 32px;
      box-shadow: 0 12px 30px rgba(255, 107, 107, 0.3);
    }

    .wheel-guide-hero h2 {
      font-size: 2.6rem;
      font-weight: 800;
      color: white;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      font-family: 'Montserrat', serif;
    }

    .wheel-guide-hero .wheel-hero-sub {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.9);
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.5;
    }

    .wheel-guide-meta {
      display: flex;
      justify-content: center;
      gap: 2rem;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      margin-top: 1.2rem;
      flex-wrap: wrap;
    }

    .wheel-guide-meta span i {
      margin-right: 0.5rem;
    }

    /* Main Content */
    .wheel-main-content {
      background: white;
      border-radius: 28px;
      padding: 2rem 2rem 2.5rem 2rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(255, 107, 107, 0.15);
    }

    .wheel-main-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #FF6B6B;
      border-left: 5px solid #4ECDC4;
      padding-left: 1rem;
      font-family: 'Montserrat', serif;
    }

    .wheel-main-content h2:first-of-type {
      margin-top: 0;
    }

    .wheel-main-content h3 {
      font-size: 1.35rem;
      font-weight: 600;
      margin: 1.5rem 0 0.75rem 0;
      color: #4ECDC4;
    }

    .wheel-main-content p {
      font-size: 1.05rem;
      color: #2d3748;
      margin-bottom: 1.2rem;
      line-height: 1.6;
    }

    .wheel-main-content ul, .wheel-main-content ol {
      margin: 1rem 0 1.2rem 1.8rem;
      color: #2d3748;
      line-height: 1.6;
    }

    .wheel-main-content li {
      margin-bottom: 0.5rem;
    }

    .wheel-highlight-box {
      background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(78, 205, 196, 0.05));
      border-left: 6px solid #4ECDC4;
      padding: 1.25rem 1.5rem;
      border-radius: 20px;
      margin: 1.75rem 0;
    }

    .wheel-pro-tip {
      background: rgba(78, 205, 196, 0.1);
      border-radius: 20px;
      padding: 1.2rem 1.5rem;
      margin: 1.5rem 0;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      border: 1px solid rgba(255, 107, 107, 0.3);
    }

    .wheel-pro-tip i {
      font-size: 1.8rem;
      color: #4ECDC4;
    }

    .wheel-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.2rem;
      margin: 2rem 0;
    }

    .wheel-stat-card {
      background: #f8f9fa;
      border-radius: 20px;
      padding: 1.2rem;
      text-align: center;
      transition: all 0.2s;
      border: 1px solid rgba(255, 107, 107, 0.2);
    }

    .wheel-stat-card .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: #FF6B6B;
      margin-bottom: 0.25rem;
    }

    .wheel-quote-block {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 24px;
      text-align: center;
      font-style: italic;
      margin: 1.5rem 0;
      border: 1px solid rgba(255, 107, 107, 0.2);
    }

    .wheel-quote-block i {
      font-size: 2rem;
      color: #4ECDC4;
      margin-bottom: 0.5rem;
      display: inline-block;
    }

    .wheel-table-wrapper {
      overflow-x: auto;
      margin: 1.5rem 0;
    }

    .wheel-uses-table {
      width: 100%;
      border-collapse: collapse;
      background: #f8f9fa;
      border-radius: 16px;
      overflow: hidden;
    }

    .wheel-uses-table th, .wheel-uses-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    }

    .wheel-uses-table th {
      background: rgba(255, 107, 107, 0.1);
      font-weight: 600;
      color: #FF6B6B;
    }

    .wheel-uses-table tr:hover {
      background: rgba(78, 205, 196, 0.05);
    }

    .wheel-tips-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
      margin: 1.5rem 0;
    }

    .wheel-tip-card {
      background: #f8f9fa;
      border-radius: 16px;
      padding: 1.2rem;
      border: 1px solid rgba(255, 107, 107, 0.2);
      transition: all 0.2s;
    }

    .wheel-tip-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(255, 107, 107, 0.1);
    }

    .wheel-tip-title {
      font-weight: 700;
      color: #FF6B6B;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .wheel-footer-note {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.85rem;
      color: #718096;
      border-top: 1px solid #e2e8f0;
      padding-top: 2rem;
    }

    @media (max-width: 768px) {
      .wheel-guide-hero h2 {
        font-size: 2rem;
      }
      .wheel-main-content {
        padding: 1.5rem;
      }
      #wheel-guide-article {
        padding: 1rem;
      }
    }