/* =========================================================
   NDX BUSCADOR PISCINA POLIÉSTER
   ========================================================= */

.ndx-polyester,
.ndx-polyester *,
.ndx-polyester *::before,
.ndx-polyester *::after {
  box-sizing: border-box;
}

.ndx-polyester-wrap {
  /* Contenedor de referencia: el bloque suele ir en una columna del 50%
     de Elementor, donde el ancho real no tiene nada que ver con el del
     navegador. Con media queries nunca entraba en el modo estrecho. */
  container-type: inline-size;
  container-name: ndxpoly;

  /* Estirado vertical para igualar altura con un widget hermano.
     Sin altura definida en el contenedor, height:100% resuelve a auto. */
  display: flex;
  height: 100%;
}

.ndx-polyester {
  --ndx-poly-green: #1a6a60;
  --ndx-poly-green-dark: #0f4a44;
  --ndx-poly-green-soft: #eef7f5;
  --ndx-poly-text: #26302f;
  --ndx-poly-muted: #657472;
  --ndx-poly-border: #d7e4e1;
  --ndx-poly-white: #ffffff;

  flex: 1 1 auto;
  display: flex;
  flex-direction: column;

  width: calc(100% - 24px);
  max-width: 1280px;
  margin: 16px auto;

  color: var(--ndx-poly-text);
  background: var(--ndx-poly-white);

  border: 1px solid var(--ndx-poly-border);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 12px 32px rgba(15, 74, 68, .10);

  font-family: var(--ndx-font, "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
}

.ndx-polyester__main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;

  padding: 18px 26px 16px;
}

.ndx-polyester__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 22px;
  align-items: center;
}

.ndx-polyester__copy {
    height: 100%;
    min-width: 0;
}

.ndx-polyester__eyebrow {
  margin: 0 0 4px;

  color: #1282a2;

  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ndx-polyester__title {
  margin: 0 0 7px;

  color: #175676;

  font-size: clamp(1.85rem, 1.40rem + .90vw, 2.30rem);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.ndx-polyester__lead {
  margin: 0 0 22px;

  color: var(--ndx-poly-text);

  font-size: .90rem;
  line-height: 1.32;
}

.ndx-polyester__lead strong {
  font-weight: 750;
}

.ndx-polyester__text {
  margin: 0;

  color: var(--ndx-poly-muted);

  font-size: .84rem;
  font-weight: 500;
  line-height: 1.40;
}

.ndx-polyester__visual {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 135px;

  padding: 8px;

  background: #fafcff;
  border-radius: 14px;
}

.ndx-polyester__image {
  display: block;

  width: 100%;
  max-width: 390px;
  max-height: 180px;
  height: auto;

  object-fit: contain;
}

.ndx-polyester__image-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 135px;
}

.ndx-polyester__pool-shape {
  position: relative;

  display: block;

  width: min(78%, 280px);
  aspect-ratio: 2.2 / 1;

  border: 7px solid rgba(26, 106, 96, .18);
  border-radius: 48% 52% 48% 52% / 52% 48% 52% 48%;

  background: rgba(26, 106, 96, .08);
}

.ndx-polyester__pool-shape::after {
  content: "";

  position: absolute;
  inset: 12px;

  border: 2px solid rgba(26, 106, 96, .22);
  border-radius: inherit;
}

.ndx-polyester__finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;

  margin-top: 18px;
  padding: 15px;

  background: #fafcff;
  border: 1px solid rgba(26, 106, 96, .12);
  border-radius: 12px;
}

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

.ndx-polyester__field {
  display: block;
  min-width: 0;
  margin: 0;
}

.ndx-polyester__label {
  display: flex;
  align-items: center;
  gap: 7px;

  margin: 0 0 7px;

  color: #175676;

  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
}

.ndx-polyester__label b {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  color: #fff;
  background: #175676;
  border-radius: 50%;

  font-size: .74rem;
  letter-spacing: 0;
}

.ndx-polyester__select-wrap {
  position: relative;
  display: block;
}

.ndx-polyester__select-wrap::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 15px;

  width: 8px;
  height: 8px;

  border-right: 2px solid var(--ndx-poly-green);
  border-bottom: 2px solid var(--ndx-poly-green);

  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ndx-polyester__select {
  width: 100%;
  height: 44px;

  padding: 0 38px 0 12px;

  color: var(--ndx-poly-text);
  background: #fff;

  border: 1px solid #c8d9d5;
  border-radius: 8px;

  font: inherit;
  font-size: .88rem;
  font-weight: 600;

  appearance: none;
  cursor: pointer;

  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ndx-polyester__select:hover:not(:disabled) {
  border-color: var(--ndx-poly-green);
}

.ndx-polyester__select:focus {
  outline: none;
  border-color: var(--ndx-poly-green);
  box-shadow: 0 0 0 3px rgba(26, 106, 96, .13);
}

.ndx-polyester__select:disabled {
  color: #8a9795;
  cursor: not-allowed;
}

.ndx-polyester__action {
  width: 215px;
}

.ndx-polyester__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-height: 44px;

  padding: 9px 15px;

  color: #fff;
  background: linear-gradient(180deg, #6AC7E4 0%, #6AC7E4 100%);

  border: 0;
  border-radius: 8px;

  font: inherit;
  font-size: .80rem;
  font-weight: 850;
  letter-spacing: .045em;
  line-height: 1.2;

  cursor: pointer;

  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

.ndx-polyester__button span {
  flex: 0 0 auto;
  font-size: 1.1rem;
}

.ndx-polyester__button:hover:not(:disabled) {
  filter: brightness(1.06);
}

.ndx-polyester__button:active:not(:disabled) {
  transform: translateY(1px);
}

.ndx-polyester__button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ndx-polyester__status {
  min-height: 16px;
  margin: 0 0 5px;

  color: var(--ndx-poly-muted);

  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
}

.ndx-polyester__footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;

  padding: 11px 22px;

  color: #4e605d;
  background: #fbfdfd;

  border-top: 1px solid var(--ndx-poly-border);
}

.ndx-polyester__footer span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-width: 0;

  font-size: .78rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

.ndx-polyester__footer b {
  color: #175676;
  font-size: .95rem;
  font-weight: 900;
}






/* =========================================================
   Responsive por contenedor
   ========================================================= */

@container ndxpoly (max-width: 760px) {
  .ndx-polyester__main {
    padding: 20px 20px 17px;
  }

  .ndx-polyester__hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
    gap: 18px;
  }

  .ndx-polyester__finder {
    grid-template-columns: 1fr;
  }

  .ndx-polyester__action {
    width: 100%;
    max-width: 320px;
  }

  .ndx-polyester__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ndx-polyester__footer span {
    justify-content: flex-start;
    text-align: left;
  }

  /* El boton pasa debajo de los selectores: a este ancho, con los tres
     elementos en la misma fila, los desplegables quedaban inservibles. */
  .ndx-polyester__action {
    width: 100%;
    max-width: none;
  }

  .ndx-polyester__button {
    width: 100%;
    min-height: 46px;
  }
}

@container ndxpoly (max-width: 560px) {
  .ndx-polyester {
    width: calc(100% - 16px);
    margin: 10px auto;
    border-radius: 12px;
  }

  .ndx-polyester__main {
    padding: 17px 15px 15px;
  }

  .ndx-polyester__hero {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .ndx-polyester__title {
    font-size: 1.48rem;
  }

  .ndx-polyester__lead {
    font-size: .95rem;
  }

  .ndx-polyester__text {
    font-size: .88rem;
  }

  .ndx-polyester__visual {
    min-height: 105px;
    padding: 7px;
  }

  .ndx-polyester__image {
    max-height: 145px;
  }

  .ndx-polyester__image-placeholder {
    min-height: 120px;
  }

  .ndx-polyester__finder {
    gap: 13px;
    margin-top: 14px;
    padding: 13px;
  }

  .ndx-polyester__fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .ndx-polyester__label {
    font-size: .82rem;
  }

  .ndx-polyester__select {
    height: 46px;
    font-size: .92rem;
  }

  .ndx-polyester__action {
    max-width: none;
  }

  .ndx-polyester__button {
    min-height: 46px;
    font-size: .86rem;
  }

  .ndx-polyester__footer {
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
    padding: 11px 15px;
  }

  .ndx-polyester__footer span {
    font-size: .76rem;
  }
}

@container ndxpoly (max-width: 400px) {
  .ndx-polyester__title {
    font-size: 1.40rem;
  }

  .ndx-polyester__footer {
    grid-template-columns: 1fr;
  }
}

/* Fallback para navegadores sin container queries */
@supports not (container-type: inline-size) {
  @media (max-width: 899px) {
  .ndx-polyester__main {
    padding: 20px 20px 17px;
  }

  .ndx-polyester__hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
    gap: 18px;
  }

  .ndx-polyester__finder {
    grid-template-columns: 1fr;
  }

  .ndx-polyester__action {
    width: 100%;
    max-width: 320px;
  }

  .ndx-polyester__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ndx-polyester__footer span {
    justify-content: flex-start;
    text-align: left;
  }

  /* El boton pasa debajo de los selectores: a este ancho, con los tres
     elementos en la misma fila, los desplegables quedaban inservibles. */
  .ndx-polyester__action {
    width: 100%;
    max-width: none;
  }

  .ndx-polyester__button {
    width: 100%;
    min-height: 46px;
  }
  }

  @media (max-width: 679px) {
  .ndx-polyester {
    width: calc(100% - 16px);
    margin: 10px auto;
    border-radius: 12px;
  }

  .ndx-polyester__main {
    padding: 17px 15px 15px;
  }

  .ndx-polyester__hero {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .ndx-polyester__title {
    font-size: 1.48rem;
  }

  .ndx-polyester__lead {
    font-size: .95rem;
  }

  .ndx-polyester__text {
    font-size: .88rem;
  }

  .ndx-polyester__visual {
    min-height: 105px;
    padding: 7px;
  }

  .ndx-polyester__image {
    max-height: 145px;
  }

  .ndx-polyester__image-placeholder {
    min-height: 120px;
  }

  .ndx-polyester__finder {
    gap: 13px;
    margin-top: 14px;
    padding: 13px;
  }

  .ndx-polyester__fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .ndx-polyester__label {
    font-size: .82rem;
  }

  .ndx-polyester__select {
    height: 46px;
    font-size: .92rem;
  }

  .ndx-polyester__action {
    max-width: none;
  }

  .ndx-polyester__button {
    min-height: 46px;
    font-size: .86rem;
  }

  .ndx-polyester__footer {
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
    padding: 11px 15px;
  }

  .ndx-polyester__footer span {
    font-size: .76rem;
  }
  }

  @media (max-width: 420px) {
  .ndx-polyester__title {
    font-size: 1.40rem;
  }

  .ndx-polyester__footer {
    grid-template-columns: 1fr;
  }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ndx-polyester *,
  .ndx-polyester *::before,
  .ndx-polyester *::after {
    transition: none !important;
  }
}
