/**
 * WordPress / core alignment overrides for Metrindust Theme.
 */

.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  font-size: 0.875rem;
  color: var(--color-text, #515b6e);
}

.sticky {
  position: relative;
}

.screen-reader-text,
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #113373;
  clip: auto;
  width: auto;
  height: auto;
}

.gdl-main--contained {
  padding-block: 2rem;
}

/* Singles a pantalla completa (sin padding/borde del contenedor WP/Elementor). */
.single-product,
.single-service,
.single-lab,
.single-servicio,
.single-laboratorio {
  padding: 0;
  border: 0;
}

/* CTA cotización como <button> (mismos estilos que el enlace de maqueta). */
button.product-info__cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}

button.product-info__cta:disabled,
button.product-info__cta.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* FAB cotización (entre WhatsApp y flecha subir) */
.gdl-quote-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #113373;
  color: #ffffff !important;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(17, 51, 115, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gdl-quote-float:hover,
.gdl-quote-float:focus-visible {
  background: #1050b2;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(17, 51, 115, 0.38);
  outline: none;
}

.gdl-quote-float:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 8px 22px rgba(17, 51, 115, 0.32);
}

.gdl-quote-float .bi {
  line-height: 1;
}

.gdl-quote-float__count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2672ff;
  border: 2px solid #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.gdl-quote-float.has-items {
  background: #1050b2;
}

/* ——— Página /cotizacion/ (layout propio, sin estilos de .quote-card contacto) ——— */
.page-quote #main-content,
.page-quote .gdl-main {
  background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 42%, #ffffff 100%);
}

.gdl-quote {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: clip;
}

.gdl-quote__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(42% 40% at 90% 0%, rgba(38, 114, 255, 0.12), transparent 70%),
    radial-gradient(36% 34% at 8% 20%, rgba(17, 51, 115, 0.08), transparent 70%);
}

.gdl-quote > .container {
  position: relative;
  z-index: 1;
}

.gdl-quote__header {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.gdl-quote__eyebrow {
  margin: 0 0 0.4rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2672ff;
}

.gdl-quote__title {
  margin: 0 0 0.55rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  color: #113373;
}

.gdl-quote__subtitle {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #647087;
}

.gdl-quote__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}

@media (min-width: 992px) {
  .gdl-quote__layout:not(.is-empty) {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(1.5rem, 2.5vw, 2rem);
  }

  .gdl-quote__panel--form {
    position: sticky;
    top: 6.5rem;
  }
}

.gdl-quote__layout.is-empty {
  max-width: 40rem;
  margin-inline: auto;
}

.gdl-quote__panel {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(16, 80, 178, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(17, 51, 115, 0.06);
}

.gdl-quote__panel--cart {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}

.gdl-quote__panel--form {
  padding: clamp(1.25rem, 2.8vw, 1.75rem);
}

.gdl-quote__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(16, 80, 178, 0.1);
}

.gdl-quote__panel-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  color: #113373;
}

.gdl-quote__panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #1050b2;
  font-size: 0.8125rem;
  font-weight: 700;
}

.gdl-quote__panel-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 80, 178, 0.1);
}

.gdl-quote__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gdl-quote__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid rgba(16, 80, 178, 0.1);
  border-radius: 14px;
  background: #f9fbfe;
}

.gdl-quote__thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(16, 80, 178, 0.08);
  overflow: hidden;
}

.gdl-quote__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gdl-quote__meta {
  min-width: 0;
}

.gdl-quote__name {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #113373;
  text-decoration: none;
}

.gdl-quote__name:hover,
.gdl-quote__name:focus-visible {
  color: #2672ff;
}

.gdl-quote__sku,
.gdl-quote__option {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #647087;
}

.gdl-quote__price {
  margin: 0.45rem 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1050b2;
}

.gdl-quote__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.gdl-quote__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: none;
  color: #b42318;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.15rem 0;
}

.gdl-quote__remove:hover,
.gdl-quote__remove:focus-visible {
  text-decoration: underline;
  outline: none;
}

.gdl-quote__continue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #2672ff;
  text-decoration: none;
}

.gdl-quote__continue:hover,
.gdl-quote__continue:focus-visible {
  color: #1050b2;
  text-decoration: underline;
}

.gdl-quote__empty {
  padding: clamp(1.75rem, 4vw, 2.5rem) 1rem;
  text-align: center;
}

.gdl-quote__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: #eef4ff;
  color: #1050b2;
  font-size: 1.35rem;
}

.gdl-quote__empty-title {
  margin: 0 0 0.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 650;
  font-size: 1.15rem;
  color: #113373;
}

.gdl-quote__empty-text {
  margin: 0 0 1.25rem;
  color: #647087;
  font-size: 0.95rem;
  line-height: 1.5;
}

.gdl-quote__empty-cta {
  display: inline-flex;
}

.gdl-quote__form-intro {
  margin-bottom: 1.25rem;
}

.gdl-quote__form-title {
  margin: 0 0 0.45rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.25;
  color: #113373;
}

.gdl-quote__form-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #647087;
}

.gdl-quote__form-text strong {
  color: #113373;
  font-weight: 700;
}

/* Evitar estilos del panel flotante de contacto */
.gdl-quote .quote-card__form-col,
.gdl-quote__panel--form {
  margin-left: 0 !important;
  border-radius: 20px !important;
}

.gdl-quote .quote-form__row {
  gap: 0 0.85rem;
}

.gdl-quote .quote-form__submit {
  width: 100%;
}

.gdl-cot-notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.gdl-cot-notice--success {
  background: #e8f6ee;
  color: #146c2e;
}

.gdl-cot-notice--error {
  background: #fdecec;
  color: #b42318;
}

.gdl-cot-notice__title {
  margin: 0 0 0.35rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 650;
  color: #113373;
}

.gdl-cot-notice p {
  margin: 0 0 0.65rem;
}

.gdl-cot-notice p:last-child {
  margin-bottom: 0;
}

.gdl-cot-notice__wa {
  display: inline-flex;
  text-decoration: none;
}

.gdl-cot-notice__link {
  color: #1050b2;
  font-weight: 600;
}

.gdl-quote .quote-form__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.gdl-cot-honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 767.98px) {
  .gdl-quote__item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .gdl-quote__thumb {
    width: 72px;
    height: 72px;
  }

  .gdl-quote__controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ——— 404 ——— */
.page-404 .gdl-404 {
  background: #f4f7fc;
}

.gdl-404__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  text-align: center;
}

.gdl-404__hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 51, 115, 0.94) 0%, rgba(16, 80, 178, 0.88) 55%, rgba(38, 114, 255, 0.82) 100%),
    url("../images/bg/bg01.png") center / cover no-repeat;
}

.gdl-404__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
}

.gdl-404__code {
  margin: 0 0 0.35rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.22);
}

.gdl-404__title {
  margin: 0 0 0.75rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.gdl-404__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-family: "Roboto", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.gdl-404__body {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
  margin-top: 0;
}

.gdl-404__panel {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: #fff;
  border: 1px solid rgba(16, 80, 178, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 51, 115, 0.1);
}

.gdl-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.gdl-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gdl-404__btn--primary {
  background: linear-gradient(90deg, #113373 0%, #1050b2 42%, #2972ff 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(38, 114, 255, 0.28);
}

.gdl-404__btn--primary:hover,
.gdl-404__btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(38, 114, 255, 0.34);
  outline: none;
}

.gdl-404__btn--ghost {
  background: #eef4ff;
  color: #113373;
}

.gdl-404__btn--ghost:hover,
.gdl-404__btn--ghost:focus-visible {
  background: #dfeaff;
  color: #1050b2;
  outline: none;
}

.gdl-404__search {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(16, 80, 178, 0.1);
}

.gdl-404__search-label {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #113373;
}

.gdl-404__search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.gdl-404__search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(16, 80, 178, 0.2);
  border-radius: 12px;
  background: #f8faff;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  color: #113373;
}

.gdl-404__search-input::placeholder {
  color: #8a94a6;
}

.gdl-404__search-input:focus {
  outline: none;
  border-color: #2672ff;
  box-shadow: 0 0 0 3px rgba(38, 114, 255, 0.15);
  background: #fff;
}

.gdl-404__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 12px;
  background: #113373;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gdl-404__search-submit:hover,
.gdl-404__search-submit:focus-visible {
  background: #1050b2;
  outline: none;
}

.gdl-404__links-title {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #647087;
}

.gdl-404__links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.gdl-404__links-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 80, 178, 0.12);
  background: #f8faff;
  color: #113373;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gdl-404__links-list a:hover,
.gdl-404__links-list a:focus-visible {
  border-color: rgba(38, 114, 255, 0.45);
  background: #eef4ff;
  color: #1050b2;
  outline: none;
}

.gdl-404__links-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #fff;
  color: #2672ff;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .gdl-404__search-form {
    flex-direction: column;
  }

  .gdl-404__search-submit {
    width: 100%;
  }

  .gdl-404__links-list {
    grid-template-columns: 1fr;
  }

  .gdl-404__actions {
    flex-direction: column;
  }

  .gdl-404__btn {
    width: 100%;
  }
}

/* WP custom-logo markup (if printed) must not appear beside theme logos */
.navbar-brand .custom-logo-link,
.navbar-brand .custom-logo {
	display: none !important;
}

/* Sizing lives in components.css / responsive.css (.site-header .brand-logo).
   Do not set display/width here — it was forcing both color + white logos visible. */
.navbar-brand {
	position: relative;
}

.site-header .brand-logo {
	object-fit: contain;
	object-position: left center;
}
