  /* ---------- botón agregar ---------- */
  .agregar-testimonio {
      display: flex;
      justify-content: center;
      margin-top: 24px;
  }

  /* ---------- overlay ---------- */
  #modal-testimonio {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .75);
      backdrop-filter: blur(4px);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }

  #modal-testimonio.open {
      display: flex;
  }

  /* ---------- caja modal ---------- */
  .modal-box {
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-top: 3px solid #f97316;
      border-radius: 14px;
      padding: 32px;
      width: 100%;
      max-width: 480px;
      position: relative;
      animation: modalIn .25s ease;
  }

  @keyframes modalIn {
      from {
          opacity: 0;
          transform: translateY(20px) scale(.97);
      }

      to {
          opacity: 1;
          transform: translateY(0) scale(1);
      }
  }

  .modal-close {
      position: absolute;
      top: 16px;
      right: 18px;
      background: none;
      border: none;
      color: #666;
      font-size: 22px;
      cursor: pointer;
      line-height: 1;
  }

  .modal-close:hover {
      color: #fff;
  }

  .modal-box h3 {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      margin: 0 0 4px;
  }

  .modal-box p.modal-sub {
      font-size: 13px;
      color: #777;
      margin: 0 0 22px;
  }

  /* ---------- campos ---------- */
  .modal-box label {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: #666;
      margin-bottom: 5px;
      margin-top: 14px;
  }

  .modal-box label:first-of-type {
      margin-top: 0;
  }

  .modal-box input[type=text],
  .modal-box textarea,
  .modal-box select {
      width: 100%;
      background: #111;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #e5e5e5;
      font-family: inherit;
      font-size: 14px;
      padding: 10px 14px;
      outline: none;
      transition: border-color .2s;
      box-sizing: border-box;
  }

  .modal-box input:focus,
  .modal-box textarea:focus,
  .modal-box select:focus {
      border-color: #f97316;
  }

  .modal-box textarea {
      resize: vertical;
      min-height: 90px;
  }

  .modal-box select option {
      background: #1a1a1a;
  }

  /* ---------- estrellas interactivas ---------- */
  .modal-stars {
      display: flex;
      gap: 6px;
      margin-top: 4px;
  }

  .modal-star {
      font-size: 28px;
      cursor: pointer;
      color: #2a2a2a;
      transition: color .15s, transform .1s;
      line-height: 1;
      user-select: none;
  }

  .modal-star.on {
      color: #f97316;
  }

  .modal-star:hover {
      transform: scale(1.15);
  }

  /* ---------- fila 2 columnas ---------- */
  .modal-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
  }

  /* ---------- botón enviar ---------- */
  .modal-btn {
      width: 100%;
      margin-top: 22px;
      padding: 12px;
      background: #f97316;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity .2s;
  }

  .modal-btn:hover {
      opacity: .88;
  }

  .modal-btn:disabled {
      opacity: .5;
      cursor: not-allowed;
  }

  /* ---------- mensajes ---------- */
  .modal-msg {
      margin-top: 14px;
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 13px;
      display: none;
  }

  .modal-msg.ok {
      background: rgba(34, 197, 94, .12);
      border: 1px solid rgba(34, 197, 94, .25);
      color: #4ade80;
  }

  .modal-msg.err {
      background: rgba(239, 68, 68, .12);
      border: 1px solid rgba(239, 68, 68, .25);
      color: #f87171;
  }

  /* ---------- char counter ---------- */
  .char-count {
      font-size: 11px;
      color: #555;
      text-align: right;
      margin-top: 3px;
  }

  .char-count.warn {
      color: #f97316;
  }