:root {
        --primary-color: #5b6abf;
        --secondary-color: #9c64a6;
        --accent-color: #6a5acd;
        --light-color: #e6e6fa;
        --success-color: #4caf50;
        --error-color: #f44336;
        --text-color: #2c3e50;
        --white: #ffffff;
      }

      /* Estilos del Header */
      .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--secondary-color)
        );
        padding: 0 10%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid #fff;
        transition: all 0.3s ease;
      }

      .header:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
      }

      .logo {
        font-size: 28px;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        color: var(--white);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        letter-spacing: 1px;
      }

      .navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      .header .navigation ul li {
        float: left;
        position: relative;
      }

      .header .navigation ul li a {
        font-family: "Poppins", sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: var(--white);
        text-decoration: none;
        padding: 22px 20px;
        display: block;
        transition: all 0.3s ease;
      }

      .header .navigation ul li a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
      }

      #toggle,
      .header label {
        display: none;
        cursor: pointer;
      }

      .menu {
        width: 28px;
        height: 28px;
        filter: brightness(0) invert(1);
      }

      @media (max-width: 950px) {
        .header label {
          display: initial;
        }

        .header {
          padding: 15px 10%;
        }

        .header .navigation {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background: var(--primary-color);
          display: none;
          border-radius: 0 0 12px 12px;
        }

        .header .navigation ul li {
          width: 100%;
        }

        .header .navigation ul li a {
          padding: 12px 20px;
        }

        #toggle:checked ~ .navigation {
          display: block;
          animation: slideDown 0.4s ease-out;
        }
      }

      /* Estilos del cuerpo y fondo */
      body {
        font-family: "Poppins", sans-serif;
        background: linear-gradient(135deg, #e6f7ff, #d6e4ff);
        margin: 0;
        padding: 0;
        padding-top: 80px;
        min-height: 100vh;
        color: var(--text-color);
      }

      /* Animaciones */
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(-10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes celebrate {
        0% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.1);
        }
        100% {
          transform: scale(1);
        }
      }

      @keyframes confetti {
        0% {
          transform: translateY(0) rotate(0deg);
          opacity: 1;
        }
        100% {
          transform: translateY(100vh) rotate(360deg);
          opacity: 0;
        }
      }

      /* Contenedor principal */
      .container {
        max-width: 1000px;
        width: 90%;
        margin: 20px auto;
        padding: 30px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      }

      h1 {
        text-align: center;
        color: var(--primary-color);
        margin-bottom: 25px;
        font-family: "Montserrat", sans-serif;
      }

      /* Secciones de actividad */
      .activity-section {
        margin-bottom: 30px;
        background-color: rgba(230, 230, 250, 0.3);
        padding: 20px;
        border-radius: 8px;
        border-left: 4px solid var(--secondary-color);
      }

      .instructions {
        background-color: rgba(175, 243, 255, 0.2);
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        text-align: center;
        font-weight: 600;
      }

      /* Área de matching */
      .matching-area {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin: 30px 0;
      }

      .column {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
      }

      .word-card {
        background: white;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        font-size: 18px;
        cursor: grab;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: 2px solid transparent;
        user-select: none;
      }

      .word-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
      }

      .word-card.dragging {
        opacity: 0.7;
        transform: scale(1.05);
      }

      .word-card.matched {
        background-color: var(--success-color);
        color: white;
        border-color: var(--success-color);
      }

      .word-card.incorrect {
        background-color: var(--error-color);
        color: white;
        border-color: var(--error-color);
        animation: shake 0.5s;
      }

      @keyframes shake {
        0%,
        100% {
          transform: translateX(0);
        }
        25% {
          transform: translateX(-5px);
        }
        75% {
          transform: translateX(5px);
        }
      }

      /* Líneas de conexión */
      .connections {
        position: relative;
        height: 400px;
        margin: 20px 0;
      }

      .connection-line {
        position: absolute;
        background: var(--accent-color);
        height: 3px;
        transform-origin: left center;
        z-index: 1;
        pointer-events: none;
        transition: all 0.3s ease;
      }

      /* Botones */
      .buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
      }

      button {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 6px;
        font-family: "Poppins", sans-serif;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      button:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }

      #resetBtn {
        background-color: var(--accent-color);
      }

      /* Resultados */
      .results {
        margin-top: 30px;
        padding: 20px;
        background-color: rgba(230, 230, 250, 0.5);
        border-radius: 8px;
        display: none;
      }

      .results h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
      }

      .score {
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin: 20px 0;
      }

      .correct {
        color: var(--success-color);
      }

      .incorrect {
        color: var(--error-color);
      }

      .feedback {
        margin-top: 10px;
        padding: 8px;
        border-radius: 4px;
      }

      .correct-answer {
        background-color: rgba(76, 175, 80, 0.1);
        border-left: 3px solid var(--success-color);
      }

      /* Mensaje de felicitación */
      .celebration {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
      }

      .celebration-content {
        background: white;
        padding: 40px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: celebrate 0.5s ease-in-out;
      }

      .celebration h2 {
        color: var(--success-color);
        margin-bottom: 20px;
        font-size: 2.5em;
      }

      .celebration p {
        font-size: 1.2em;
        margin-bottom: 20px;
      }

      .confetti {
        position: absolute;
        width: 10px;
        height: 10px;
        background: var(--primary-color);
        animation: confetti 3s ease-in-out forwards;
      }

      /* Responsive */
      @media (max-width: 768px) {
        .container {
          padding: 20px;
        }

        .matching-area {
          flex-direction: column;
        }

        .buttons {
          flex-direction: column;
        }

        .word-card {
          padding: 15px;
          font-size: 16px;
        }
      }