     :root {
      --primary-color: #e76f51;
      --secondary-color: #f4a261;
      --tertiary-color: #e9c46a;
      --container-bg: #ffffff;
      --text-color: #2d3748;
      --border-radius-lg: 15px;
      --box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

    .main-content {
      margin-top: 100px;
      padding: 2rem;
    }

    h1 {
      text-align: center;
      color: var(--tertiary-color);
      font-size: 2.5rem;
      margin-bottom: 2rem;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
      font-family: 'Comic Sans MS', cursive;
    }

    .container {
      flex-direction: column;
      padding: 30px;
    }

    .actividad {
      background-color: var(--container-bg);
      padding: 30px;
      border-radius: var(--border-radius-lg);
      margin-bottom: 30px;
      box-shadow: var(--box-shadow);
      border: 3px solid #e59b72;
      position: relative;
      overflow: hidden;
      animation: floatIn 1s ease-out;
      transition: transform 0.3s ease;
    }

    .actividad:hover {
      transform: translateY(-5px);
    }

    .actividad::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
      border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }

    .actividad h2 {
      color: var(--tertiary-color);
      font-size: 1.8rem;
      border-bottom: 2px dashed var(--primary-color);
      padding-bottom: 10px;
      margin-top: 0;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }

    .actividad h2::after {
      content: "";
      display: block;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
      margin: 0.5rem 0;
      border-radius: 2px;
    }

    .actividad p {
      font-size: 1.3rem;
      line-height: 1.8;
      color: var(--text-color);
      margin-bottom: 20px;
    }

    .quiz-container {
      margin-top: 1rem;
    }

    .question {
      background: #f8f9ff;
      padding: 1rem;
      border-radius: var(--border-radius-lg);
      margin-bottom: 1rem;
      border-left: 4px solid var(--primary-color);
      transition: all 0.3s ease;
    }

    .question.correct {
      background: #d4edda;
      border-left-color: #28a745;
      animation: correctPulse 0.5s ease-out;
    }

    .question.incorrect {
      background: #f8d7da;
      border-left-color: #dc3545;
      animation: shake 0.5s ease-out;
    }

    @keyframes correctPulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.02); }
      100% { transform: scale(1); }
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }

    .answer-input {
      width: 100%;
      padding: 0.8rem;
      border: 2px solid #e2e8f0;
      border-radius: var(--border-radius-lg);
      margin-top: 0.5rem;
      font-family: 'Comic Sans MS', cursive;
      font-size: 1.1rem;
      transition: all 0.3s ease;
    }

    .answer-input:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.1);
    }

    .check-btn {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      border: none;
      padding: 0.8rem 1.5rem;
      border-radius: var(--border-radius-lg);
      cursor: pointer;
      margin-top: 0.5rem;
      transition: all 0.3s ease;
      font-family: 'Comic Sans MS', cursive;
      font-weight: bold;
      font-size: 1rem;
    }

    .check-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
    }

    .word-search {
      background: #f8f9ff;
      padding: 1.5rem;
      border-radius: var(--border-radius-lg);
      margin-top: 1rem;
      border: 2px solid var(--secondary-color);
    }

    .word-grid {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 3px;
      margin: 1rem auto;
      max-width: 320px;
    }

    .word-cell {
      width: 28px;
      height: 28px;
      background: white;
      border: 2px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s ease;
      border-radius: 4px;
      font-family: 'Comic Sans MS', cursive;
    }

    .word-cell:hover {
      background: #f0f8ff;
      transform: scale(1.1);
    }

    .word-cell.selected {
      background: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
    }

    .word-cell.found {
      background: #28a745;
      color: white;
      border-color: #28a745;
    }

    .words-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 1rem;
      justify-content: center;
    }

    .word-item {
      background: var(--secondary-color);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: bold;
      transition: all 0.3s ease;
      font-family: 'Comic Sans MS', cursive;
    }

    .word-item.found {
      background: #28a745;
      text-decoration: line-through;
      transform: scale(0.9);
    }

    .drawing-area {
      background: #f8f9ff;
      border: 3px dashed var(--primary-color);
      border-radius: var(--border-radius-lg);
      min-height: 250px;
      margin: 1rem 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 1rem;
    }

    .drawing-canvas {
      border: 2px solid var(--secondary-color);
      border-radius: var(--border-radius-lg);
      cursor: crosshair;
      box-shadow: var(--box-shadow);
    }

    .canvas-controls {
      margin-top: 1rem;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
    }

    .color-btn {
      width: 35px;
      height: 35px;
      border: 3px solid #fff;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .color-btn:hover {
      transform: scale(1.15);
    }

    .color-btn.active {
      border-color: var(--primary-color);
      border-width: 4px;
      transform: scale(1.1);
    }

    .action-btn {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      border: none;
      padding: 0.8rem 1.5rem;
      border-radius: var(--border-radius-lg);
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Comic Sans MS', cursive;
      font-weight: bold;
    }

    .action-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
    }

    .tips-list {
      list-style: none;
      padding: 0;
    }

    .tips-list li {
      background: #f8f9ff;
      padding: 1rem;
      margin: 0.8rem 0;
      border-radius: var(--border-radius-lg);
      border-left: 4px solid var(--tertiary-color);
      transition: all 0.3s ease;
      cursor: pointer;
      font-size: 1.1rem;
      position: relative;
    }

    .tips-list li:hover {
      background: #f0f8ff;
      transform: translateX(10px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .tips-list li.learned {
      background: #d4edda;
      border-left-color: #28a745;
    }

    .score-display {
      text-align: center;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      padding: 1rem 2rem;
      border-radius: var(--border-radius-lg);
      margin: 1rem 0;
      font-size: 1.3rem;
      font-weight: bold;
      box-shadow: var(--box-shadow);
      font-family: 'Comic Sans MS', cursive;
    }

    .celebration {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 3rem;
      border-radius: 25px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      text-align: center;
      z-index: 2000;
      display: none;
      border: 4px solid var(--primary-color);
    }

    .celebration.show {
      display: block;
      animation: celebrationPop 0.6s ease-out;
    }

    .celebration h2 {
      color: var(--primary-color);
      font-size: 2rem;
      margin-bottom: 1rem;
      font-family: 'Comic Sans MS', cursive;
    }

    @keyframes celebrationPop {
      0% { transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); opacity: 0; }
      50% { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); }
      100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    }

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

    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
    }

    /* Navegación */
    nav {
      margin: 40px auto;
      text-align: center;
    }

    nav a {
      display: inline-block;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      text-decoration: none;
      padding: 1rem 2rem;
      margin: 0.5rem;
      border-radius: 25px;
      transition: all 0.3s ease;
      font-weight: bold;
      font-family: 'Comic Sans MS', cursive;
      box-shadow: var(--box-shadow);
    }

    nav a:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(231, 111, 81, 0.3);
    }

    /* Media queries */
    @media (max-width: 768px) {
      .main-content {
        padding: 1rem;
      }
      
      h1 {
        font-size: 2rem;
      }
      
      .actividad {
        padding: 20px;
      }
      
      .word-grid {
        max-width: 280px;
      }
      
      .word-cell {
        width: 24px;
        height: 24px;
        font-size: 12px;
      }
      
      .canvas-controls {
        gap: 0.5rem;
      }
      
      .drawing-canvas {
        width: 100%;
        max-width: 280px;
      }
    }

    @media (max-width: 480px) {
      .actividad {
        padding: 15px;
      }
      
      .actividad h2 {
        font-size: 1.5rem;
      }
      
      .celebration {
        padding: 2rem;
        margin: 0 1rem;
        max-width: 90vw;
      }
    }