/* Oceance V — layout full-width / móvil (evita columna estrecha a la izquierda) */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  box-sizing: border-box;
}

html body #wrapwrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  margin: 0 !important;
}

html body #wrapwrap > main,
html body #wrapwrap main.o_main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

html body .ocean-vtowers-root,
html body #wrap.ocean-vtowers-root {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: clip;
  box-sizing: border-box;
}

html body .ocean-vtowers-root #main,
html body .ocean-vtowers-root main#main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  overflow-x: clip;
}

html body .ocean-vtowers-root section {
  box-sizing: border-box;
}

/* Contenedores de sección: max-width + centrado (Tailwind mx-auto no siempre gana en Odoo).
   NO poner max-width:100% aquí en desktop: eso pegaba títulos y contenido a la izquierda.
   max-w-4xl NO se centra por defecto: el h1 del hero lo usa y debe alinear con los CTAs. */
html body .ocean-vtowers-root .max-w-7xl,
html body .ocean-vtowers-root .max-w-6xl,
html body .ocean-vtowers-root .max-w-5xl {
  box-sizing: border-box;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body .ocean-vtowers-root .max-w-7xl { max-width: 80rem; }   /* 1280px */
html body .ocean-vtowers-root .max-w-6xl { max-width: 72rem; }   /* 1152px */
html body .ocean-vtowers-root .max-w-5xl { max-width: 64rem; }   /* 1024px */

/* Anchos internos / hero h1 — sin forzar centrado (alinean con botones a la izquierda) */
html body .ocean-vtowers-root .max-w-4xl { max-width: 56rem; box-sizing: border-box; }
html body .ocean-vtowers-root .max-w-3xl { max-width: 48rem; box-sizing: border-box; }
html body .ocean-vtowers-root .max-w-2xl { max-width: 42rem; box-sizing: border-box; }
html body .ocean-vtowers-root .max-w-xl  { max-width: 36rem; box-sizing: border-box; }
html body .ocean-vtowers-root .max-w-lg  { max-width: 32rem; box-sizing: border-box; }

/* Solo centrar bloques que ya traen mx-auto en el HTML */
html body .ocean-vtowers-root .max-w-4xl.mx-auto,
html body .ocean-vtowers-root .max-w-3xl.mx-auto,
html body .ocean-vtowers-root .max-w-2xl.mx-auto,
html body .ocean-vtowers-root .max-w-xl.mx-auto,
html body .ocean-vtowers-root .max-w-lg.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero: título a la izquierda, al mismo nivel que «Conoce el proyecto» */
html body section#top > div.relative.z-10,
html body section#top h1 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Contenedores de sección: a ancho útil en móvil */
@media (max-width: 767px) {
  html body .ocean-vtowers-root .max-w-7xl,
  html body .ocean-vtowers-root .max-w-6xl,
  html body .ocean-vtowers-root .max-w-5xl,
  html body .ocean-vtowers-root .max-w-4xl,
  html body .ocean-vtowers-root .max-w-3xl,
  html body .ocean-vtowers-root .max-w-2xl,
  html body .ocean-vtowers-root .max-w-xl,
  html body .ocean-vtowers-root .max-w-lg {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Tipologías: stats sin solaparse ni cortar el precio */
  html body #tipologias article.glass {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  html body #tipologias article.glass .p-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    min-width: 0;
  }

  html body #tipologias article.glass dl.grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem 0.5rem !important;
    min-width: 0;
    width: 100%;
  }

  html body #tipologias article.glass dl.grid > div {
    min-width: 0;
    overflow: hidden;
  }

  html body #tipologias article.glass dl.grid dt {
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html body #tipologias article.glass dl.grid dd {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html body #tipologias article.glass .flex.items-baseline {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
