/* ============================================================
   PATROCINADORES
   ============================================================ */

.du-patrocinadores {
  min-height: 100vh;
  padding: 72px 24px 100px;
  background:
    radial-gradient(
      circle at 8% 5%,
      rgba(48, 181, 203, 0.1),
      transparent 28%
    ),
    #f5f7fa;
}

.du-patrocinadores *,
.du-patrocinadores *::before,
.du-patrocinadores *::after {
  box-sizing: border-box;
}

.du-patrocinadores__container {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.du-patrocinadores__header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.du-patrocinadores__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e7f8fa;
  color: #087e8b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.du-patrocinadores__title {
  margin: 0;
  color: #f27d0d;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
}

.du-patrocinadores__description {
  max-width: 680px;
  margin: 18px auto 0;
  color: #596273;
  font-size: 17px;
  line-height: 1.6;
}

.du-patrocinadores__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.du-patrocinadores__search {
  display: flex;
  width: min(440px, 100%);
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid #d9e1ea;
  border-radius: 24px;
  background: #fff;
  color: #7c8796;
  box-shadow: 0 8px 28px rgba(15, 30, 55, 0.06);
}

.du-patrocinadores__search:focus-within {
  border-color: #13a8b4;
  box-shadow:
    0 0 0 4px rgba(19, 168, 180, 0.12),
    0 8px 28px rgba(15, 30, 55, 0.06);
}

.du-patrocinadores__search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17213f;
  font: inherit;
  font-size: 15px;
}

.du-patrocinadores__search-input::placeholder {
  color: #929baa;
}

.du-patrocinadores__counter {
  flex: 0 0 auto;
  color: #697485;
  font-size: 14px;
  font-weight: 700;
}

.du-patrocinadores__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.du-patrocinadores__card {
  min-width: 0;
}

.du-patrocinadores__card[hidden] {
  display: none;
}

.du-patrocinadores__card-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 248px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 18px;
  border: 1px solid #e0e6ed;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(15, 30, 55, 0.06);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.du-patrocinadores__card-button::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #15a9b4;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.du-patrocinadores__card-button:hover,
.du-patrocinadores__card-button:focus-visible {
  border-color: #85d5dc;
  outline: 0;
  box-shadow: 0 16px 38px rgba(15, 30, 55, 0.12);
  transform: translateY(-4px);
}

.du-patrocinadores__card-button:hover::before,
.du-patrocinadores__card-button:focus-visible::before {
  transform: scaleX(1);
}

.du-patrocinadores__logo-wrapper {
  display: flex;
  width: 100%;
  height: 112px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.du-patrocinadores__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.du-patrocinadores__logo-placeholder {
  display: flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f6f8;
  color: #1098a4;
  font-size: 36px;
  font-weight: 800;
}

.du-patrocinadores__name {
  margin: 0;
  color: #17213f;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.du-patrocinadores__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
  color: #0a929d;
  font-size: 13px;
  font-weight: 800;
}

.du-patrocinadores__empty {
  padding: 44px 24px;
  border: 1px dashed #bdc8d5;
  border-radius: 16px;
  background: #fff;
  color: #687485;
  text-align: center;
}

/* Modal base. Se completa en el siguiente átomo. */

/* ============================================================
   MODAL CENTRADO EN TODA LA PANTALLA
   ============================================================ */

dialog.du-patrocinador-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999;

  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 20px !important;

  border: 0 !important;
  background: transparent !important;

  box-sizing: border-box;
  overflow: hidden !important;
}

dialog.du-patrocinador-modal:not([open]) {
  display: none !important;
}

dialog.du-patrocinador-modal[open] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

dialog.du-patrocinador-modal::backdrop {
  background: rgba(5, 15, 39, 0.78);
  backdrop-filter: blur(3px);
}

/* Caja blanca interna */
.du-patrocinador-modal__surface {
  position: relative;

  width: min(1120px, 100%);
  max-width: 1120px;

  max-height: calc(100vh - 40px);

  padding: 48px 32px 32px;

  border: 6px solid #17213f;
  border-radius: 12px;

  background: #ffffff;
  box-shadow: 0 24px 70px rgba(5, 15, 39, 0.35);

  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Botón cerrar */
.du-patrocinador-modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;

  display: flex;
  width: 34px;
  height: 34px;

  align-items: center;
  justify-content: center;

  margin-top: -32px;
  margin-right: -16px;

  padding: 0;

  border: 1px solid #149ba6;
  border-radius: 50%;

  background: #ffffff;
  color: #149ba6;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}

html.du-patrocinador-is-open,
body.du-patrocinador-is-open {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  dialog.du-patrocinador-modal {
    padding: 10px !important;
  }

  .du-patrocinador-modal__surface {
    width: 100%;
    max-height: calc(100vh - 20px);

    padding: 48px 20px 24px;

    border-width: 4px;
  }

  .du-patrocinador-modal__close {
    margin-right: -6px;
  }
}

@media (max-width: 480px) {
  dialog.du-patrocinador-modal {
    padding: 5px !important;
  }

  .du-patrocinador-modal__surface {
    max-height: calc(100vh - 10px);
    padding: 46px 14px 20px;
  }
}

.du-patrocinador-modal::backdrop {
  background: rgba(5, 15, 39, 0.78);
  backdrop-filter: blur(3px);
}



.du-patrocinador-modal__close {
  position: absolute;
  top: 40px;
  right: 16px;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #149ba6;
  border-radius: 50%;
  background: #fff;
  color: #149ba6;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .du-patrocinadores__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .du-patrocinadores__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .du-patrocinadores {
    padding: 48px 15px 72px;
  }

  .du-patrocinadores__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .du-patrocinadores__counter {
    text-align: right;
  }

  .du-patrocinadores__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .du-patrocinadores__card-button {
    min-height: 210px;
    padding: 18px 12px 14px;
  }

  .du-patrocinadores__logo-wrapper {
    height: 90px;
  }

  .du-patrocinadores__name {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .du-patrocinadores__grid {
    grid-template-columns: 1fr;
  }
}

html.du-patrocinador-is-open,
body.du-patrocinador-is-open {
  overflow: hidden;
}

.du-patrocinador-modal__loading {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: #536071;
  font-weight: 700;
}

.du-patrocinador-modal__spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #dce8ea;
  border-top-color: #129ba6;
  border-radius: 50%;
  animation: du-sponsor-spin 700ms linear infinite;
}

@keyframes du-sponsor-spin {
  to {
    transform: rotate(360deg);
  }
}

.du-patrocinador-modal__error {
  padding: 60px 24px;
  color: #d71927;
  font-weight: 700;
  text-align: center;
}

.du-sponsor-detail {
  color: #14213d;
}

.du-sponsor-detail__header {
  margin-bottom: 38px;
  text-align: center;
}

.du-sponsor-detail__title {
  margin: 0;
  color: #f27d0d;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.du-sponsor-detail__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.du-sponsor-detail__badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid #ff3b43;
  border-radius: 3px;
  background: #fff;
  color: #ff1420;
  font-size: 12px;
  font-weight: 800;
}

.du-sponsor-detail__description {
  max-width: 1100px;
  margin: 22px auto 0;
  color: #223557;
  font-size: 14px;
  line-height: 1.75;
}

.du-sponsor-detail__section {
  margin-top: 32px;
}

.du-sponsor-detail__section-title {
  margin: 0 0 18px;
  color: #f27d0d;
  font-size: 24px;
  font-weight: 800;
}

.du-sponsor-detail__empty {
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  color: #667386;
}

/* SIMPOSIOS */

.du-sponsor-detail__symposiums {
  display: grid;
  max-width: 600px;
  gap: 12px;
}

.du-sponsor-symposium {
  display: block;
  padding: 15px 18px 18px;
  border-radius: 18px;
  background: #dceefd;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.du-sponsor-symposium:hover,
.du-sponsor-symposium:focus-visible {
  color: inherit;
  outline: none;
  box-shadow: 0 10px 25px rgba(20, 75, 120, 0.15);
  transform: translateY(-2px);
}

.du-sponsor-symposium__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.du-sponsor-symposium__tag {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 18px;
  font-size: 11px;
  white-space: nowrap;
}

.du-sponsor-symposium__tag--sponsored {
  border: 1px solid #111;
  background: #ffe000;
  color: #111;
}

.du-sponsor-symposium__tag--topic {
  background: #2ba9db;
  color: #fff;
}

.du-sponsor-symposium__tag--room {
  background: #e92986;
  color: #fff;
}

.du-sponsor-symposium__tag--date {
  background: #050505;
  color: #fff;
  font-weight: 800;
}

.du-sponsor-symposium__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10192b;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.du-sponsor-symposium__title {
  margin-top: 18px;
  color: #11182c;
  font-size: 15px;
}

.du-sponsor-symposium__title strong {
  color: #1494ed;
}

/* DOCENTES */

.du-sponsor-detail__teachers {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(300px, 390px)
  );
  gap: 18px;
}

.du-sponsor-teacher {
  padding: 18px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 7px 18px rgba(20, 43, 70, 0.06);
}

.du-sponsor-teacher__header {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.du-sponsor-teacher__photo {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf2f5;
}

.du-sponsor-teacher__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.du-sponsor-teacher__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #159ca7;
  font-size: 38px;
  font-weight: 800;
}

.du-sponsor-teacher__name {
  margin: 2px 0 8px;
  color: #0c1730;
  font-size: 22px;
  line-height: 1.2;
}

.du-sponsor-teacher__specialty {
  color: #15254d;
  font-size: 14px;
  font-weight: 600;
}

.du-sponsor-teacher__profile {
  margin: 24px 0 0;
  color: #17233c;
  font-size: 15px;
  line-height: 1.65;
}

.du-sponsor-teacher__link {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f3;
  color: #f27d0d;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.du-sponsor-teacher__link:hover {
  color: #d86600;
}

/* UBICACIÓN */

.du-sponsor-detail__location {
  overflow: hidden;
  border: 1px solid #dbe4ec;
  border-radius: 12px;
  background: #fff;
}

.du-sponsor-detail__location img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .du-sponsor-detail__section-title {
    font-size: 21px;
  }

  .du-sponsor-detail__teachers {
    grid-template-columns: 1fr;
  }

  .du-sponsor-teacher__header {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .du-sponsor-teacher__photo {
    width: 82px;
    height: 82px;
  }

  .du-sponsor-symposium__time {
    width: 100%;
    margin-top: 5px;
  }
}

/* ============================================================
   ENCABEZADO POPUP PATROCINADOR
   ============================================================ */

.du-sponsor-detail__header {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 36px;
  padding: 8px 0 34px;
  border-bottom: 1px solid #e3e9ef;
  text-align: left;
}

.du-sponsor-detail__logo-wrapper {
  display: flex;
  width: 100%;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px solid #dfe6ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(21, 39, 68, 0.08);
}

.du-sponsor-detail__logo {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 150px !important;
  object-fit: contain;
}

.du-sponsor-detail__logo-placeholder {
  display: flex;
  width: 115px;
  height: 115px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f7f8;
  color: #0c99a4;
  font-size: 48px;
  font-weight: 800;
}

.du-sponsor-detail__heading {
  min-width: 0;
}

.du-sponsor-detail__eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: #0b929d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.du-sponsor-detail__title {
  margin: 0;
  color: #f27d0d;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
}

.du-sponsor-detail__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 17px;
}

.du-sponsor-detail__badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid #f27d0d;
  border-radius: 6px;
  background: #ffffff;
  color: #f27d0d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.du-sponsor-detail__badge svg {
  flex: 0 0 auto;
}

.du-sponsor-detail__metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

.du-sponsor-detail__metadata-item {
  display: grid;
  gap: 3px;
}

.du-sponsor-detail__metadata-label {
  color: #7a8594;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.du-sponsor-detail__metadata-item strong {
  color: #18243c;
  font-size: 14px;
}

.du-sponsor-detail__description {
  max-width: 760px;
  margin-top: 20px;
  color: #536071;
  font-size: 14px;
  line-height: 1.7;
}

.du-sponsor-detail__website {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 8px 15px;
  border-radius: 20px;
  background: #0d9ca6;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.du-sponsor-detail__website:hover,
.du-sponsor-detail__website:focus-visible {
  background: #087d85;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 760px) {
  .du-sponsor-detail__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .du-sponsor-detail__logo-wrapper {
    min-height: 150px;
  }

  .du-sponsor-detail__logo {
    max-height: 110px !important;
  }

  .du-sponsor-detail__badges {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .du-sponsor-detail__header {
    padding-bottom: 26px;
  }

  .du-sponsor-detail__logo-wrapper {
    padding: 20px;
  }

  .du-sponsor-detail__title {
    font-size: 29px;
  }

  .du-sponsor-detail__badge {
    white-space: normal;
  }

  .du-sponsor-detail__metadata {
    gap: 15px;
  }
}

.du-sponsor-teacher__country {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #11182c;
  font-size: 13px;
}

.du-sponsor-teacher__country strong {
  font-weight: 800;
}

.du-sponsor-teacher__country [class*="du-icon__flag-"] {
  display: inline-block;
  flex: 0 0 auto;
}

/* ============================================================
   DESCARGAR PLANO
   ============================================================ */

.du-sponsor-detail__plan-download {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.du-sponsor-detail__plan-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 11px 24px;

  border: 2px solid #1115ef;
  border-radius: 24px;

  background: #1115ef;
  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;

  text-decoration: none;

  box-shadow: 0 8px 20px rgba(17, 21, 239, 0.22);

  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.du-sponsor-detail__plan-button svg {
  flex: 0 0 auto;
}

.du-sponsor-detail__plan-button:hover,
.du-sponsor-detail__plan-button:focus-visible {
  background: #ffffff;
  color: #1115ef;

  box-shadow: 0 11px 28px rgba(17, 21, 239, 0.3);
  transform: translateY(-2px);

  text-decoration: none;
}

.du-sponsor-detail__plan-button:focus-visible {
  outline: 3px solid rgba(17, 21, 239, 0.2);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .du-sponsor-detail__plan-button {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================================
   PLANO GLOBAL DESPUÉS DE LA GRILLA
   ============================================================ */

.du-patrocinadores-plan {
  margin-top: 80px;
  padding: 40px;
  border: 1px solid #e1e7ed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 38px rgba(20, 39, 68, 0.08);
}

.du-patrocinadores-plan__header {
  max-width: 720px;
  margin-bottom: 30px;
}

.du-patrocinadores-plan__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #1098a4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.du-patrocinadores-plan__title {
  margin: 0;
  color: #f27d0d;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.du-patrocinadores-plan__description {
  margin: 12px 0 0;
  color: #5e6979;
  font-size: 15px;
  line-height: 1.6;
}

.du-patrocinadores-plan__image-wrapper {
  overflow: hidden;
  border: 1px solid #dce4eb;
  border-radius: 14px;
  background: #f8fafb;
}

.du-patrocinadores-plan__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.du-patrocinadores-plan__download {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.du-patrocinadores-plan__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 25px;
  border: 2px solid #1115ef;
  border-radius: 25px;
  background: #1115ef;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(17, 21, 239, 0.23);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.du-patrocinadores-plan__button:hover,
.du-patrocinadores-plan__button:focus-visible {
  background: #ffffff;
  color: #1115ef;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 21, 239, 0.3);
}

@media (max-width: 600px) {
  .du-patrocinadores-plan {
    margin-top: 55px;
    padding: 24px 16px;
  }

  .du-patrocinadores-plan__button {
    width: 100%;
    max-width: 310px;
  }
}
