/* Utilidades compartidas — migración de style= inline en plantillas de evento */

/* Lucide / iconos inline */
.tpl-ic {
  vertical-align: middle;
}

.tpl-ic--md {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.3rem;
}

.tpl-ic--xs {
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.3rem;
}

.tpl-ic--md-alt {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.3rem;
}

.tpl-ic--pin-gold {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold, #c9a227);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.tpl-ic--2rem {
  width: 2rem;
  height: 2rem;
}

.tpl-ic--1rem {
  width: 1rem;
  height: 1rem;
}

.tpl-ic--1em {
  width: 1em;
  height: 1em;
}

.tpl-ic--white {
  color: #fff;
}

.tpl-social-ic {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  color: currentColor;
}

.tpl6-accent-ic {
  color: var(--tpl6-accent);
}

/* Fondos dinámicos (URL vía data-bg-url + JS) */
.tpl-bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tpl-hero-var-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Márgenes / espaciado */
.tpl-mt-1 { margin-top: 1rem; }
.tpl-mt-15 { margin-top: 1.5rem; }
.tpl-mt-2 { margin-top: 2rem; }
.tpl-mt-3 { margin-top: 3rem; }
.tpl-mt-4 { margin-top: 4rem; }
.tpl-mb-1 { margin-bottom: 1rem; }
.tpl-mb-15 { margin-bottom: 1.5rem; }
.tpl-mb-2 { margin-bottom: 2rem; }
.tpl-mb-3 { margin-bottom: 3rem; }
.tpl-mb-4 { margin-bottom: 4rem; }
.tpl-mx-auto-mb-15 { margin: 0 auto 1.5rem; }
.tpl-pb-3 { padding-bottom: 3rem; }

.tpl-countdown-meta {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Iframes embebidos */
.tpl-iframe {
  border: 0;
}

.tpl-iframe--fill {
  width: 100%;
  height: 100%;
}

.tpl-iframe--rounded {
  border-radius: 8px;
}

.tpl-iframe--shadow {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Layout / tipografía */
.tpl-text-left { text-align: left; }

.tpl-flex-row-start {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tpl-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-detail-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans, inherit);
}

.tpl-detail-text,
.tpl-muted-text {
  font-size: 1.1rem;
  color: var(--muted, #666);
}

.tpl-timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tpl-heading-lg {
  font-size: 1.5rem;
  font-weight: 600;
}

.tpl-input-code {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tpl-btn-full {
  width: 100%;
  justify-content: center;
}

.tpl-delay-1 { transition-delay: 0.1s; }
.tpl-delay-2 { transition-delay: 0.2s; }
.tpl-delay-3 { transition-delay: 0.3s; }

.tpl-img-square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.tpl-link-inherit {
  text-decoration: none;
  color: inherit;
}

.barramenus-admin-icon {
  color: #c8a45a;
}

.tpl-lightbox-nav {
  position: absolute;
  color: #fff;
  font-size: 29px;
}

.tpl-lightbox-nav--prev { left: 18px; }
.tpl-lightbox-nav--next { right: 18px; }

.tpl-hero-shape-wrap {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.tpl-hero-shape-svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.tpl-rsvp-hint {
  font-family: var(--ff-ui, inherit);
  font-style: normal;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: #666;
  margin-top: 15px;
}

.tpl-text-primary-bold {
  color: var(--primary, inherit);
  font-weight: bold;
}

/* Embeds redes sociales */
.tpl-embed-box {
  flex: 1;
  min-height: 400px;
}

.tpl-embed-box--border {
  border: 1px solid var(--tpl9-border, rgba(0, 0, 0, 0.12));
  padding: 5px;
  background: #fff;
}

.tpl11-embed-box {
  border-color: var(--tpl11-border, rgba(0, 0, 0, 0.12));
}

.tpl-embed-box--fafafa {
  background: #fafafa;
}

.tpl-embed-box--fb {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.tpl-embed-box--pad {
  padding: 10px;
}

.tpl9-earth-text { color: var(--tpl9-earth); }
.tpl11-earth-text { color: var(--tpl11-earth); }

.tpl7-btn-gold {
  background: var(--tpl7-gold);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
}

.tpl-btn-fb {
  background: #1877f2;
}

.tpl-btn-ig-gradient {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tpl-iframe--shadow-soft {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tpl6-btn-accent {
  background: var(--tpl6-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}

.tpl-img-fill-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-img-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

.tpl-form-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tpl-map-btn-charcoal {
  color: var(--charcoal);
  border-color: var(--charcoal);
  margin-top: 20px;
  display: inline-block;
}

.tpl-link-block {
  text-decoration: none;
  display: inline-block;
}

.tpl-btn-a3-sm {
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
}

.tpl-hero-amp-a3 {
  font-family: var(--font-accent);
  color: var(--accent-color);
  font-size: 1em;
}

/* Fotos de sede / salón capturadas en el panel */
.tpl-sede-foto-wrap {
  margin: 0 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.tpl-sede-foto,
.sede-foto {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
