/* COATCO - Próximos Eventos. Estilos encapsulados en el bloque del shortcode. */
.coatco-pe-block{--coatco-pe-primary:#004765;--coatco-pe-text:#333;--coatco-pe-border:#5f6970;width:100%;max-width:100%;min-width:0;font-family:inherit;color:var(--coatco-pe-text)}
.coatco-pe-block *{box-sizing:border-box}
.coatco-pe-block .coatco-pe-heading{font-family:inherit;font-size:clamp(26px,2.7vw,38px);line-height:1.35;font-weight:400;text-align:center;color:#111;margin:0 0 22px;padding:0;text-transform:uppercase;letter-spacing:0;text-shadow:1px 2px 2px rgba(0,0,0,.30)}
.coatco-pe-block .coatco-pe-heading::before,.coatco-pe-block .coatco-pe-heading::after{display:none}
.coatco-pe-block .coatco-pe-list{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;width:100%}
.coatco-pe-block .coatco-pe-card{min-width:0;width:100%;margin:0;background:transparent;border:0;box-shadow:none}
.coatco-pe-block .coatco-pe-image{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;aspect-ratio:16 / 9;margin:0 0 18px;text-decoration:none;background:#fff}
.coatco-pe-block .coatco-pe-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;max-width:100%;max-height:100%;border:0;box-shadow:none}
.coatco-pe-block .coatco-pe-content{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.coatco-pe-block .coatco-pe-date{font-size:15px;line-height:1.5;color:var(--coatco-pe-primary);font-weight:600;margin:0 0 7px}
.coatco-pe-block .coatco-pe-title{font-family:inherit;font-size:clamp(19px,2vw,25px);line-height:1.3;color:#13322b;font-weight:600;margin:0 0 12px;padding:0}
.coatco-pe-block .coatco-pe-description,.coatco-pe-block .coatco-pe-location{font-size:15px;line-height:1.6;color:var(--coatco-pe-text);margin:0 0 16px;padding:0}
.coatco-pe-block .coatco-pe-link{display:block;width:100%;padding:11px 18px;border:1px solid var(--coatco-pe-border);border-radius:2px;background:#fff;color:var(--coatco-pe-primary)!important;text-align:center;font-size:15px;line-height:1.5;font-weight:600;text-decoration:none!important;transition:background-color .2s,color .2s,border-color .2s}
.coatco-pe-block .coatco-pe-link:hover,.coatco-pe-block .coatco-pe-link:focus{background:var(--coatco-pe-primary);border-color:var(--coatco-pe-primary);color:#fff!important;text-decoration:none!important}
.coatco-pe-block .coatco-pe-notice{font-size:15px;color:#555;text-align:center;margin:0}
@media(max-width:767px){.coatco-pe-block .coatco-pe-heading{font-size:26px;margin-bottom:16px}.coatco-pe-block .coatco-pe-image{margin-bottom:14px}.coatco-pe-block .coatco-pe-title{font-size:20px}.coatco-pe-block .coatco-pe-date{font-size:14px}}

/* v0.1.3 — Igualar alturas con el calendario SOLO si la fila Divi
   lleva la clase CSS coatco-eventos-row. La altura la determina la
   columna del calendario: no usamos un alto fijo para ningún iframe. */
@media (min-width: 981px) {
  .et_pb_row.coatco-eventos-row {
    display: flex;
    align-items: stretch;
  }
  .et_pb_row.coatco-eventos-row > .et_pb_column {
    float: none;
    min-width: 0;
  }
  .et_pb_row.coatco-eventos-row > .et_pb_column:last-child {
    display: flex;
    flex-direction: column;
  }
  .et_pb_row.coatco-eventos-row > .et_pb_column:last-child > .et_pb_module:has(.coatco-pe-block) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
  }
  .et_pb_row.coatco-eventos-row > .et_pb_column:last-child > .et_pb_module:has(.coatco-pe-block) > .et_pb_text_inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }
  .et_pb_row.coatco-eventos-row .coatco-pe-block {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .et_pb_row.coatco-eventos-row .coatco-pe-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }
  .et_pb_row.coatco-eventos-row .coatco-pe-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }
  .et_pb_row.coatco-eventos-row .coatco-pe-content {
    flex: 1 1 auto;
  }
  .et_pb_row.coatco-eventos-row .coatco-pe-link {
    margin-top: auto;
  }
}
/* Para ventanas estrechas, los módulos recuperan su altura natural y
   Divi se encarga del apilamiento de las dos columnas. */
