.evento-detalle {
  --color-dia: #687afb;
  --color-mes: #2b2b2b;

  display: flex;
  flex-direction: column;
  gap: 2em;

  @media(max-width: 768px) {
    margin-top: 3rem;
  }

  .header {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    .titulo {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;

      @media(max-width: 600px) {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
      }

      h2 {
        margin: 0;
        font-weight: 700;
        letter-spacing: -.05rem;
        font-size: clamp(20px, 3.5vw, 30px);
      }

      a.btn-volver {
        height: 24px;
        font-size: 12px;
        font-weight: 600;
        color: white;
        background: #999;
        padding: .1rem 1rem;
        border-radius: .5rem;
        transition: background .2s;
        text-decoration: none;
        cursor: pointer;

        &:hover,
        &:focus {
          background: #2b2b2b;
        }
      }
    }


    .info-general {
      display: grid;
      grid-template-columns: 100px 1fr;
      align-items: center;
      gap: 2rem;

      @media(max-width: 600px) {
        grid-template-columns: 1fr;

        .fecha {
          margin: 0 auto;
        }
      }
    }

    .fecha {
      width: 100px;
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      gap: .35rem;
      background: white;
      border-radius: 1rem;
      box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, .1);

      .dia {
        color: var(--color-dia);
        font-size: clamp(24px, 5vw, 3rem);
        font-weight: 800;
      }

      .mes {
        color: var(--color-mes);
        font-size: clamp(14px, 3vw, 1.55rem);
        font-weight: 600;
      }

      .hora {
        margin-top: .75rem;
        font-size: font-size: clamp(12px, 2vw, .9rem);
        font-weight: 600;
        color: var(--color-accent);
      }
    }

    .cal_nombre_calendario_intercolegial_evento {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      p.categoria {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 14px;
        font-weight: 600;

        .color {
          width: 2rem;
          aspect-ratio: 1;
          display: inline-block;
          background: var(--color-tipo-evento, #ccc);
          border: solid 1px color-mix(in hsl, var(--color-tipo-evento) 80%, black);
          border-radius: .5rem;
        }
      }

      p.colegio {
        display: flex;
        align-items: center;
        gap: 1rem;

        svg {
          width: 18px;
          height: 18px;
          min-width: 18px;
        }
      }
    }
  }

  .evento-descripcion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;

    .imagen {
      img {
        width: 100%;
        aspect-ratio: 10 / 3;
        object-fit: cover;
        border-radius: 1rem;
      }
    }

    .text {
      font-size: clamp(12px, 1.5vw, 14px);
      line-height: 1.6em;
    }
  }
}

#detalle_evento {
  padding: 15px 0;

  h2 {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .fecha {
    &:not(input) {
      text-align: center;
      margin-bottom: 10px;
      background: #fff;
      padding: 8px;
      border-radius: 4px;
      box-shadow: 0 0 4px rgba(0, 0, 0, .1);
    }

    .dia {
      color: #687afb;
      font-size: 30px;
      font-weight: 700;
    }

    .mes {
      color: #687afb;
      font-size: 18px;
      margin-top: 5px;
    }
  }

  .nombre {
    font-weight: 600;
    font-size: 15px;
  }

  .categoria {
    font-size: 12px;
    color: #999;
  }

  .descripcion {
    margin-top: 10px;
  }
}

.separador {
  margin: 4rem 0;
  height: 0;
  font-size: 0;
  border: dashed 2px #ddd;
}

.panel-heading {
  background: dimgray !important;
  color: white !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.panel-footer {
  background: white;

  .btn-enviar,
  .btn-eliminar {
    padding: 1rem 4rem;
    font-weight: 600;
  }
}

.alert-info {
  background: oldlace;
  color: saddlebrown;
  border: none;
}

#detalle_evento {

  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: clamp(13px, 1.5vw, 14px);

    .linea {
      display: grid;
      grid-template-columns: 1fr 3fr;
      align-items: center;
      gap: 0 2rem;

      @media(max-width: 992px) {
        grid-template-columns: 1fr;
        gap: .5rem;

        &:has(.nombre_campo:empty) {
          gap: 0;
        }

        .nombre_campo {
          text-align: left !important;
        }
      }

      .nombre_campo {
        display: block;
        width: 100%;
        text-align: right;
        font-weight: 700;
        font-size: 13px;
      }

      .valor_campo {
        width: 100%;

        &:has(input[type="checkbox"]) {
          display: flex;
          align-items: center;
          gap: .5rem;
        }
      }

      .error {
        font-size: 12px;
        font-weight: 700;
        color: red !important;
      }

      .c_obligatorio:after {
        content: "\00a0(*)";
        color: red;
      }
    }

    input.has-error {
      background: #fde1df;
      border: 1px solid red;
      color: #fd322e;
    }

    .mce-edit-area iframe {
      min-height: 200px !important;
    }

    input[type="date"],
    input[type="time"] {
      max-width: 150px;
    }

    input[type="checkbox"] {
      margin: 0;
    }

    input[type="checkbox"]+label {
      margin: 0;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
    }

  }

  .ayuda-imagen {
    font-size: 13px;
    font-weight: 600;
    color: #999;
  }

  img.thumbnail {
    margin-bottom: 0;
    width: 150px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1rem;
  }
}