/* =========================================================================
   Tam Tam Percusión — Landing de evento (.ttp-ev), portado de la maqueta
   Lovable "Vikrampal — Gong: Del cerebro al alma" a CSS plano y scopeado.
   Se carga junto a ttp-experto.css SOLO en las landings ($ttp_landing_ids).
   Reutiliza los tokens de .ttp-experto (--ttp-brand, etc.) y las fuentes
   (Open Sans / Source Sans). Iconos por mask (sin <svg> en el contenido).
   ========================================================================= */

/* Utilidad sr-only para el H1 (el título va dentro del banner) */
.ttp-ev-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Iconos extra que la landing necesita (además de los de ttp-experto) */
.ttp-ico-calendar { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M16 18h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M16 18h.01'/%3E%3C/svg%3E"); }
.ttp-ico-clock { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16.5 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16.5 12'/%3E%3C/svg%3E"); }
.ttp-ico-mappin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ttp-ico-book { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E"); }

/* ---- Botones del evento (rectangulares, no pill) ------------------------ */
.ttp-ev-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0; height: 2.5rem; padding: 0 2rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.ttp-ev-btn .ttp-ico { font-size: 1rem; transition: transform .15s; }
.ttp-ev-btn:hover .ttp-ico-arrow-right { transform: translateX(4px); }
.ttp-experto .ttp-ev-btn-brand { background: var(--ttp-brand); color: #fff; }
.ttp-experto .ttp-ev-btn-brand:hover { background: rgba(238,99,14,.9); }
.ttp-experto .ttp-ev-btn-invert { border-color: #fff; color: #fff; background: transparent; }
.ttp-experto .ttp-ev-btn-invert:hover { background: #fff; color: var(--ttp-brand); }

/* ---- Título de sección con subrayado (idéntico a la maqueta) ------------ */
.ttp-ev-title {
  position: relative; display: block; padding-bottom: 1rem; margin: 0;
  font-family: "Open Sans", system-ui, sans-serif; font-weight: 600;
  font-size: 1.875rem; line-height: 1.2; color: var(--ttp-fg);
}
.ttp-ev-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; background: var(--ttp-brand); }
@media (min-width: 768px) { .ttp-ev-title { font-size: 2.25rem; } }

.ttp-ev-copy { margin: 1.25rem 0 0; color: var(--ttp-muted-fg); font-size: 1.0625rem; line-height: 1.75; }
.ttp-ev-copy--first { margin-top: 1.75rem; }
.ttp-ev-lead { margin: 1.75rem 0 0; font-size: 1.25rem; font-weight: 600; line-height: 1.6; color: var(--ttp-fg); }

/* ---- Secciones ---------------------------------------------------------- */
.ttp-ev-section { padding-block: 5rem; }
@media (max-width: 767px) { .ttp-ev-section { padding-block: 3.5rem; } }

.ttp-ev-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .ttp-ev-grid-a { grid-template-columns: 0.8fr 1.2fr; }
  .ttp-ev-grid-b { grid-template-columns: 0.85fr 1.15fr; }
  .ttp-ev-grid-c { grid-template-columns: 1fr 1fr; }
}
.ttp-ev-img-shadow { width: 100%; height: auto; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ttp-ev-img-cover34 { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ttp-ev-img-70 { width: 70%; margin-inline: auto; height: auto; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---- HERO (banner a todo el ancho) -------------------------------------- */
.ttp-ev-hero-img { display: block; width: 100%; height: auto; }

/* ---- Franja de datos (Fecha / Horario / Lugar) -------------------------- */
.ttp-ev-facts { border-top: 1px solid var(--ttp-border); border-bottom: 1px solid var(--ttp-border); background: var(--ttp-bg); }
.ttp-ev-facts-grid { display: grid; grid-template-columns: 1fr; }
.ttp-ev-fact { display: flex; align-items: flex-start; gap: 1rem; padding: 1.75rem 1.25rem; }
.ttp-ev-fact + .ttp-ev-fact { border-top: 1px solid var(--ttp-border); }
.ttp-ev-fact .ttp-ico { color: var(--ttp-brand); font-size: 1.5rem; margin-top: 0.125rem; flex: none; }
.ttp-ev-fact-l { margin: 0; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--ttp-muted-fg); }
.ttp-ev-fact-v { margin: 0.25rem 0 0; font-weight: 600; color: var(--ttp-fg); }
@media (min-width: 768px) {
  .ttp-ev-facts-grid { grid-template-columns: repeat(3, 1fr); }
  .ttp-ev-fact { padding: 1.75rem 2rem; }
  .ttp-ev-fact + .ttp-ev-fact { border-top: none; border-left: 1px solid var(--ttp-border); }
}

/* ---- Banda naranja "Asegura tu plaza" ----------------------------------- */
.ttp-ev-cta { background: var(--ttp-brand); }
.ttp-ev-cta-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; padding: 0.75rem 1.25rem; }
.ttp-ev-cta-title { margin: 0; font-family: "Open Sans", system-ui, sans-serif; font-size: 1.25rem; font-weight: 600; color: #fff; }
.ttp-ev-cta-sub { margin: 0.25rem 0 0; font-size: 0.875rem; color: rgba(255,255,255,.8); }
@media (min-width: 768px) {
  .ttp-ev-cta-inner { flex-direction: row; justify-content: space-between; text-align: left; padding: 1rem 1.25rem; }
  .ttp-ev-cta-title { font-size: 1.5rem; }
}

/* ---- Tarjetas de la jornada --------------------------------------------- */
.ttp-ev-cards { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--ttp-border); }
@media (min-width: 768px) { .ttp-ev-cards { grid-template-columns: repeat(2, 1fr); } }
.ttp-ev-card { background: var(--ttp-secondary); padding: 2rem; }
@media (min-width: 768px) { .ttp-ev-card { padding: 2.5rem; } }
.ttp-ev-icocircle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 9999px; background: var(--ttp-brand-10); color: var(--ttp-brand); margin-bottom: 1rem; }
.ttp-ev-icocircle .ttp-ico { font-size: 1.5rem; }
.ttp-ev-center { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ---- Banda oscura final "El sonido como experiencia" -------------------- */
.ttp-ev-dark { position: relative; overflow: hidden; background: #1e1e1e; color: #fff; padding-block: 4rem; }
@media (min-width: 768px) { .ttp-ev-dark { padding-block: 6rem; } }
.ttp-ev-dark-deco { position: absolute; border-radius: 9999px; pointer-events: none; }
.ttp-ev-dark-deco1 { bottom: -8rem; right: -8rem; width: 24rem; height: 24rem; border: 1px solid rgba(238,99,14,.2); }
.ttp-ev-dark-deco2 { bottom: -6rem; right: -6rem; width: 20rem; height: 20rem; border: 1px solid rgba(238,99,14,.1); }
.ttp-ev-dark-grid { position: relative; display: grid; gap: 3rem; }
@media (min-width: 1024px) { .ttp-ev-dark-grid { grid-template-columns: repeat(12, 1fr); gap: 0; } }
.ttp-ev-dark-main { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .ttp-ev-dark-main { grid-column: span 7; padding-right: 2rem; } }
.ttp-ev-dark-h2 { margin: 0; max-width: 48rem; font-family: "Open Sans", system-ui, sans-serif; font-weight: 300; font-size: 2.25rem; line-height: 1.15; color: #fff; }
@media (min-width: 768px) { .ttp-ev-dark-h2 { font-size: 3.75rem; } }
.ttp-ev-em { font-style: italic; font-weight: 500; color: var(--ttp-brand); }
.ttp-ev-dark-copy { margin-top: 2.5rem; max-width: 42rem; display: grid; gap: 2rem; font-size: 1.125rem; line-height: 1.75; color: rgba(255,255,255,.7); }
@media (min-width: 768px) { .ttp-ev-dark-copy { font-size: 1.25rem; } }
.ttp-ev-dark-copy p { margin: 0; }
.ttp-ev-strong { color: #fff; font-weight: 600; }
.ttp-ev-accent { color: var(--ttp-brand); }
.ttp-ev-dark-panel { display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.1); padding: 3rem 2rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 1024px) { .ttp-ev-dark-panel { grid-column: span 5; border-top: none; border-left: 1px solid rgba(255,255,255,.1); align-items: flex-end; text-align: right; padding: 3rem; } }
.ttp-ev-panel-inner { width: 100%; max-width: 24rem; display: grid; gap: 2rem; }
.ttp-ev-bar { display: inline-block; height: 0.25rem; width: 3rem; background: var(--ttp-brand); }
.ttp-ev-panel-h3 { margin: 0; font-family: "Open Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 768px) { .ttp-ev-panel-h3 { font-size: 1.875rem; } }
.ttp-ev-panel-date { margin-top: 1rem; }
.ttp-ev-panel-when { margin: 0; font-size: 1.125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ttp-brand); }
.ttp-ev-panel-where { margin: 0.25rem 0 0; font-size: 1.125rem; color: rgba(255,255,255,.7); }

/* ---- Defensa contra reglas muy específicas del tema (#cms.cms #main h2/h3,
   que fuerzan font-size 1.75/1.25rem y color oscuro sobre TODO h2/h3 del CMS).
   Reafirmamos la tipografía de los titulares del evento. --------------------- */
.ttp-experto .ttp-ev-title { color: var(--ttp-fg) !important; font-size: 1.875rem !important; font-weight: 600 !important; line-height: 1.2 !important; font-family: "Open Sans", system-ui, sans-serif !important; }
@media (min-width: 768px) { .ttp-experto .ttp-ev-title { font-size: 2.25rem !important; } }
.ttp-experto .ttp-ev-dark-h2 { color: #fff !important; font-size: 2.25rem !important; font-weight: 300 !important; line-height: 1.15 !important; font-family: "Open Sans", system-ui, sans-serif !important; }
@media (min-width: 768px) { .ttp-experto .ttp-ev-dark-h2 { font-size: 3.75rem !important; } }
.ttp-experto .ttp-ev-em { color: var(--ttp-brand) !important; font-style: italic !important; font-weight: 500 !important; }
.ttp-experto .ttp-ev-panel-h3 { color: #fff !important; font-size: 1.5rem !important; font-weight: 700 !important; font-family: "Open Sans", system-ui, sans-serif !important; }
@media (min-width: 768px) { .ttp-experto .ttp-ev-panel-h3 { font-size: 1.875rem !important; } }
.ttp-experto .ttp-ev-strong { color: #fff !important; }
.ttp-experto .ttp-ev-accent { color: var(--ttp-brand) !important; }
.ttp-experto .ttp-ev-panel-when { color: var(--ttp-brand) !important; }
.ttp-experto .ttp-ev-panel-where { color: rgba(255,255,255,.7) !important; }
