/* single-evento.css - diseño limpio y moderno para Evento */
:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --accent1: #0f172a;
  --accent2: #0ea5e9;
  --card-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --card-radius: 14px;
  --radius: 14px;
  --gutter: 24px;
  
    /* colores para enlaces y transición */
  --link-color: var(--accent2);
  --link-hover: #2563eb;      /* hover (más oscuro/íntenso) */
  --link-visited: #7c3aed;    /* visited */
  --link-active: #0b74b3;     /* active / pressed */
  --link-transition: color .18s ease, border-color .18s ease;
}

.evento-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--accent1);
}
.evento-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  overflow: hidden;
  display: block;
}
.evento-hero {
  width: 100%;
  height: 44vw;
  max-height: 520px;
  background-size: cover;
  background-position: center;
}

.evento-body {
  padding: 22px;
  text-align: left; /* forzar left */
}
.evento-header {
  margin-bottom: 12px;
  text-align: left;
}
.evento-title {
  font-size: clamp(22px, 4.2vw, 36px);
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--accent1);
  text-align: left;
}
.evento-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.evento-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.evento-main {
  min-width: 0; /* evita overflow en grid */
}
.evento-content {
  color: var(--accent1);
  line-height: 1.7;
  font-size: 16px;
  text-align: start;
}
.evento-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

/* estilos de enlaces (contenido del evento y página) */
.evento-content a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: var(--link-transition);
  /* evita que reglas globales menos específicas las sobreescriban fácilmente */
}

.evento-content a:hover
.evento-content a:focus {
  color: var(--link-hover);
  outline: none;
  /* mejora accesibilidad */
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}

.evento-aside {
  background: #fbfcfe;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-item {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(2, 6, 23, 0.04);
}
.meta-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.meta-value {
  font-size: 15px;
  color: var(--accent1);
  font-weight: 600;
}

.btn-evento {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent2), #2563eb);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.meta-footer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* --- Asistir (iconos/contacto) --- */
.asistir {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 23, 42, 0.04);
}
.asistir-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.asistir-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.asistir-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.04);
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent1);
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.asistir-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.06);
}
.asistir .icon {
  display: block;
  flex: 0 0 18px;
  color: inherit;
}
.asistir-label {
  font-size: 13px;
  display: inline-block;
}

/* color hints */
.asistir-mail {
  color: var(--accent1);
}
.asistir-link {
  color: #2563eb;
}
.asistir-phone {
  color: #16a34a;
}

/* responsive */
@media (max-width: 980px) {
  .evento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto; /* evita alturas fijas que puedan romper layout */
  }
  .evento-aside {
    order: 2;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* incluir padding/border en el ancho */
    align-self: start; /* que no estire ni solape */
  }
  .evento-hero {
    height: 46vw;
  }
  /* Mejorar comportamiento de los botones/acciones dentro del aside */
  .asistir-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .asistir-btn {
    min-width: 0; /* que no fuerce ancho fijo y cause overflow */
  }
}
