/* RESONANCE Concept - CX Forum Guadalajara 2026
   Visual Identity: Tech, Clarity & Bright Customer Experience
*/

:root {
  /* Paleta Base Clara (Guadalajara) */
  --bg-page: #f7f9fc;
  --bg-card: #ffffff;
  --border-soft: #e6ebf5;

  /* Colores de Marca (Azul GDL) - alineado con index.html */
  --brand: #2962ff;
  --brand-dark: #0b3fcc;
  --brand-gradient: linear-gradient(135deg, #2962ff 0%, #0b3fcc 100%);
  --neon-purple: #2962ff;
  --neon-blue: #2962ff;
  --accent-soft: #eaf1ff;

  /* Estado "en vivo" (rojo neón) */
  --live: #ff1744;
  --live-soft: rgba(255, 23, 68, 0.12);
  --live-glow: rgba(255, 23, 68, 0.65);

  /* Textos */
  --text-main: #0b1536;
  --text-muted: #5b6478;

  /* Efectos */
  --glass-border: rgba(41, 98, 255, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Habilita transición nativa entre páginas (Chrome/Edge; se ignora donde no hay soporte) */
@view-transition {
  navigation: auto;
}

/* --- Base Global --- */
html {
  overflow-x: hidden;
}

html, body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-page);
  background-image: radial-gradient(rgba(41, 98, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text-main);
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  position: relative;
}

body::before,
body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(41, 98, 255, 0.28), transparent 70%);
}

body::after {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(128, 180, 255, 0.24), transparent 70%);
}

/*Separacion header*/
main {
  padding-top: 24px !important;
}

#patrocinadores, .section-sponsors {
  margin-bottom: 60px;
}

/* --- Animaciones --- */
@keyframes neon-radar {
  0% { transform: scale(0.8); opacity: 1; border-width: 2px; }
  100% { transform: scale(3); opacity: 0; border-width: 0px; }
}

@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes agenda-stagger-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes agenda-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.55), 0 0 16px rgba(255, 23, 68, 0.55),
      0 0 32px rgba(255, 23, 68, 0.35), 0 8px 20px rgba(11, 21, 54, 0.08);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 23, 68, 0), 0 0 22px rgba(255, 23, 68, 0.7),
      0 0 44px rgba(255, 23, 68, 0.45), 0 8px 20px rgba(11, 21, 54, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 23, 68, 0), 0 0 16px rgba(255, 23, 68, 0.55),
      0 0 32px rgba(255, 23, 68, 0.35), 0 8px 20px rgba(11, 21, 54, 0.08);
  }
}

/* --- Header --- */
header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.agenda-logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1536 0%, #030610 100%);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.agenda-logo-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 21, 54, 0.25);
}

.agenda-hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.agenda-hero-title {
  display: inline-block;
  max-width: 18ch;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(1.65rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--text-main) 0%, var(--brand) 65%, #5b8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  animation: agenda-title-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.agenda-hero-underline {
  display: block;
  margin: 18px auto 0;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-gradient);
  animation: agenda-underline-in 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes agenda-title-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes agenda-underline-in {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 84px; }
}

header span.rounded-full.bg-\[color\:var\(--brand\)\] {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--brand) !important;
  box-shadow: 0 0 8px rgba(41, 98, 255, 0.5);
  position: relative;
}

header span.rounded-full.bg-\[color\:var\(--brand\)\]::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: 0;
  animation: neon-radar 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

header p.rounded-full {
  background: #ffffff !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-main) !important;
  box-shadow: 0 2px 8px rgba(11, 21, 54, 0.06);
}

/* --- Fecha del evento (reemplaza los tabs de día) --- */
.agenda-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(41, 98, 255, 0.25);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.agenda-date-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 6px rgba(41, 98, 255, 0.5);
}

/* --- Bento: bloques y tarjetas de la agenda --- */
.agenda-bento {
  animation: agenda-stagger-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Sesiones siempre una debajo de otra (también en laptop/PC): al ir lado a
   lado con el grid de 6 columnas de Tailwind se leían como simultáneas
   aunque son consecutivas en el tiempo. */
.agenda-bento.grid {
  grid-template-columns: 1fr;
}

.agenda-bento.grid > * {
  grid-column: 1 / -1;
}

.agenda-bento > *:nth-child(1) { animation-delay: 0.05s; }
.agenda-bento > *:nth-child(2) { animation-delay: 0.15s; }
.agenda-bento > *:nth-child(3) { animation-delay: 0.25s; }
.agenda-bento > *:nth-child(4) { animation-delay: 0.35s; }

.agenda-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(11, 21, 54, 0.06);
  transition: var(--transition-smooth);
  animation: agenda-stagger-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scroll-margin-top: 80px;
}

.agenda-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--brand);
  box-shadow: 0 14px 28px rgba(41, 98, 255, 0.15);
}

.agenda-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.agenda-time {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(41, 98, 255, 0.15);
  color: var(--brand-dark);
  font-family: 'Inter', monospace;
  font-size: 0.75rem;
  white-space: nowrap;
}

.agenda-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.agenda-tag--sponsor {
  color: var(--brand);
  border-color: rgba(41, 98, 255, 0.35);
  background: var(--accent-soft);
}

.agenda-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.agenda-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.agenda-card:hover .agenda-title {
  color: var(--brand);
}

.agenda-title--hero {
  font-size: 1.4rem;
}

.agenda-speaker {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agenda-speaker span {
  color: var(--text-main);
  font-weight: 700;
}

/* --- Tarjeta Hero (Apertura / Cierre): tarjeta "featured" en azul sólido --- */
.agenda-card--hero {
  padding: 32px;
  background: var(--brand-gradient);
  border: none;
  box-shadow: 0 14px 32px rgba(41, 98, 255, 0.28);
}

.agenda-card--hero:hover {
  border: none;
  box-shadow: 0 18px 40px rgba(41, 98, 255, 0.36);
}

.agenda-card--hero .agenda-title,
.agenda-card--hero .agenda-speaker span {
  color: #ffffff;
}

.agenda-card--hero:hover .agenda-title {
  color: #ffffff;
}

.agenda-card--hero .agenda-speaker {
  color: rgba(255, 255, 255, 0.75);
}

.agenda-card--hero .agenda-time {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.agenda-card--hero .agenda-tag {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.agenda-card--hero .agenda-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.agenda-card--hero .agenda-card__icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

/* --- Tarjeta Patrocinio (compacta) --- */
.agenda-card--sponsor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fbfcff;
  border-style: dashed;
  border-color: rgba(41, 98, 255, 0.35);
}

.agenda-card--sponsor .agenda-title {
  margin-top: 10px;
  font-size: 0.95rem;
}

/* --- Barra de Break / Networking --- */
.agenda-break {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--brand-gradient);
  border: none;
  box-shadow: 0 8px 20px rgba(41, 98, 255, 0.22);
  transition: var(--transition-smooth);
  scroll-margin-top: 80px;
  animation: agenda-stagger-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.agenda-break:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(41, 98, 255, 0.3);
}

.agenda-break__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agenda-break .agenda-time {
  height: 40px;
  min-width: 100px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 900;
}

.agenda-break__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.agenda-break__sub {
  margin-top: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.agenda-break__icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

/* --- Estado "EN VIVO" --- */
.agenda-card.is-live-active,
.agenda-break.is-live-active {
  border: 2px solid var(--live) !important;
  animation: agenda-live-pulse 2.2s infinite;
  transform: scale(1.015);
  z-index: 20;
}

.agenda-card--hero.is-live-active,
.agenda-break.is-live-active {
  border: 2px solid #ffffff !important;
  outline: 2px solid var(--live);
  outline-offset: 2px;
  box-shadow: 0 0 18px var(--live-glow), 0 0 36px rgba(255, 23, 68, 0.3);
}

.agenda-card.is-live-active::after,
.agenda-break.is-live-active::after {
  content: '● EN ESTE MOMENTO';
  position: absolute;
  top: -13px;
  right: 16px;
  background: var(--live);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 4px 12px;
  border-radius: 20px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px var(--live), 0 0 22px var(--live-glow), 0 5px 15px rgba(11, 21, 54, 0.25);
  text-transform: uppercase;
  border: 2px solid #ffffff;
  animation: blink-text 1.6s infinite;
  z-index: 50;
}

/* Revelado al hacer scroll (ver js/agenda.js) */
.agenda-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.agenda-reveal.is-visible {
  animation: agenda-stagger-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.agenda-reveal.is-visible-instant {
  opacity: 1;
  transform: none;
}

/* --- Footer (igual que index.html, sin el botón CTA) --- */
.site-footer {
  background-color: #030610;
  color: #ffffff;
  padding: 60px 10% 20px;
  border-top: 2px solid rgba(41, 98, 255, 0.2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logos {
  display: flex;
  align-items: center;
}

.footer-logos-img {
  height: 90px;
  width: auto;
  max-width: 100%;
  display: block;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #80e5ff;
  color: #030610;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(128, 229, 255, 0.3);
  border-color: #80e5ff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #8892b0;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  margin: 0;
}

.privacy-link {
  color: #8892b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #80e5ff;
  text-decoration: underline;
}

@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .footer-logos {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .agenda-break {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

/* --- Sidebar de patrocinadores: se mantiene visible al hacer scroll (desktop) --- */
.agenda-sponsor-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}

/* --- Menú de horarios (barra de chips horizontal, sticky) --- */
.agenda-chip-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -1rem 2rem;
  padding: 0.75rem 1rem;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.agenda-chip-bar__track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.agenda-chip-bar__track::-webkit-scrollbar {
  display: none;
}

.agenda-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.agenda-chip__label {
  font-weight: 600;
  opacity: 0.85;
}

.agenda-chip--break {
  font-style: italic;
  opacity: 0.75;
}

.agenda-chip:hover {
  border-color: var(--brand);
  color: var(--text-main);
}

.agenda-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.agenda-chip.is-active .agenda-chip__label {
  opacity: 0.85;
}

/* --- Efecto Resonance para Imagen de Patrocinadores --- */
.sponsor-resonance-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft) !important;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(11, 21, 54, 0.06);
}

.sponsor-resonance-card:hover {
  box-shadow: 0 12px 26px rgba(41, 98, 255, 0.18);
  border-color: var(--brand) !important;
  transform: translateY(-5px);
  z-index: 10;
}

.sponsor-resonance-card img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
  width: 100%;
}

.sponsor-resonance-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* --- Tarjetas individuales de logos de patrocinadores --- */
.agenda-sponsor-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(11, 21, 54, 0.06);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.agenda-sponsor-tile:hover {
  box-shadow: 0 12px 26px rgba(41, 98, 255, 0.18);
  border-color: var(--brand);
  transform: translateY(-5px);
}

.agenda-sponsor-tile-label {
  height: 20px;
  width: auto;
}

.agenda-sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.agenda-sponsor-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* El PNG de Omilia trae el tagline "Conversational Intelligence" dentro del
   canvas (~30% del alto), así que a igual height que los demás se ve más
   chico; se compensa para que el wordmark quede visualmente parejo. */
.agenda-sponsor-logo[src*="omiliaa"] {
  height: 46px;
}

/* IPCOM y net2phone (SVG recortado sin padding) van al mismo tamaño,
   más chico que el resto para que la tarjeta "Otros" no se vea grande. */
.agenda-sponsor-logo[src*="ipcom"],
.agenda-sponsor-logo[src*="net2phone"] {
  height: 24px;
}
