:root {
    --primary: #8B0000;
    --primary-light: #A52A2A;
    --secondary: #DAA520;
    --dark: #1A1A1A;
    --light: #F5F5F5;
    --paper: #F8F0E3;
    --ink: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-container {
    font-family: 'Roboto', sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,10 L70,10 L90,50 L70,90 L30,90 L10,50 Z" fill="none" stroke="%238B0000" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 120px;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

h1 span {
    color: var(--secondary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.subtitle::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--secondary);
}

.divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 30px auto;
}

.oracle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

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

.consultation-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.consultation-section h2 {
    font-family: 'Noto Serif SC', serif;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consultation-section h2 i {
    color: var(--secondary);
}

.question-input {
    margin-bottom: 30px;
}

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

.question-input textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    transition: var(--transition);
}

.question-input textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.coins-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.coin {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.coin::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.coin:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.coin:hover::before {
    opacity: 0.3;
}

.coin.tossing {
    animation: toss 0.6s ease-out;
}

@keyframes toss {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.cast-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.cast-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cast-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.hexagram-display {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
}

.hexagram {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 20px 0;
}

.line {
    height: 12px;
    background-color: var(--dark);
    position: relative;
}

.line.yin {
    width: 100px;
}

.line.yang {
    width: 100px;
}

.line.yin.broken {
    display: flex;
    justify-content: space-between;
    background-color: transparent;
}

.line.yin.broken::before,
.line.yin.broken::after {
    content: "";
    display: block;
    height: 12px;
    width: 40px;
    background-color: var(--dark);
}

.hexagram-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-top: 20px;
}

.hexagram-number {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
}

.interpretation {
    margin-top: 30px;
}

.interpretation h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.interpretation p {
    margin-bottom: 15px;
    line-height: 1.7;
}

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

.action-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button.primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.action-button.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.history-section {
    margin-top: 50px;
}

.history-section h2 {
    font-family: 'Noto Serif SC', serif;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.history-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.history-card .hexagram-mini {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 15px;
}

.history-card .line-mini {
    height: 6px;
}

.history-card .line-mini.yin {
    width: 60px;
}

.history-card .line-mini.yang {
    width: 60px;
}

.history-card .line-mini.yin.broken {
    display: flex;
    justify-content: space-between;
    background-color: transparent;
}

.history-card .line-mini.yin.broken::before,
.history-card .line-mini.yin.broken::after {
    content: "";
    display: block;
    height: 6px;
    width: 25px;
    background-color: var(--dark);
}

.history-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.history-card p {
    color: var(--ink);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-card .date {
    color: #777;
    font-size: 0.8rem;
    margin-top: 10px;
}



.disclaimer {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid #ddd;
}

/* Notificación */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

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

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .coin {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .oracle-container {
        padding: 0 10px;
    }
    
    .consultation-section, .result-section {
        padding: 20px;
    }
}


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

    /* Hero Section */
    .iching-guide-hero {
      text-align: center;
      margin-bottom: 2.5rem;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #f8f0e3 0%, #f5e8d9 100%);
      border-radius: 32px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(139, 0, 0, 0.15);
    }

    .iching-guide-hero h2 {
      font-size: 2.6rem;
      font-weight: 700;
      color: #8B0000;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      font-family: 'Noto Serif SC', serif;
    }

    .iching-guide-hero .iching-hero-sub {
      font-size: 1.2rem;
      color: #4a4a4a;
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.5;
    }

    .iching-guide-meta {
      display: flex;
      justify-content: center;
      gap: 2rem;
      color: #8B5a2b;
      font-weight: 500;
      margin-top: 1.2rem;
      flex-wrap: wrap;
    }

    .iching-guide-meta span i {
      margin-right: 0.5rem;
      color: #DAA520;
    }

    /* Grid Layout */
    .iching-guide-grid {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 2rem;
    }

    /* Main Content */
    .iching-main-content {
      background: white;
      border-radius: 28px;
      padding: 2rem 2rem 2.5rem 2rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(139, 0, 0, 0.1);
    }

    .iching-main-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #8B0000;
      border-left: 5px solid #DAA520;
      padding-left: 1rem;
      font-family: 'Noto Serif SC', serif;
    }

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

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

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

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

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

    .iching-highlight-box {
      background: #fef7e8;
      border-left: 6px solid #DAA520;
      padding: 1.25rem 1.5rem;
      border-radius: 20px;
      margin: 1.75rem 0;
    }

    .iching-pro-tip {
      background: #f0f0f0;
      border-radius: 20px;
      padding: 1.2rem 1.5rem;
      margin: 1.5rem 0;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      border: 1px solid #e0c8a0;
    }

    .iching-pro-tip i {
      font-size: 1.8rem;
      color: #DAA520;
    }

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

    .iching-stat-card {
      background: #f9f5ef;
      border-radius: 20px;
      padding: 1.2rem;
      text-align: center;
      transition: all 0.2s;
      border: 1px solid #e8dccc;
    }

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

    .iching-quote-block {
      background: #fef7e8;
      padding: 1.5rem;
      border-radius: 24px;
      text-align: center;
      font-style: italic;
      margin: 1.5rem 0;
      border: 1px solid #e8dccc;
    }

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

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

    .iching-lines-table {
      width: 100%;
      border-collapse: collapse;
      background: #f9f5ef;
      border-radius: 16px;
      overflow: hidden;
    }

    .iching-lines-table th, .iching-lines-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid #e8dccc;
    }

    .iching-lines-table th {
      background: #e8dccc;
      font-weight: 600;
      color: #8B0000;
    }

    .iching-lines-table tr:hover {
      background: #fef7e8;
    }

    .yang-line {
      display: inline-block;
      width: 50px;
      height: 8px;
      background: #333;
      margin: 2px 0;
    }

    .yin-line {
      display: inline-block;
      width: 50px;
      height: 8px;
      background: transparent;
      position: relative;
      margin: 2px 0;
    }

    .yin-line::before {
      content: "";
      position: absolute;
      left: 0;
      width: 22px;
      height: 8px;
      background: #333;
    }

    .yin-line::after {
      content: "";
      position: absolute;
      right: 0;
      width: 22px;
      height: 8px;
      background: #333;
    }

    /* Sidebar */
    .iching-sidebar-section {
      align-self: start;
    }

    .iching-side-card {
      background: white;
      border-radius: 24px;
      padding: 1.5rem;
      margin-bottom: 1.8rem;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(139, 0, 0, 0.1);
    }

    .iching-side-card h4 {
      font-size: 1.35rem;
      font-weight: 700;
      margin-bottom: 1rem;
      border-bottom: 3px solid #DAA520;
      padding-bottom: 0.6rem;
      color: #8B0000;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: 'Noto Serif SC', serif;
    }

    .iching-checklist, .iching-resource-list {
      list-style: none;
      padding: 0;
    }

    .iching-checklist li, .iching-resource-list li {
      margin-bottom: 0.85rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: #333;
    }

    .iching-checklist i, .iching-resource-list i {
      color: #DAA520;
      width: 1.5rem;
      font-size: 1rem;
    }

    .iching-tool-link {
      display: inline-block;
      background: linear-gradient(95deg, #8B0000, #A52A2A);
      color: white;
      text-decoration: none;
      font-weight: 600;
      padding: 0.8rem 1.2rem;
      border-radius: 40px;
      width: 100%;
      text-align: center;
      margin-top: 1rem;
      transition: transform 0.2s, box-shadow 0.2s;
      border: none;
      cursor: pointer;
      font-size: 0.95rem;
    }

    .iching-tool-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
    }

    .iching-share-buttons {
      display: flex;
      gap: 0.8rem;
      justify-content: center;
      margin-top: 1.2rem;
    }

    .iching-share-btn {
      background: #f5f0e8;
      padding: 0.5rem 1rem;
      border-radius: 40px;
      font-size: 0.85rem;
      font-weight: 500;
      text-decoration: none;
      color: #5a3a1a;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .iching-share-btn:hover {
      background: #e8dccc;
    }

    .iching-footer-note {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.85rem;
      color: #8B5a2b;
      border-top: 1px solid #e8dccc;
      padding-top: 2rem;
    }

    @media (max-width: 880px) {
      .iching-guide-grid {
        grid-template-columns: 1fr;
      }
      .iching-guide-hero h2 {
        font-size: 2rem;
      }
      .iching-main-content {
        padding: 1.5rem;
      }
      #iching-ultimate-guide {
        padding: 1rem;
      }
    }