/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* =================================================================
   LIVIT PIANTINI — Responsive (mobile-first, min-width)
   ================================================================= */

/* ----------------------------------------------------------------
   Móvil / tablet (< 64em)  ·  Tipologías: las tarjetas van ENCIMA del
   bloque de Especificaciones (que en desktop está arriba a la derecha).
   `display:contents` saca .left / .spec-card del .tipologias__top para
   poder ordenarlos en la columna del .inwrap.
   ---------------------------------------------------------------- */
@media only screen and (max-width: 63.99em) {

  #tipologias .inwrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  #tipologias .tipologias__top,
  #tipologias .tipologias__top .right {
    display: contents;
  }

  #tipologias .left {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }

  #tipologias .tipologias__selector {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    margin-top: 0;
  }

  #tipologias .spec-card {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    margin-top: 2.5em;
  }
}

/* ----------------------------------------------------------------
   40em  ·  Large phones / small tablets (640px+)
   ---------------------------------------------------------------- */
@media only screen and (min-width: 40em) {

  .inwrap {
    padding: 0 2em;
  }

  /* Hero */
  .hero-banner__title {
    font-size: 3.4em;
  }

  /* Respaldo */
  .respaldo__feature figcaption {
    font-size: 2.6em;
  }

  /* Amenidades */
  .amen-group__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__logo-suburbia {
    width: 16em;
  }
}


/* ----------------------------------------------------------------
   48em  ·  Tablets (768px+)
   ---------------------------------------------------------------- */
@media only screen and (min-width: 48em) {

  /* Respaldo: dos columnas */
  #respaldo .cols {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 3em;
  }

  #respaldo .left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 32%;
    flex: 0 0 32%;
  }

  #respaldo .right {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  /* Formulario */
  .wizard {
    padding: 3.5em 3em;
  }
}


/* ----------------------------------------------------------------
   64em  ·  Small desktops / large tablets (1024px+)
   ---------------------------------------------------------------- */
@media only screen and (min-width: 64em) {

  /* Tipologías — labels Tipo A/B/C más grandes en desktop */
  .tipo-tab {
    font-size: 2em;
  }

  /* Conecta — mapa más alto, lugares en 2 columnas, pie en fila */
  .conecta__map {
    height: 22em;
  }

  .conecta__map iframe {
    height: 22em;
  }

  .conecta__cat-head {
    padding: 1.2em 0.8em 1.2em 1.4em;
    gap: 1.2em;
  }

  .conecta__cat-titles {
    padding-left: 1.2em;
  }

  .conecta__cat-name {
    font-size: 1.3em;
  }

  .conecta__places {
    grid-template-columns: 1fr 1fr;
    -webkit-column-gap: 3.5em;
    -moz-column-gap: 3.5em;
    column-gap: 3.5em;
    padding-left: 5em;
  }

  .conecta__foot {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  /* Header: nav y CTA visibles, oculta hamburguesa (desde 1024px) */
  .header__nav {
    display: block;
  }

  .header__cta {
    display: inline-block;
  }

  .header__toggle {
    display: none;
  }

  .header__inwrap {
    padding: 1.5em 2.5em;
  }

  /* Amenidades: las 7 tarjetas de Roof Top en una sola fila */
  .amen-group__cards {
    grid-template-columns: repeat(7, 1fr);
  }

  /* Hero */
  .hero__content {
    padding-bottom: 5em;
  }

  .hero-banner__title {
    font-size: 4em;
  }

  .hero-banner__text {
    font-size: 0.95em;
  }

  .hero__content .project-brand {
    margin-bottom: 2em;
  }

  .hero__content .project-brand__logo {
    width: 16em;
  }

  /* CTA y logos de afiliados en la misma línea */
  .hero__bottom {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2.5em;
  }

  /* Respaldo */
  #respaldo {
    padding: 6em 0 6em;
  }

  #respaldo .main-title {
    font-size: 2.8em;
  }

  /* Logos de asociados en la misma línea que el texto (si no caben,
     la fila envuelve: el label queda arriba y los logos debajo) */
  .respaldo__affiliates {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2em;
  }

  .respaldo__affiliates p {
    margin-bottom: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }

  .respaldo__logos img {
    height: 3.4em;
  }

  .respaldo__logos-divider {
    height: 3.4em;
  }

  .respaldo__project {
    margin-top: 4em;
  }

  .respaldo__project .project-brand__logo {
    width: 17em;
  }

  .stats {
    gap: 2em 3.5em;
  }

  .stats__num {
    font-size: 3.2em;
  }

  .respaldo__feature {
    margin-top: 5em;
    max-width: 67em;
    margin-left: auto;
    margin-right: auto;
  }

  .respaldo__feature figcaption {
    font-size: 4.5em;
  }

  .play-btn {
    width: 13em;
    height: 13em;
  }

  /* El Proyecto: cabecera en dos columnas */
  #proyecto {
    padding: 6em 0;
  }

  .proyecto__head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 3em;
  }

  .proyecto__head .section-brand {
    margin-bottom: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
  }

  .proyecto__intro {
    margin-top: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 45%;
    flex: 0 0 45%;
  }

  .proyecto__slider img {
    aspect-ratio: 21 / 9;
  }

  /* Flechas centradas (solo desktop) */
  .proyecto__foot {
    position: relative;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 3.2em;
  }

  .proyecto__foot .slider-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }

  /* Tipologías */
  #tipologias {
    padding: 6em 0;
  }

  .tipologias__top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 3em;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .tipologias__top .left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 42%;
    flex: 0 0 42%;
  }

  .tipologias__top .right {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    min-height: 24em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  #tipologias .main-title {
    font-size: 4em;
  }

  /* Watermark de fondo (IBM bold, visibles arriba y abajo de la caja) */
  .tipologias__watermark {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 6em;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(29, 25, 24, 0.45);
    pointer-events: none;
    z-index: 0;
  }

  .tipologias__watermark--top {
    top: -0.7em;
  }

  .tipologias__watermark--bottom {
    bottom: -0.5em;
    text-align: left;
    font-size: 8em;
  }

  .spec-card {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.4em;
  }

  /* Selector de tipologías: tarjetas de ancho fijo (1/5 de la fila), alineadas
     a la izquierda. Así Tipo B (5) llena la fila y Tipo A (4) / Tipo C (3)
     dejan espacio a la derecha, sin estirarse. */
  .tipo-cards {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1.5em;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .tipo-card {
    -ms-flex: 0 0 calc((100% - 6em) / 5);
    flex: 0 0 calc((100% - 6em) / 5);
    min-height: 18.5em;
    padding: 1.6em;
  }

  /* Amenidades: maqueta en grid (intro+paginación izquierda, círculo derecha,
     tarjetas abajo). El order móvil se ignora bajo grid. */
  #amenidades {
    padding: 6em 0;
  }

  #amenidades .inwrap {
    display: grid;
    grid-template-columns: 40% 1fr;
    -webkit-column-gap: 4em;
    column-gap: 4em;
    row-gap: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    grid-template-areas:
      "brand  brand"
      "intro  stage"
      "pag    stage"
      "groups groups";
  }

  #amenidades .section-brand {
    grid-area: brand;
    -ms-flex-item-align: start;
    align-self: start;
    margin-bottom: 2.5em;
  }

  .amenidades__intro {
    grid-area: intro;
    -ms-flex-item-align: end;
    align-self: end;
  }

  .amen-pagination {
    grid-area: pag;
    -ms-flex-item-align: start;
    align-self: start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-top: 2.2em;
  }

  .amenidades__stage {
    grid-area: stage;
    overflow: visible;
  }

  .amenidades__groups {
    grid-area: groups;
    margin-top: 3.5em;
  }

  /* Círculo prominente en el centro-derecha, con flechas flanqueándolo */
  .amen-circle {
    max-width: 28em;
  }

  .amen-nav--prev {
    left: -4.8em;
  }

  .amen-nav--next {
    right: -4.8em;
  }

  #amenidades .main-title {
    font-size: 3em;
  }

  /* Conecta */
  #conecta {
    padding: 7em 0;
  }

  .conecta__title {
    font-size: 4.5em;
  }

  /* Footer — dos filas alineadas en 3 columnas */
  .footer__top,
  .footer__meta {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 2em;
  }

  .footer__brandcol,
  .footer__copy {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 46%;
    flex: 0 0 46%;
  }

  .footer__affiliates {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 27%;
    flex: 0 0 27%;
  }

  .footer__nav {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .footer__social {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: right;
  }

  .footer__meta {
    margin-top: 6em;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
  }
}


/* ----------------------------------------------------------------
   80em  ·  Desktop (1280px+)
   ---------------------------------------------------------------- */
@media only screen and (min-width: 80em) {

  .inwrap {
    max-width: 80em;
    margin: 0 auto;
    padding: 0 2em;
  }

  .header__inwrap {
    max-width: 84em;
  }

  .hero-banner__title {
    font-size: 4.2em;
  }

  #respaldo .main-title {
    font-size: 3.2em;
  }

  .conecta__title {
    font-size: 5.5em;
  }

  .wizard {
    max-width: 42em;
  }
}


/* ----------------------------------------------------------------
   100em  ·  Large desktop (1600px+)
   ---------------------------------------------------------------- */
@media only screen and (min-width: 100em) {
  .hero-banner__title {
    font-size: 4.2em;
  }
}


/* ----------------------------------------------------------------
   ALTURA CORTA · el contenido del hero va anclado abajo y el header
   fijo arriba: si el viewport es bajo, la pila (marca + título +
   texto + CTA/logos) alcanza al header y se superponen. Estas
   queries por max-height compactan el hero en cualquier ancho.
   Van al FINAL del archivo para ganar la cascada a los breakpoints
   de ancho (misma especificidad → gana la última).
   ---------------------------------------------------------------- */

/* Altura media-corta (≤ 736px): compactar tipografía y espacios */
@media only screen and (max-height: 46em) {

  .hero__content {
    padding-bottom: 2.5em;
  }

  .hero__content .project-brand {
    margin-bottom: 1em;
  }

  .hero__content .project-brand__logo {
    width: 10em;
  }

  .hero-banner__title {
    font-size: 2.3em;
  }

  .hero-banner__text {
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 1.4em;
  }

  .hero__bottom {
    gap: 1.4em;
  }
}

/* Altura muy baja (≤ 576px): compactar aún más */
@media only screen and (max-height: 36em) {

  .hero__content {
    padding-bottom: 1.8em;
  }

  .hero__content .project-brand__label {
    font-size: 0.8em;
    margin-bottom: 0.6em;
  }

  .hero__content .project-brand__logo {
    width: 8em;
  }

  .hero-banner__title {
    font-size: 1.2em;
  }

  .hero-banner__text {
    font-size: 0.85em;
    margin-bottom: 1.2em;
  }

  .hero__bottom {
    gap: 1em;
    font-size: 0.8em;
  }

  .hero__affiliates img {
    height: 2em;
  }

  .hero__affiliates-divider {
    height: 2em;
  }
}

/* En pantallas angostas o bajas el contenido del hero llega mucho más
   arriba: el degradado sube hasta el tope (con tinte suave) para que
   el texto sea legible sobre la foto */
@media only screen and (max-width: 39.99em), only screen and (max-height: 46em) {

  .hero__gradient {
    background:
      -webkit-gradient(linear, left bottom, left top, from(rgba(9, 67, 78, 0.96)), color-stop(0.45, rgba(9, 67, 78, 0.78)), color-stop(0.75, rgba(9, 67, 78, 0.5)), to(rgba(9, 67, 78, 0.25)));
    background:
      -o-linear-gradient(bottom, rgba(9, 67, 78, 0.96) 0%, rgba(9, 67, 78, 0.78) 45%, rgba(9, 67, 78, 0.5) 75%, rgba(9, 67, 78, 0.25) 100%);
    background:
      linear-gradient(0deg, rgba(9, 67, 78, 0.96) 0%, rgba(9, 67, 78, 0.78) 45%, rgba(9, 67, 78, 0.5) 75%, rgba(9, 67, 78, 0.25) 100%);
  }
}