body {
      font-family: "Segoe UI", sans-serif;
      background: #f0f2f5; /* Fondo más suave */
      color: #333;
      margin: 0;
      padding: 0;
      line-height: 1.6;
    }
header {
  position: relative;
  width: 100%;
  background: linear-gradient(to right, #004080, #007bff);
  color: white;
  text-align: center;
  margin-top: 75px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
}


header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #e0e0e0;
}


    main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}


    section {
      background: #ffffff;
      border: 1px solid #e0e0e0;
      padding: 2rem;
      margin-bottom: 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
      text-align: justify;
    }

    h2 {
      color: #0056b3;
      margin-top: 0;
      margin-bottom: 1.5rem;
      font-size: 1.8rem;
      border-bottom: 2px solid #007bff;
      padding-bottom: 0.5rem;
    }

    input[type="text"],
    textarea {
      width: 100%;
      padding: 0.8rem;
      margin-top: 0.5rem;
      margin-bottom: 1.5rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      box-sizing: border-box;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    input[type="text"]:focus,
    textarea:focus {
      border-color: #007bff;
      box-shadow: 0 0 8px rgba(0,123,255,0.2);
      outline: none;
    }

    textarea {
      resize: vertical;
      min-height: 80px;
    }

    img {
      max-width: 100%;
      border-radius: 8px;
      margin-bottom: 1rem;
    }

    audio {
      display: block;
      width: 100%;
      margin: 1rem 0 1.5rem;
    }

    button {
      background-color: #28a745; 
      color: white;
      padding: 0.8rem 1.5rem;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
      margin-right: 0.5rem;
      margin-top: 0.5rem;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    button:hover {
      background-color: #218838; 
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    button:active {
      transform: translateY(0);
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .button-secondary {
        background-color: #007bff; 
    }

    .button-secondary:hover {
        background-color: #0056b3;
    }

    .button-danger {
        background-color: #218838; 
    }

    .button-danger:hover {
        background-color: #218838;
    }

    .phrase-box, .dialog-section {
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      padding: 1.5rem;
      border-radius: 10px;
      margin-bottom: 1.5rem;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    }

    .phrase-box p, .dialog-section p {
      margin-bottom: 0.8rem;
      font-size: 1.1rem;
    }

    .phrase-box strong {
      color: #0056b3;
    }

    .result {
      margin-top: 1rem;
      font-weight: bold;
      font-size: 1.1rem;
    }

    .result.correct { color: green; }
    .result.partial { color: orange; }
    .result.incorrect { color: red; }

    .dialog-box {
      border-top: 1px dashed #ccc;
      margin-top: 1.5rem;
      padding-top: 1.5rem;
    }

    .dialog-box p {
      margin-bottom: 0.5rem;
    }

    .dialog-box strong {
      color: #343a40;
    }

    .quiz-options label {
      display: block;
      margin-bottom: 0.5rem;
      cursor: pointer;
    }

    .quiz-options input[type="radio"] {
      margin-right: 0.5rem;
    }

    #customTimerBox {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #fff;
  color: #333;
  border: 2px solid #007bff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
}


.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); 
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #ccc;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

.modal-content h2 {
  margin-top: 0;
  color: #28a745;
}

.close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
}

.close:hover {
  color: black;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}