
.aem-eventos {
  max-width: 1100px;
  margin: 30px auto;
  font-family: Arial, Helvetica, sans-serif;
}

.aem-evento {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 280px;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #dce7ef;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 45, 85, 0.08);
}

.aem-evento-fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 18px;
  text-align: center;
  color: #ffffff;
  background: #0876c9;
}

.aem-evento-dia {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.aem-evento-mes {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.aem-evento-hora {
  margin-top: 14px;
  padding-top: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.aem-evento-hora-vacia {
  min-height: 1px;
}

.aem-evento-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 30px;
}

.aem-evento-etiqueta {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 11px;
  color: #0876c9;
  background: #e8f5ff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.aem-evento-titulo {
  margin: 0 0 10px;
  color: #13293d;
  font-size: 27px;
  line-height: 1.2;
}

.aem-evento-descripcion {
  margin: 0 0 15px;
  color: #526575;
  font-size: 15px;
  line-height: 1.55;
}

.aem-evento-descripcion p {
  margin: 0 0 10px;
}

.aem-evento-datos {
  margin-bottom: 17px;
  color: #263d4d;
  font-size: 14px;
  line-height: 1.8;
}

.aem-evento-boton {
  display: inline-block;
  width: fit-content;
  padding: 11px 20px;
  color: #ffffff !important;
  background: #0876c9;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.aem-evento-boton:hover {
  color: #ffffff !important;
  background: #055c9d;
  transform: translateY(-1px);
}

.aem-evento-imagen {
  min-height: 250px;
  background: #f1f4f6;
}

.aem-evento-imagen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.aem-evento-imagen-placeholder {
  min-height: 250px;
}

.aem-eventos-vacio {
  padding: 25px;
  text-align: center;
  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 14px;
  color: #526575;
}

/* Formulario */
.aem-evento-form-wrap {
  max-width: 900px;
  margin: 30px auto;
  font-family: Arial, Helvetica, sans-serif;
}

.aem-evento-form {
  padding: 28px;
  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0,45,85,.08);
}

.aem-evento-form h2 {
  margin: 0 0 8px;
  color: #13293d;
  font-size: 28px;
}

.aem-form-intro {
  margin: 0 0 24px;
  color: #526575;
}

.aem-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.aem-span-2 {
  grid-column: 1 / -1;
}

.aem-field span {
  display: block;
  margin-bottom: 7px;
  color: #263d4d;
  font-weight: 700;
  font-size: 14px;
}

.aem-field input,
.aem-field select,
.aem-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd9e3;
  border-radius: 7px;
  background: #fff;
  color: #13293d;
  font: inherit;
}

.aem-field textarea {
  resize: vertical;
}

.aem-field input:focus,
.aem-field select:focus,
.aem-field textarea:focus {
  outline: none;
  border-color: #0876c9;
  box-shadow: 0 0 0 2px rgba(8,118,201,.12);
}

.aem-field small {
  display: block;
  margin-top: 6px;
  color: #6b7d89;
}

.aem-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #526575;
  font-size: 13px;
  line-height: 1.45;
}

.aem-check input {
  margin-top: 3px;
}

.aem-form-submit {
  margin-top: 22px;
  padding: 12px 22px;
  border: 0;
  border-radius: 7px;
  background: #0876c9;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.aem-form-submit:hover {
  background: #055c9d;
}

.aem-form-alert {
  max-width: 900px;
  margin: 20px auto;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

.aem-form-alert-ok {
  background: #edf9f0;
  border: 1px solid #b8dfc1;
  color: #245b31;
}

.aem-form-alert-error {
  background: #fff1f1;
  border: 1px solid #e7b9b9;
  color: #7a2929;
}

.aem-hp {
  position: absolute !important;
  left: -99999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 850px) {
  .aem-evento {
    grid-template-columns: 125px minmax(0, 1fr) 220px;
  }

  .aem-evento-info {
    padding: 22px;
  }

  .aem-evento-titulo {
    font-size: 23px;
  }
}

@media (max-width: 650px) {
  .aem-eventos {
    margin: 20px 10px;
  }

  .aem-evento {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .aem-evento-fecha {
    grid-column: 1;
    grid-row: 2;
    padding: 18px 10px;
  }

  .aem-evento-info {
    grid-column: 2;
    grid-row: 2;
    padding: 18px;
  }

  .aem-evento-imagen {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 190px;
  }

  .aem-evento-imagen img {
    min-height: 190px;
    max-height: 230px;
  }

  .aem-evento-dia {
    font-size: 36px;
  }

  .aem-evento-mes {
    font-size: 15px;
  }

  .aem-evento-hora {
    font-size: 13px;
  }

  .aem-evento-titulo {
    font-size: 20px;
  }

  .aem-evento-descripcion {
    font-size: 14px;
  }

  .aem-form-grid {
    grid-template-columns: 1fr;
  }

  .aem-span-2 {
    grid-column: auto;
  }

  .aem-evento-form {
    padding: 20px;
    margin: 0 10px;
  }
}

@media (max-width: 420px) {
  .aem-evento {
    display: flex;
    flex-direction: column;
  }

  .aem-evento-fecha {
    flex-direction: row;
    gap: 8px;
    padding: 13px 16px;
  }

  .aem-evento-dia {
    font-size: 26px;
  }

  .aem-evento-mes {
    margin: 0;
    font-size: 15px;
  }

  .aem-evento-hora {
    width: auto;
    margin: 0 0 0 auto;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
  }
}
