/* Encabezado de 2contact.org: barra flotante en computadora, portal a pantalla completa en celular. */

.c2m, .c2m-portal {
  --c2m-fondo: #141617;
  --c2m-texto: #fcfffd;
  --c2m-verde: #52ff1e;
  --c2m-rojo: #f90744;
  --c2m-linea: rgba(252, 255, 253, .12);
}

/* --c2m-tope (desplazamiento por la barra de administración) no se declara aquí: la fija el cargador en :root. */

/* Se fijan valores base para no heredar los del tema (Avada). */
.c2m, .c2m-portal, .c2m-saltar {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  box-sizing: border-box;
  color: var(--c2m-texto);
}

.c2m *, .c2m *::before, .c2m *::after,
.c2m-portal *, .c2m-portal *::before, .c2m-portal *::after { box-sizing: border-box; }

.c2m a, .c2m button, .c2m-portal a, .c2m-portal button { font-family: inherit; }
.c2m ul, .c2m-portal ul { list-style: none; margin: 0; padding: 0; }
.c2m li, .c2m-portal li { line-height: inherit; }

/* Saltar al contenido: invisible hasta que recibe foco. */
html a.c2m-saltar,
html a.c2m-saltar:hover, html a.c2m-saltar:focus {
  color: #0c0d0e;
  text-decoration: none;
}
html a.c2m-saltar {
  position: fixed;
  top: calc(var(--c2m-tope, 0px) + 8px);
  left: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: #52ff1e;
  font: 600 13px/1 "Poppins", Arial, sans-serif;
  border-radius: 3px;
  transform: translateY(-200%);
  transition: transform .2s;
}
html a.c2m-saltar:focus { transform: none; }

/* ---- Barra ---- */
.c2m {
  position: fixed;
  top: calc(var(--c2m-tope, 0px) + 16px);
  left: 24px;
  right: 24px;
  z-index: 9990;
}

.c2m-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px 10px 22px;
  background: rgba(20, 22, 23, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--c2m-linea);
  border-radius: 6px;
  transition: padding .2s, background-color .2s;
}

.c2m-compacta .c2m-barra {
  padding-top: 5px;
  padding-bottom: 5px;
  background: rgba(20, 22, 23, .85);
}

.c2m a.c2m-logo { flex: none; display: block; line-height: 0; }
.c2m-logo-img { display: block; height: 26px; width: auto; }

/* ---- Navegación de escritorio ---- */
.c2m-nav { flex: 1 1 0; min-width: 0; }
.c2m-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  column-gap: 26px;
  min-width: 0;
}

.c2m-item { position: relative; display: flex; align-items: center; }

.c2m a.c2m-enlace, .c2m button.c2m-abre-panel {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c2m-texto);
  text-decoration: none;
  transition: color .2s;
}
.c2m a.c2m-enlace { padding-block: 8px; white-space: nowrap; }
.c2m a.c2m-enlace:hover,
.c2m a.c2m-enlace:focus,
.c2m-item.c2m-activo > a.c2m-enlace,
.c2m-item.c2m-activo > button.c2m-abre-panel,
.c2m button.c2m-abre-panel:hover,
.c2m button.c2m-abre-panel[aria-expanded="true"] { color: var(--c2m-verde); }

.c2m button.c2m-abre-panel {
  background: none;
  border: 0;
  padding: 8px 0 8px 6px;
  margin: 0;
  cursor: pointer;
  letter-spacing: 0;
}

/* Panel de sub-enlaces */
.c2m-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  padding: 12px 18px;
  background: rgba(20, 22, 23, .99);
  border: 1px solid var(--c2m-linea);
  border-top: 2px solid var(--c2m-verde);
  border-radius: 0 0 6px 6px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.c2m-item:last-child > .c2m-panel { left: auto; right: 0; }
.c2m-abre-panel[aria-expanded="true"] + .c2m-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
}
/* Sin JavaScript, el panel se abre con cursor o con foco. */
html:not(.c2m-js) .c2m-item:hover > .c2m-panel,
html:not(.c2m-js) .c2m-item:focus-within > .c2m-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.c2m a.c2m-subenlace {
  display: block;
  padding: 8px 0;
  color: var(--c2m-texto);
  text-decoration: none;
}
.c2m-subenlace b {
  display: block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s;
}
.c2m-subenlace span {
  display: block;
  margin-top: 2px;
  font: 400 13px/1.45 "Open Sans", Arial, sans-serif;
  color: #9aa69c;
}
.c2m a.c2m-subenlace:hover b, .c2m a.c2m-subenlace:focus b, .c2m a.c2m-subenlace.c2m-activo b { color: var(--c2m-verde); }

/* ---- Radio y Booking ---- */
.c2m-acciones { flex: none; display: flex; align-items: center; gap: 18px; }

.c2m a.c2m-radio, .c2m-portal a.c2m-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c2m-texto);
  text-decoration: none;
  transition: color .2s;
}
.c2m a.c2m-radio:hover, .c2m a.c2m-radio:focus,
.c2m-portal a.c2m-radio:hover, .c2m-portal a.c2m-radio:focus { color: var(--c2m-verde); }

.c2m-punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c2m-rojo);
  box-shadow: 0 0 0 0 rgba(249, 7, 68, .7);
  animation: c2m-pulso 1.8s infinite;
}
@keyframes c2m-pulso {
  70% { box-shadow: 0 0 0 9px rgba(249, 7, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 7, 68, 0); }
}

.c2m a.c2m-booking, .c2m-portal a.c2m-booking {
  display: inline-block;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0c0d0e;
  text-decoration: none;
  background: var(--c2m-verde);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(82, 255, 30, .45);
}
.c2m a.c2m-booking:hover, .c2m a.c2m-booking:focus,
.c2m-portal a.c2m-booking:hover, .c2m-portal a.c2m-booking:focus {
  color: #0c0d0e;
  background: var(--c2m-verde);
  text-decoration: none;
}

.c2m-abre-portal, .c2m-cierra-portal {
  display: none;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c2m-texto);
  background: transparent;
  border: 1px solid var(--c2m-linea);
  border-radius: 3px;
  cursor: pointer;
}

/* Foco visible en todos los controles */
.c2m a:focus-visible, .c2m button:focus-visible,
.c2m-portal a:focus-visible, .c2m-portal button:focus-visible {
  outline: 2px solid var(--c2m-verde);
  outline-offset: 3px;
}

/* ---- Portal (solo se ve en celular y tableta) ---- */
.c2m-portal { display: none; }

@media (max-width: 1023.98px) {
  .c2m {
    top: var(--c2m-tope, 0px);
    left: 0;
    right: 0;
  }
  .c2m-barra {
    gap: 12px;
    padding: 10px 16px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(20, 22, 23, .85);
  }
  .c2m-compacta .c2m-barra { padding-top: 10px; padding-bottom: 10px; }
  .c2m-logo-img { height: 20px; }
  .c2m-nav, .c2m-barra a.c2m-booking { display: none; }
  .c2m-acciones { gap: 14px; }
  .c2m-abre-portal { display: inline-block; }

  .c2m-portal:not([hidden]) {
    position: fixed;
    top: var(--c2m-tope, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    /* Por encima de todo lo flotante del sitio (reproductor de radio, WhatsApp, botón de subir). */
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(12, 13, 14, .93);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: c2m-entra .22s ease-out;
  }
  .c2m-cierra-portal { display: inline-block; align-self: flex-end; }
}

@keyframes c2m-entra { from { opacity: 0; } to { opacity: 1; } }

/* Bloqueo del desplazamiento de la página con el portal abierto (clase en html) */
.c2m-portal-abierto, .c2m-portal-abierto body { overflow: hidden; }

.c2m-portal-nav { margin-block: auto; }
.c2m-portal-nav > ul { display: flex; flex-direction: column; gap: 6px; }

.c2m-portal a.c2m-portal-enlace {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(34px, 11vw, 64px);
  line-height: 1.12;
  text-decoration: none;
  color: transparent;
  -webkit-text-stroke: 1px var(--c2m-texto);
  transition: color .2s, text-shadow .2s, -webkit-text-stroke-color .2s;
}
.c2m-portal a.c2m-portal-enlace:hover,
.c2m-portal a.c2m-portal-enlace:focus,
.c2m-portal a.c2m-portal-enlace:active,
.c2m-portal .c2m-portal-item.c2m-activo > a.c2m-portal-enlace {
  color: var(--c2m-verde);
  -webkit-text-stroke-color: var(--c2m-verde);
  text-shadow: 0 0 24px rgba(82, 255, 30, .55);
}

.c2m-portal-sub { margin: 4px 0 12px 4px; display: flex; flex-direction: column; gap: 2px; }
.c2m-portal a.c2m-portal-subenlace {
  display: inline-block;
  padding: 6px 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c2m-texto);
}
.c2m-portal a.c2m-portal-subenlace:hover, .c2m-portal a.c2m-portal-subenlace:focus,
.c2m-portal a.c2m-portal-subenlace.c2m-activo { color: var(--c2m-verde); }

.c2m-js .c2m-portal a.c2m-portal-enlace[aria-expanded="false"] + .c2m-portal-sub { display: none; }

.c2m-portal-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--c2m-linea);
}

/* Sin JavaScript en celular (o antes de que cargue): el menú es un bloque normal bajo la barra. */
@media (max-width: 1023.98px) {
  html:not(.c2m-js) .c2m-portal {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    margin-top: calc(var(--c2m-tope, 0px) + 41px); /* alto de la barra */
    padding: 20px 24px 28px;
    background: var(--c2m-fondo);
    animation: none;
  }
  html:not(.c2m-js) .c2m-abre-portal,
  html:not(.c2m-js) .c2m-cierra-portal { display: none !important; }
}

/* Navegadores sin desenfoque de fondo: fondos casi opacos. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .c2m-barra, .c2m-compacta .c2m-barra { background: rgba(20, 22, 23, .94); }
  .c2m-portal:not([hidden]) { background: rgba(12, 13, 14, .98); }
}

/* Colores forzados (alto contraste): el texto transparente con trazo se vería vacío. */
@media (forced-colors: active) {
  .c2m-portal a.c2m-portal-enlace { color: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  .c2m *, .c2m-portal, .c2m-portal:not([hidden]), .c2m-portal *, .c2m-saltar {
    transition: none !important;
    animation: none !important;
  }
}

/* En papel (boletos, confirmaciones) el encabezado fijo no se imprime. */
@media print {
  .c2m, .c2m-portal, html a.c2m-saltar { display: none !important; }
}
