/**
 * TEC Evento Design - Estilos del diseño personalizado
 * Inspirado en evento_v2.html
 */

:root {
  --tec-bg: #fbf8f3;
  --tec-surface: #ffffff;
  --tec-soft: #f3ede4;
  --tec-line: #e7dfd3;
  --tec-text: #1d1418;
  --tec-muted: #6f6468;
  --tec-wine: #970044;
  --tec-wine-dark: #73003a;
  --tec-wine-soft: #f7e6ee;
  --tec-gold: #deab00;
  --tec-gold-soft: #fbf1d1;
  --tec-display: 'Syne', sans-serif;
  --tec-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset básico dentro del wrap */
.tec-evento-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: var(--tec-body);
  color: var(--tec-text);
  line-height: 1.6;
  background: var(--tec-bg);
}

.tec-evento-wrap *,
.tec-evento-wrap *::before,
.tec-evento-wrap *::after {
  box-sizing: border-box;
}

body.single-tribe_events {
  background: var(--tec-bg) !important;
}

/* Nav */
.tec-evento-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.tec-logo {
  font-family: var(--tec-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--tec-text);
  text-decoration: none;
}

.tec-logo span {
  color: var(--tec-wine);
}

.tec-back {
  font-size: 14px;
  color: var(--tec-muted);
  text-decoration: none;
}

.tec-back:hover {
  color: var(--tec-wine);
}

/* Hero */
.tec-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 64px;
}

.tec-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tec-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tec-wine-soft);
  color: var(--tec-wine);
}

.tec-tag.gold {
  background: var(--tec-gold-soft);
  color: #7a5e00;
}

.tec-title {
  font-family: var(--tec-display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 16px 0 20px;
  color: var(--tec-text);
}

.tec-lead {
  font-size: 18px;
  color: var(--tec-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.tec-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.tec-fact {
  background: var(--tec-surface);
  border: 1px solid var(--tec-line);
  border-radius: 16px;
  padding: 16px;
}

.tec-fact small {
  display: block;
  font-size: 12px;
  color: var(--tec-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.tec-fact b {
  font-family: var(--tec-display);
  font-size: 17px;
  font-weight: 700;
}

.tec-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Poster / Imagen */
.tec-poster {
  aspect-ratio: 4/5;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 25% 25%, var(--tec-gold), transparent 50%),
              radial-gradient(circle at 80% 80%, var(--tec-wine), transparent 60%),
              var(--tec-wine-dark);
  box-shadow: 0 30px 60px -20px rgba(151, 0, 68, 0.45);
}

.tec-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tec-poster-fallback {
  width: 100%;
  height: 100%;
  position: relative;
}

.tec-stamp {
  position: absolute;
  left: 28px;
  bottom: 28px;
  background: var(--tec-surface);
  border-radius: 20px;
  padding: 16px 22px;
  text-align: center;
  font-family: var(--tec-display);
  line-height: 1;
}

.tec-stamp b {
  display: block;
  font-size: 56px;
  color: var(--tec-wine);
  font-weight: 800;
}

.tec-stamp small {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Botones */
.tec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.3;
}

.tec-btn:hover {
  transform: translateY(-2px);
}

.tec-btn-primary {
  background: var(--tec-wine);
  color: #fff !important;
}

.tec-btn-primary:hover {
  background: var(--tec-wine-dark);
  color: #fff !important;
}

.tec-btn-outline {
  border-color: var(--tec-wine);
  color: var(--tec-wine) !important;
  background: transparent;
}

.tec-btn-outline:hover {
  background: var(--tec-wine-soft);
}

.tec-btn-gold {
  background: var(--tec-gold);
  color: var(--tec-text) !important;
  width: 100%;
}

/* Calendario dropdown */
.tec-cal {
  position: relative;
}

.tec-cal summary {
  list-style: none;
  cursor: pointer;
}

.tec-cal summary::-webkit-details-marker {
  display: none;
}

.tec-cal-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--tec-surface);
  border: 1px solid var(--tec-line);
  border-radius: 16px;
  padding: 6px;
  min-width: 220px;
  z-index: 10;
  box-shadow: 0 20px 40px -10px rgba(29, 20, 24, 0.2);
}

.tec-cal-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tec-text);
  text-decoration: none;
}

.tec-cal-menu a:hover {
  background: var(--tec-wine-soft);
  color: var(--tec-wine);
}

/* Layout principal */
.tec-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.tec-content-col section {
  margin-bottom: 56px;
}

.tec-content-col h2 {
  font-family: var(--tec-display);
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--tec-text);
}

.tec-content-col h2 span {
  color: var(--tec-gold);
}

.tec-prose {
  font-size: 17px;
  color: var(--tec-muted);
  line-height: 1.7;
}

.tec-prose p {
  margin-bottom: 14px;
}

.tec-prose a {
  color: var(--tec-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mapa y venue */
.tec-map {
  height: 240px;
  border-radius: 20px;
  border: 1px solid var(--tec-line);
  overflow: hidden;
  margin-bottom: 14px;
}

.tec-map iframe {
  width: 100% !important;
  height: 240px !important;
  border: 0 !important;
}

.tec-map-placeholder {
  background: repeating-linear-gradient(0deg, transparent 0 38px, var(--tec-line) 38px 40px),
              repeating-linear-gradient(90deg, transparent 0 38px, var(--tec-line) 38px 40px),
              var(--tec-soft);
  position: relative;
}

.tec-venue {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--tec-muted);
}

.tec-venue a {
  color: var(--tec-wine);
  font-weight: 700;
  text-decoration: none;
}

.tec-venue a:hover {
  text-decoration: underline;
}

/* Sidebar / Tickets */
.tec-sidebar {
  position: sticky;
  top: 24px;
}

.tec-box {
  background: var(--tec-surface);
  border: 1px solid var(--tec-line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(29, 20, 24, 0.25);
}

.tec-box h2 {
  font-family: var(--tec-display);
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--tec-text);
}

.tec-sub {
  color: var(--tec-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.tec-ticket-info {
  margin-bottom: 16px;
}

.tec-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--tec-line);
}

.tec-price {
  font-family: var(--tec-display);
  font-size: 22px;
  color: var(--tec-wine);
  font-weight: 800;
}

.tec-tickets-native {
  margin: 16px 0;
}

.tec-sidebar-actions {
  margin-top: 16px;
}

.tec-secure {
  text-align: center;
  font-size: 12px;
  color: var(--tec-muted);
  margin-top: 14px;
}

/* Footer */
.tec-footer {
  border-top: 1px solid var(--tec-line);
  padding: 28px 0;
  color: var(--tec-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

.tec-footer a {
  color: var(--tec-muted);
  text-decoration: none;
}

.tec-footer a:hover {
  color: var(--tec-wine);
}

/* Barra móvil */
.tec-mobile-bar {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .tec-hero,
  .tec-main {
    grid-template-columns: 1fr;
  }

  .tec-poster {
    aspect-ratio: 16/10;
    order: -1;
  }

  .tec-sidebar {
    position: static;
  }

  .tec-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: var(--tec-surface);
    border-top: 1px solid var(--tec-line);
    gap: 10px;
    align-items: center;
    z-index: 100;
  }

  .tec-mobile-bar .tec-btn {
    flex: 1;
    padding: 14px;
  }

  body.single-tribe_events {
    padding-bottom: 80px;
  }
}

@media (max-width: 560px) {
  .tec-facts {
    grid-template-columns: 1fr;
  }

  .tec-evento-wrap {
    padding: 0 16px;
  }

  .tec-title {
    font-size: 32px;
  }
}
