/* Sycai contenidos: páginas Access IFU y Events.
   Todo cuelga de un contenedor propio (.syc-ifu-*, .syc-evento*, .syc-eventos, .syc-vacio)
   porque las píldoras y botones (.syc-pildora, .syc-boton) los comparte la página Evidence. */

/* ---------- Comunes a las secciones de estas dos páginas ---------- */
.syc-ifu-producto,
.syc-evento,
.syc-vacio {
  font-family: var(--syc-fuente);
}
.syc-seccion--gris {
  background-color: var(--syc-gris-fondo);
}

/* ---------- IFU: banda azul con el formulario ---------- */
.syc-ifu-banda {
  background-color: var(--syc-azul-oscuro);
  align-items: center;
}
.elementor .syc-ifu-banda.e-con > .syc-ifu-form.elementor-widget {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}
.syc-ifu-banda .elementor-form-fields-wrapper {
  row-gap: 14px;
  margin: 0;
}
.syc-ifu-banda .elementor-field-group {
  padding: 0;
  margin: 0;
}
.syc-ifu-banda .elementor-field-group .elementor-field-textual {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  color: #fff !important;
  font-family: var(--syc-fuente);
  font-size: 14px;
  line-height: 1.3;
  background-color: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  border-radius: 14px !important;
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.syc-ifu-banda .elementor-field-group .elementor-field-textual::placeholder {
  color: rgba(255, 255, 255, .68);
  opacity: 1;
}
.syc-ifu-banda .elementor-field-group .elementor-field-textual:hover {
  border-color: rgba(255, 255, 255, .65) !important;
}
.syc-ifu-banda .elementor-field-group .elementor-field-textual:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, .12) !important;
  border-color: #fff !important;
}
.syc-ifu-banda .elementor-field-group .elementor-field-textual:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 100px #1a2160 inset;
}
.syc-ifu-banda .elementor-field-type-submit {
  justify-content: center;
  margin-top: 6px;
}
.syc-ifu-banda .elementor-field-type-submit .elementor-button {
  min-height: 46px;
  padding: 12px 34px;
  color: #fff;
  font-family: var(--syc-fuente);
  font-size: 14px;
  font-weight: 700;
  background: var(--syc-naranja) !important;
  border: 0 !important;
  border-radius: 14px !important;
  transition: filter .15s ease, transform .15s ease;
}
.syc-ifu-banda .elementor-field-type-submit .elementor-button:hover {
  filter: brightness(1.1);
}
.syc-ifu-banda .elementor-field-type-submit .elementor-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.syc-ifu-banda .elementor-message {
  margin: 10px 0 0;
  padding: 0;
  font-size: 14px;
  text-align: center;
  color: #fff;
}
.syc-ifu-banda .elementor-message.elementor-message-danger { color: #ffb4a5; }
.syc-ifu-banda .elementor-message.elementor-message-success { color: #a9efc9; }

/* Tras enviar: la banda se pliega a una línea con el mensaje de Elementor. */
.elementor .syc-ifu-banda.e-con:has(.syc-ifu-form-enviado) {
  --padding-top: 28px;
  --padding-bottom: 28px;
}
.syc-ifu-form-enviado .elementor-field-group {
  display: none;
}
.syc-ifu-form-enviado .elementor-message {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- IFU: encabezado de las tablas ---------- */
.syc-seccion--gris:has(.syc-ifu) .syc-cabecera-seccion {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 32px;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}
.syc-seccion--gris:has(.syc-ifu) .syc-cabecera-seccion > .elementor-widget-heading {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}
.syc-seccion--gris:has(.syc-ifu) .syc-cabecera-seccion > .syc-ifu-ayuda {
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
}
.syc-seccion--gris:has(.syc-ifu) .syc-cabecera-seccion .elementor-heading-title {
  text-align: left;
}

/* ---------- IFU: tablas por producto ---------- */
.syc-ifu {
  --syc-ifu-ancho: 780px;
}
.syc-ifu__tablas {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--syc-ifu-ancho);
  margin: 8px auto 0;
}
.syc-ifu__tablas[hidden] { display: none; }

.syc-ifu-producto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11, 18, 64, .08);
  overflow: hidden;
  color: var(--syc-texto);
}
.syc-ifu-producto__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--syc-borde);
}
.syc-ifu-producto .syc-ifu-producto__nombre {
  margin: 0;
  font-family: var(--syc-fuente);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--syc-azul);
}
.syc-ifu-producto__total {
  margin-left: auto;
  font-size: 14px;
  color: #4b5175;
  white-space: nowrap;
}

.syc-ifu-producto .syc-pildora {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  border-radius: 999px;
  white-space: nowrap;
}
.syc-ifu-producto .syc-pildora--producto {
  color: #fff;
  background: var(--syc-azul-oscuro);
  text-transform: uppercase;
}
.syc-ifu-producto .syc-pildora--latest {
  margin-left: 6px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #17744c;
  background: #dcf5e8;
}

.syc-ifu-producto .syc-ifu-tabla {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  font-size: 14px;
  table-layout: fixed;
}
.syc-ifu-producto .syc-ifu-tabla th,
.syc-ifu-producto .syc-ifu-tabla td {
  padding: 14px 28px;
  text-align: left;
  vertical-align: middle;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--syc-borde);
}
.syc-ifu-producto .syc-ifu-tabla tbody tr:nth-child(odd) > td,
.syc-ifu-producto .syc-ifu-tabla tbody tr:nth-child(even) > td {
  background: transparent;
}
.syc-ifu-producto .syc-ifu-tabla tbody tr:last-child > td {
  border-bottom: 0;
}
.syc-ifu-producto .syc-ifu-tabla thead th {
  padding-block: 12px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4b5175;
}
.syc-ifu-producto .syc-ifu-tabla th:nth-child(1),
.syc-ifu-producto .syc-ifu-tabla td:nth-child(1) { width: 32%; }
.syc-ifu-producto .syc-ifu-tabla th:nth-child(2),
.syc-ifu-producto .syc-ifu-tabla td:nth-child(2) { width: 30%; }
.syc-ifu-producto .syc-ifu-tabla td:nth-child(3) { text-align: left; }

.syc-ifu-producto .syc-version {
  display: inline-block;
  padding: 3px 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--syc-azul);
  background: #e9ebf4;
  border-radius: 999px;
}
.syc-ifu-producto .syc-codigo-pais {
  display: inline-block;
  min-width: 26px;
  margin-right: 8px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  text-align: center;
  color: #4a5078;
  background: #fff;
  border: 1px solid #c9cde0;
  border-radius: 4px;
}

/* Botones: descargar PDF (naranja) y label (azul, secundario) */
.syc-ifu-producto .syc-boton-pdf,
.syc-ifu-producto__label a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-family: var(--syc-fuente);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.syc-ifu-producto .syc-boton-pdf::before,
.syc-ifu-producto__label a::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: var(--syc-icono) center / contain no-repeat;
  mask: var(--syc-icono) center / contain no-repeat;
}
.syc-ifu-producto .syc-boton-pdf {
  --syc-icono: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
  color: var(--syc-naranja);
}
.syc-ifu-producto .syc-boton-pdf:hover,
.syc-ifu-producto .syc-boton-pdf:focus-visible {
  color: #fff;
  background: var(--syc-naranja);
  border-color: var(--syc-naranja);
}
.syc-ifu-producto__label {
  margin: 0;
  padding: 16px 28px 20px;
  text-align: right;
  border-top: 1px solid var(--syc-borde);
}
.syc-ifu-producto__label a {
  --syc-icono: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.3'/%3E%3C/svg%3E");
  padding: 9px 20px;
  color: var(--syc-azul);
  border-color: var(--syc-azul);
}
.syc-ifu-producto__label a:hover,
.syc-ifu-producto__label a:focus-visible {
  color: #fff;
  background: var(--syc-azul);
}
.syc-ifu-producto .syc-boton-pdf:focus-visible,
.syc-ifu-producto__label a:focus-visible {
  outline: 2px solid var(--syc-azul);
  outline-offset: 2px;
}

/* ---------- Events ---------- */
.elementor .syc-seccion--gris:has(.syc-eventos, .syc-vacio) > .e-con-inner {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}
.syc-eventos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 8px 0 0;
  padding: 0;
}
.syc-evento {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11, 18, 64, .08);
  color: var(--syc-texto);
}
.syc-evento .syc-evento__nombre {
  margin: 0 0 4px;
  font-family: var(--syc-fuente);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--syc-azul);
}
.syc-evento .syc-evento__nombre a {
  color: inherit;
  text-decoration: none;
}
.syc-evento .syc-evento__nombre a:hover,
.syc-evento .syc-evento__nombre a:focus-visible {
  text-decoration: underline;
}
.syc-evento .syc-evento__dato {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #4b5175;
}
.syc-evento .syc-evento__dato::before,
.syc-evento .syc-pildora--stand::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  background-color: currentColor;
  -webkit-mask: var(--syc-icono) center / contain no-repeat;
  mask: var(--syc-icono) center / contain no-repeat;
}
.syc-evento .syc-evento__dato--lugar {
  --syc-icono: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}
.syc-evento .syc-evento__dato--fecha {
  --syc-icono: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 10h17'/%3E%3C/svg%3E");
}
.syc-evento .syc-pildora--stand {
  --syc-icono: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3.5' width='16' height='17' rx='2'/%3E%3Cpath d='M9 8h.01M15 8h.01M9 12h.01M15 12h.01M10 20.5v-4h4v4'/%3E%3C/svg%3E");
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin: 4px 0 2px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #17744c;
  background: #e1f6ea;
  border-radius: 999px;
}
.syc-evento .syc-pildora--stand::before {
  width: 13px;
  height: 13px;
  margin-top: 0;
}
.syc-evento .syc-evento__descripcion {
  flex: 1 1 auto;
  margin: 4px 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--syc-texto);
}
.syc-evento .syc-boton {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: auto;
  padding: 12px 18px;
  font-family: var(--syc-fuente);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--syc-azul);
  border: 1px solid var(--syc-azul);
  border-radius: 10px;
  transition: background-color .15s ease;
}
.syc-evento .syc-boton:hover {
  background: var(--syc-azul-oscuro);
  border-color: var(--syc-azul-oscuro);
  color: #fff;
}
.syc-evento .syc-boton:focus-visible {
  outline: 2px solid var(--syc-azul);
  outline-offset: 3px;
}

/* Sin eventos */
.syc-vacio {
  max-width: 640px;
  margin: 12px auto 0;
  padding: 44px 28px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--syc-azul);
  background: #fff;
  border: 1px dashed #c5cae0;
  border-radius: 12px;
}
.syc-vacio::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  background-color: var(--syc-azul);
  opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 10h17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 10h17'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Tableta y móvil ---------- */
@media (max-width: 899px) {
  .syc-eventos { grid-template-columns: 1fr; }
  .elementor .syc-seccion--gris:has(.syc-eventos, .syc-vacio) > .e-con-inner {
    max-width: 560px;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .elementor .syc-seccion--gris.e-con:has(.syc-eventos, .syc-vacio) {
    padding-inline: 24px !important;
  }
}
@media (max-width: 767px) {
  .elementor .syc-ifu-banda.e-con {
    padding: 48px 20px !important;
  }
  .syc-eventos { gap: 18px; }
  .syc-ifu__tablas { gap: 24px; }
  .syc-ifu-producto__cabecera { padding: 16px 18px; }
  .syc-ifu-producto__total { margin-left: 0; flex-basis: 100%; }
  .syc-ifu-producto .syc-ifu-tabla thead { display: none; }
  .syc-ifu-producto .syc-ifu-tabla,
  .syc-ifu-producto .syc-ifu-tabla tbody { display: block; }
  .syc-ifu-producto .syc-ifu-tabla tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "version boton" "idioma boton";
    gap: 8px 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--syc-borde);
  }
  .syc-ifu-producto .syc-ifu-tabla tbody tr:last-child { border-bottom: 0; }
  .syc-ifu-producto .syc-ifu-tabla td,
  .syc-ifu-producto .syc-ifu-tabla tbody tr:last-child > td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .syc-ifu-producto .syc-ifu-tabla td:nth-child(1) { grid-area: version; width: auto; }
  .syc-ifu-producto .syc-ifu-tabla td:nth-child(2) { grid-area: idioma; width: auto; }
  .syc-ifu-producto .syc-ifu-tabla td:nth-child(3) { grid-area: boton; }
  .syc-ifu-producto .syc-ifu-tabla td,
  .syc-ifu-producto .syc-version,
  .syc-ifu-producto__total { font-size: 16px; }
  .syc-ifu-producto .syc-pildora--latest { font-size: 13px; }
  .syc-ifu-producto .syc-boton-pdf,
  .syc-ifu-producto__label a {
    min-height: 44px;
    padding-block: 10px;
    font-size: 14px;
  }
  .syc-ifu-producto__label { padding: 14px 18px 18px; text-align: left; }
}
