/* =========================================================
   MejengaWeb.com - Directorio público de Academias
   ========================================================= */

.academies-page {
  background: #f6f8fa;
  min-height: 70vh;
}


/* HERO */

.academies-hero {
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(12, 202, 241, 0.17),
      transparent 32%
    ),
    #181818;

  color: #fff;

  padding: 8.5rem 0 5rem;

  text-align: center;
}

.academies-hero-content {
  width: min(100%, 900px);

  margin-inline: auto;
}

.academies-eyebrow {
  display: inline-block;

  margin-bottom: 1rem;

  color: #0ccaf1;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  font-size: 0.8rem;
}

.academies-hero h1 {
  color: #fff;

  font-weight: 800;

  font-size: clamp(2rem, 4vw, 3.5rem);

  margin-bottom: 1rem;
}

.academies-hero p {
  width: min(100%, 760px);

  margin: 0 auto;

  color: rgba(255,255,255,0.82);

  font-size: 1.15rem;

  line-height: 1.7;
}


/* BUSCADOR */

.academies-search-section {
  position: relative;

  z-index: 2;

  margin-top: -2rem;
}

.academies-search-panel {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(220px, 1fr);

  gap: 1rem;

  padding: 1.25rem;

  background: #fff;

  border: 1px solid #e3e7eb;

  border-radius: 18px;

  box-shadow:
    0 12px 35px rgba(0,0,0,0.08);
}

.academies-search-field label {
  display: block;

  margin-bottom: 0.45rem;

  font-size: 0.78rem;

  color: #5d6670;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.03em;
}

.academies-input-wrap {
  position: relative;
}

.academies-input-wrap i {
  position: absolute;

  left: 1rem;

  top: 50%;

  transform: translateY(-50%);

  color: #7c8792;
}

.academies-search-field input,
.academies-search-field select {
  width: 100%;

  height: 48px;

  border: 1px solid #d7dde3;

  border-radius: 10px;

  background: #fff;

  color: #181818;

  outline: none;
}

.academies-search-field input {
  padding: 0 1rem 0 2.75rem;
}

.academies-search-field select {
  padding: 0 0.8rem;
}

.academies-search-field input:focus,
.academies-search-field select:focus {
  border-color: #0ccaf1;

  box-shadow:
    0 0 0 3px rgba(12,202,241,0.12);
}


/* DIRECTORIO */

.academies-directory-section {
  padding: 4rem 0 5rem;
}

.academies-directory-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 1rem;
}

.academies-count {
  font-weight: 700;

  color: #434a51;
}


/* CABECERA TIPO TABLA */

.academies-table-head {
  display: grid;

  grid-template-columns:
    minmax(230px, 1.4fr)
    minmax(230px, 1.2fr)
    150px
    minmax(160px, 0.8fr);

  gap: 1.25rem;

  padding: 0 1.5rem 0.75rem;

  color: #737d87;

  font-size: 0.75rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}


/* FILAS */

.academies-list {
  display: grid;

  gap: 1rem;
}

.academy-directory-item {
  display: grid;

  grid-template-columns:
    minmax(230px, 1.4fr)
    minmax(230px, 1.2fr)
    150px
    minmax(160px, 0.8fr);

  gap: 1.25rem;

  align-items: center;

  padding: 1.5rem;

  background: #fff;

  border: 1px solid #e2e6ea;

  border-radius: 16px;

  box-shadow:
    0 3px 12px rgba(0,0,0,0.04);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.academy-directory-item:hover {
  transform: translateY(-2px);

  border-color: rgba(12,202,241,0.5);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.07);
}


/* IDENTIDAD */

.academy-directory-identity {
  display: flex;

  align-items: center;

  gap: 1rem;

  min-width: 0;
}

.academy-logo {
  width: 64px;

  height: 64px;

  flex: 0 0 64px;

  display: grid;

  place-items: center;

  overflow: hidden;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #0ccaf1,
      #84e7fb
    );

  color: #181818;

  font-size: 1.6rem;
}

.academy-logo img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.academy-directory-identity h2 {
  margin: 0 0 0.35rem;

  color: #181818;

  font-size: 1.08rem;

  font-weight: 800;

  line-height: 1.3;
}

.academy-location {
  margin: 0;

  color: #66717c;

  font-size: 0.88rem;

  line-height: 1.45;
}

.academy-location i {
  color: #0ccaf1;

  margin-right: 0.3rem;
}


/* INFO */

.academy-directory-info {
  display: grid;

  gap: 0.5rem;
}

.academy-data-row {
  display: flex;

  gap: 0.65rem;

  align-items: flex-start;

  color: #555f69;

  font-size: 0.87rem;
}

.academy-data-row > i {
  width: 17px;

  margin-top: 0.17rem;

  color: #0ccaf1;

  text-align: center;
}

.academy-data-row span {
  display: flex;

  flex-wrap: wrap;

  gap: 0.3rem;
}

.academy-data-row strong {
  color: #2d343a;
}


/* ESTADISTICAS */

.academy-directory-social {
  display: flex;

  justify-content: center;

  gap: 1.5rem;
}

.academy-stat {
  display: grid;

  justify-items: center;

  gap: 0.1rem;

  color: #5d6872;
}

.academy-stat i {
  color: #0ccaf1;

  font-size: 1rem;
}

.academy-stat strong {
  color: #181818;

  font-size: 1rem;
}

.academy-stat span {
  font-size: 0.7rem;
}


/* ACCIONES */

.academy-directory-actions {
  display: grid;

  gap: 0.45rem;
}

.academy-action {
  display: flex;

  align-items: center;

  gap: 0.5rem;

  min-height: 38px;

  padding: 0.55rem 0.75rem;

  border: 1px solid #d9dee3;

  border-radius: 9px;

  color: #343a40;

  text-decoration: none;

  font-size: 0.82rem;

  font-weight: 650;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.academy-action:hover {
  background: #f5fcfe;

  border-color: #0ccaf1;

  color: #181818;
}

.academy-action-map {
  background: #0ccaf1;

  border-color: #0ccaf1;

  color: #181818;
}

.academy-action-map:hover {
  background: #09b7da;
}


/* DESCRIPCION */

.academy-directory-description {
  grid-column: 1 / -1;

  padding-top: 1rem;

  border-top: 1px solid #eef1f3;
}

.academy-directory-description p {
  margin: 0;

  color: #66717c;

  font-size: 0.88rem;

  line-height: 1.6;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* EMPTY */

.academies-empty,
.academies-no-results {
  width: min(100%, 760px);

  margin: 1rem auto;

  padding: 4rem 2rem;

  background: #fff;

  border: 1px solid #e0e5e9;

  border-radius: 20px;

  text-align: center;

  box-shadow:
    0 8px 30px rgba(0,0,0,0.05);
}

.academies-empty-icon {
  width: 76px;

  height: 76px;

  display: grid;

  place-items: center;

  margin: 0 auto 1.25rem;

  border-radius: 50%;

  background: rgba(12,202,241,0.14);

  color: #0bb9da;

  font-size: 2rem;
}

.academies-empty-kicker {
  color: #0aaacb;

  font-size: 0.78rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.06em;
}

.academies-empty h2,
.academies-no-results h2 {
  margin: 0.5rem 0 0.75rem;

  color: #181818;

  font-weight: 800;
}

.academies-empty p,
.academies-no-results p {
  max-width: 600px;

  margin: 0 auto 1.5rem;

  color: #65707a;

  line-height: 1.7;
}

.academies-empty-owner {
  display: grid;

  gap: 0.2rem;

  margin-bottom: 1.5rem;

  color: #505962;
}


/* CTA */

.academies-owner-cta {
  padding: 0 0 5rem;
}

.academies-owner-box {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 2rem;

  padding: 2.5rem;

  border-radius: 20px;

  background: #181818;

  color: #fff;
}

.academies-owner-box span {
  color: #0ccaf1;

  font-size: 0.78rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.05em;
}

.academies-owner-box h2 {
  margin: 0.45rem 0;

  color: #fff;

  font-weight: 800;
}

.academies-owner-box p {
  margin: 0;

  color: rgba(255,255,255,0.72);
}

.academies-primary-btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.55rem;

  padding: 0.85rem 1.35rem;

  border-radius: 999px;

  background: #0ccaf1;

  color: #181818;

  text-decoration: none;

  font-weight: 800;

  white-space: nowrap;
}

.academies-primary-btn:hover {
  background: #09b5d8;

  color: #181818;
}


/* TABLET */

@media (max-width: 991.98px) {

  .academies-table-head {
    display: none;
  }

  .academy-directory-item {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(0, 1fr);

    align-items: start;
  }

  .academy-directory-social {
    justify-content: flex-start;
  }

}


/* MOVIL */

@media (max-width: 767.98px) {

  .academies-hero {
    padding: 7rem 1rem 4rem;
  }

  .academies-search-panel {
    grid-template-columns: 1fr;
  }

  .academies-directory-section {
    padding-top: 3rem;
  }

  .academy-directory-item {
    grid-template-columns: 1fr;

    padding: 1.15rem;
  }

  .academy-directory-social {
    justify-content: flex-start;

    padding-top: 0.75rem;

    border-top: 1px solid #edf0f2;
  }

  .academy-directory-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .academy-action {
    justify-content: center;
  }

  .academies-owner-box {
    flex-direction: column;

    align-items: flex-start;

    padding: 2rem 1.5rem;
  }

}


/* MOVIL PEQUEÑO */

@media (max-width: 480px) {

  .academy-directory-identity {
    align-items: flex-start;
  }

  .academy-logo {
    width: 54px;

    height: 54px;

    flex-basis: 54px;
  }

  .academy-directory-actions {
    grid-template-columns: 1fr;
  }

  .academies-empty {
    padding: 3rem 1.25rem;
  }

}


/* =========================================================
   MEJENGA ADS - CATEGORY HOUSE AD
   ========================================================= */

.mw-category-ad-section {
  padding: 2.25rem 0 0;
}


.mw-category-house-ad {
  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(12, 202, 241, 0.20),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #121820,
      #1b2730
    );

  border:
    1px solid rgba(12, 202, 241, 0.28);

  border-radius: 18px;

  box-shadow:
    0 12px 32px rgba(0,0,0,0.09);
}


.mw-category-house-ad-label {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 1rem;

  padding:
    0.65rem 1.25rem;

  border-bottom:
    1px solid rgba(255,255,255,0.08);

  color:
    rgba(255,255,255,0.60);

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.mw-category-house-ad-label strong {
  color: #0ccaf1;
}


.mw-category-house-ad-body {
  display: grid;

  grid-template-columns:
    64px
    minmax(0, 1fr)
    auto
    auto;

  gap: 1.25rem;

  align-items: center;

  padding:
    1.6rem 1.5rem;
}


.mw-category-house-ad-icon {
  width: 58px;

  height: 58px;

  display: grid;

  place-items: center;

  border-radius: 16px;

  background:
    rgba(12,202,241,0.13);

  color: #0ccaf1;

  font-size: 1.5rem;
}


.mw-category-house-ad-copy {
  min-width: 0;
}


.mw-category-house-ad-kicker {
  display: block;

  margin-bottom: 0.25rem;

  color: #0ccaf1;

  font-size: 0.73rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.05em;
}


.mw-category-house-ad-title {
  display: block;

  margin-bottom: 0.35rem;

  color: #fff;

  font-size:
    clamp(1.15rem, 2vw, 1.55rem);

  line-height: 1.2;
}


.mw-category-house-ad-copy p {
  margin: 0;

  max-width: 650px;

  color:
    rgba(255,255,255,0.70);

  line-height: 1.5;

  font-size: 0.9rem;
}


.mw-category-house-ad-offer {
  display: grid;

  justify-items: end;
}


.mw-category-house-ad-offer strong {
  color: #fff;

  font-size: 1.15rem;
}


.mw-category-house-ad-offer span {
  color:
    rgba(255,255,255,0.55);

  font-size: 0.78rem;
}


.mw-category-house-ad-cta {
  min-height: 46px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.55rem;

  padding:
    0.75rem 1.2rem;

  border: 0;

  border-radius: 999px;

  background: #0ccaf1;

  color: #111820;

  font-weight: 850;

  cursor: pointer;

  white-space: nowrap;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}


.mw-category-house-ad-cta:hover {
  transform: translateY(-1px);

  background: #2ad6f6;

  box-shadow:
    0 8px 20px
    rgba(12,202,241,0.20);
}


.mw-category-house-ad-cta:disabled {
  opacity: 0.7;

  cursor: wait;

  transform: none;
}


.mw-category-house-ad-foot {
  display: flex;

  flex-wrap: wrap;

  gap:
    0.8rem 1.5rem;

  padding:
    0.75rem 1.5rem 0.9rem;

  background:
    rgba(0,0,0,0.14);

  color:
    rgba(255,255,255,0.52);

  font-size: 0.72rem;
}


.mw-category-house-ad-foot i {
  margin-right: 0.3rem;

  color: #0ccaf1;
}


@media (max-width: 991.98px) {

  .mw-category-house-ad-body {
    grid-template-columns:
      58px
      minmax(0, 1fr)
      auto;
  }

  .mw-category-house-ad-offer {
    display: none;
  }

}


@media (max-width: 767.98px) {

  .mw-category-ad-section {
    padding-top: 1.5rem;
  }

  .mw-category-house-ad-body {
    grid-template-columns:
      48px
      minmax(0, 1fr);

    gap: 1rem;

    padding: 1.25rem;
  }

  .mw-category-house-ad-icon {
    width: 46px;

    height: 46px;

    border-radius: 12px;

    font-size: 1.2rem;
  }

  .mw-category-house-ad-cta {
    grid-column: 1 / -1;

    width: 100%;
  }

  .mw-category-house-ad-foot {
    display: none;
  }

}


@media (max-width: 480px) {

  .mw-category-house-ad-label {
    padding:
      0.6rem 1rem;
  }

  .mw-category-house-ad-body {
    padding:
      1.15rem 1rem;
  }

  .mw-category-house-ad-copy p {
    font-size: 0.82rem;
  }

}


/* ==========================================================
   MEJENGA ADS 2.0 - CATEGORY LIVE CREATIVE
   ========================================================== */

.mw-category-paid-section {
    padding-top: 18px;
    padding-bottom: 18px;
}

.mw-category-live-ad {
    position: relative;
    width: 100%;
    overflow: hidden;

    border-radius: 16px;

    background: #061626;

    box-shadow:
        0 12px 32px rgba(4, 22, 39, .16);
}

.mw-category-live-ad picture {
    display: block;
    width: 100%;
}

.mw-category-live-ad-image {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 5 / 1;

    object-fit: cover;
    object-position: center;
}

.mw-category-live-ad-label {
    position: absolute;

    z-index: 2;

    top: 10px;
    right: 12px;

    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(0, 0, 0, .68);

    color: #fff;

    font-size: .63rem;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;

    backdrop-filter: blur(4px);
}


/* Móvil */
@media (max-width: 767px) {

    .mw-category-paid-section {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mw-category-live-ad {
        max-width: 600px;
        margin: 0 auto;

        border-radius: 14px;
    }

    .mw-category-live-ad-image {
        aspect-ratio: 4 / 5;

        object-fit: cover;
    }

    .mw-category-live-ad-label {
        top: 8px;
        right: 8px;
    }
}



/* ==========================================================
   ACADEMIES - MOBILE WIDTH / HORIZONTAL OVERFLOW FIX
   ========================================================== */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.mw-category-paid-section,
.mw-category-paid-section .container,
.mw-category-live-ad,
.mw-category-live-ad picture,
.mw-category-live-ad-image {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.mw-category-live-ad picture {
    width: 100%;
}

.mw-category-live-ad-image {
    width: 100%;
    height: auto;
    display: block;
}


/* MÓVIL */
@media (max-width: 767px) {

    .mw-category-paid-section {
        width: 100%;
        padding: 12px 0;
        overflow: hidden;
    }

    .mw-category-paid-section > .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        margin-left: auto;
        margin-right: auto;
    }

    .mw-category-live-ad {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }

    .mw-category-live-ad picture {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .mw-category-live-ad-image {
        width: 100%;
        max-width: 100%;
        height: auto;

        aspect-ratio: 4 / 5;

        object-fit: cover;
        object-position: center;

        display: block;
    }
}



/* ==========================================================
   MEJENGA ADS - TAMAÑO NATIVO Y RESPONSIVE CORRECTO
   ========================================================== */

.mw-category-paid-section {
    width: 100%;
    overflow: hidden;
}

.mw-category-paid-section > .container {
    width: 100%;
    max-width: 100%;
}

.mw-category-live-ad {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    overflow: hidden;
}

.mw-category-live-ad picture {
    display: block;
    width: 100%;
    max-width: 1200px;
}

.mw-category-live-ad-image {
    display: block;

    width: 100%;
    max-width: 1200px;

    height: auto !important;

    /* NO forzar crop ni estiramiento */
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center;

    margin: 0 auto;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .mw-category-paid-section {
        width: 100%;
        padding: 12px 0;
    }

    .mw-category-paid-section > .container {
        width: 100%;
        max-width: 100%;

        padding-left: 12px;
        padding-right: 12px;

        box-sizing: border-box;
    }

    .mw-category-live-ad {
        width: 100%;
        max-width: 600px;

        margin-left: auto;
        margin-right: auto;
    }

    .mw-category-live-ad picture {
        width: 100%;
        max-width: 600px;
    }

    .mw-category-live-ad-image {
        width: 100%;
        max-width: 600px;

        height: auto !important;

        aspect-ratio: auto !important;
        object-fit: contain !important;

        display: block;

        margin-left: auto;
        margin-right: auto;
    }
}
