/* oghistory-pref.css — capa de preferencias */

:root {
  --ogh-pink: #E8005A;
  --ogh-pink-dark: #c70d50;
  --ogh-ink: #1c1c1c;
  --ogh-border: #e3e3e3;
}

.oghistory-recommend {
  margin: 2rem 0;
}
.ogh-rec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ogh-see-all {
  color: var(--ogh-pink)!important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ogh-see-all:hover {
  text-decoration: underline;
}

/* CTA banners por estado */
.ogh-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff6fb;
  border: 1px solid #ffd6ec;
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
}
.ogh-cta-banner--done {
  background: #f7fbf7;
  border-color: #d8eed8;
}
.ogh-cta-text {
  margin: 0;
  font-size: 1rem;
  color: var(--ogh-ink);
}

.ogh-conflict {
  background: #fff8e6;
  border: 1px solid #ffe2a8;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.ogh-conflict a {
  color: var(--ogh-pink);
  font-weight: 600;
  margin-left: 0.35rem;
}

/* Botones */
.ogh-btn {
  display: inline-block;
  background: var(--ogh-pink);
  color: #fff!important;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.ogh-btn:hover {
  background: var(--ogh-pink-dark);
  color: #fff;
}
.ogh-btn--block {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
}
.ogh-skip {
  margin-left: 1rem;
  color: #777;
  text-decoration: underline;
}

.ogh-loose-button {
  display: inline-block;
}

/* Campos / chips */
.ogh-field {
  margin-bottom: 1.5rem;
}
.ogh-label {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--ogh-ink);
}
.ogh-sublabel {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin: 0.65rem 0 0.4rem;
}
.ogh-hint {
  font-weight: 400;
  color: #999;
  font-size: 0.85rem;
}
.ogh-input {
  width: 100%;
  border: 1px solid var(--ogh-border);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-size: 1rem;
}
.ogh-input:focus {
  outline: none;
  border-color: var(--ogh-pink);
}

.ogh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.ogh-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ogh-border)!important;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  margin: 0;
}
.ogh-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ogh-chip:hover {
  border-color: var(--ogh-pink)!important;
}
.ogh-chip.is-selected {
  background: var(--ogh-pink)!important;
  border-color: var(--ogh-pink)!important;
  color: #fff;
}

.ogh-error {
    color: #c40000;
    font-weight: 600;
    margin-top: 2rem;
    border: solid 1px #c40000ed;
    border-radius: 12px;
    padding: 10px;
}

/* Modal */
.ogh-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
}
.ogh-modal.is-open {
  display: block;
}
.ogh-modal__overlay {
  position: absolute;
  inset: 0;
}
.ogh-modal__dialog {
  position: relative;
  max-width: 560px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.ogh-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

/* Página Mi cuenta */
.ogh-prefs-actions {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  border-top: solid 1px var(--ogh-border);
  padding-top: 15px;
  justify-content: end;
}
.ogh-onboarding-intro {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 575px) {
  .ogh-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Título principal del bloque de preferencias */
.ogh-h1 {
  font-size: 60px;
  font-weight: 600;
  color: white;
  margin: 0 0 1.25rem;
}
.ogh-loose-button {
  padding: 50px 0px 0px 0px;
}

@media (max-width: 575px) {
  .ogh-h1 {
    font-size: 38px;
    letter-spacing: 0.8px;
  }
  .ogh-loose-button {
    padding: 050px 20px 0px 20px;
  }
}

/* ── Modal wizard (pasos) ── */
.ogh-wizard-modal .ogh-modal__dialog {
  max-width: 100%; width: 100%;
  height: 100vh; max-height: 100vh;
  margin: 0; border-radius: 0; padding: 0;
  background: rgba(232, 0, 90, 0.1);
  display: flex; flex-direction: column;
}

.ogh-modal{
  background: white;
}

.ogh-wizard-head {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid #eee;
}
.ogh-wizard-close {
  background: none; border: 0; font-size: 1.8rem; line-height: 1;
  color: #999; cursor: pointer;
}
.ogh-wizard-exit {
  background: none; border: 0; color: var(--ogh-pink);
  font-weight: 600; font-size: .95rem; cursor: pointer;
}

.ogh-wizard-progress {
  display: flex; gap: .5rem;
  width: 100%; max-width: 520px; margin: 1.75rem auto 0; padding: 0 1.25rem;
}
.ogh-wizard-seg { flex: 1; height: 3px; border-radius: 2px; background: white; transition: background .2s ease; }
.ogh-wizard-seg.is-done { background: var(--ogh-pink); }

.ogh-wizard-body {
  flex: 1; overflow-y: auto;
  width: 100%; max-width: 520px; margin: 0 auto; padding: 2rem 1.25rem;
}

.ogh-step { display: none; }
.ogh-step.is-active { display: block; animation: oghFade .25s ease; }
@keyframes oghFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ogh-step-title {
  font-size: 1.9rem; font-weight: 600; color: var(--ogh-ink);
  margin: 0 0 1.5rem; line-height: 1.15;
}

/* Chips a lo ancho, apilados (look de los mockups) */
.ogh-wizard-fields .ogh-chips { flex-direction: column; gap: .85rem; }
.ogh-wizard-fields .ogh-chip {
  width: 100%; justify-content: center; text-align: center;
  padding: .95rem 1.25rem; font-size: 1rem; background: #fff;
}

.ogh-wizard-nav {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; max-width: 520px; margin: 0 auto; padding: 1rem 1.25rem 2rem;
}
.ogh-wizard-nav .ogh-btn { flex: 1; margin: 0; }
.ogh-wizard-back {
  background: none; border: 0; color: var(--ogh-pink); font-weight: 600;
  text-decoration: underline; cursor: pointer; white-space: nowrap;
}
.ogh-wizard-back:hover { color: var(--ogh-pink-dark); }

@media (max-width: 575px) {
  .ogh-step-title { font-size: 1.5rem; }
}

/* ----- Paso opcional en el formulario de registro ----- */
.ogh-register-step { margin: 1rem 0; }
.ogh-register-optin { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; font-weight: 400;  }
.ogh-register-optin input[type="checkbox"] { margin-top: .2rem; }
.ogh-register-panel { margin-top: 1rem; padding: 1rem; border: 1px solid #eee; border-radius: 8px; background: #fff; }
.ogh-register-panel[hidden] { display: none; }
.ogh-register-panel__hint { margin: 0 0 .75rem; font-size: .9em; color: #666; }
.ogh-register-panel__skip { margin: .75rem 0 0; justify-content: end; display:flex}
.ogh-register-panel .ogh-link-skip { font-size: .9em; text-decoration: underline; }


#module-oghistory-recommendations .products-selection { 
  border-top: none!important; 
  border-bottom: none!important; 
  margin: 0px!important;
  padding-right: 3px!important;
  padding-bottom:0px!important;
}

/* =========================================
   DESKTOP — grid de productos: 3 columnas
   ========================================= */
@media (min-width: 992px) {

  #module-oghistory-recommendations .products .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
  }

  #module-oghistory-recommendations .products .js-product-miniature-wrapper {
    padding: 10px !important;
    margin: 0 !important;
    height: auto !important;
  }
}

/* ===== MOBILE: grid y barra superior ===== */
@media (max-width: 991px) {
  #module-oghistory-recommendations .products .row { display: flex; flex-wrap: wrap; margin: 0; }

  #module-oghistory-recommendations .products .js-product-miniature-wrapper {
    width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important;
    padding: 5px !important; margin: 0 !important;
    height: auto !important;
  }

  #module-oghistory-recommendations .col-ordenar,#module-oghistory-recommendations .col.col-auto.facated-toggler.hidden-md-up {
    width:1000%;
  }

  #module-oghistory-preferences #inner-wrapper{
    padding: 0px;
  }

  #product .ogh-carousel-head .section-title {
    margin-bottom: 0px!important;
    padding-bottom: 0px!important;
    padding-right: 0px!important;
  }
  .oghistory-products .ogh-carousel-head {
    align-items: baseline!important;
  }
  #product .ogh-carousel-head {
    padding: 10px 0px!important;
}
}


/* MI CUENTA */
#module-oghistory-preferences .breadcrumb, #module-oghistory-preferences .page-header
{
  display: none;
}

#module-oghistory-preferences #wrapper{
  padding: 0px!important;
}

#module-oghistory-preferences #main .page-content{
  margin-bottom: 0!important;
}

/* Carrusel "Pensados para vos": título y "Ver todo" en la misma fila */
.oghistory-products .ogh-carousel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
}
.oghistory-products .ogh-carousel-head .section-title{
  margin:0;
}

.ogh-carousel-head {
    display: flex;
    justify-content: space-between;
}

#product .ogh-carousel-head {
    padding: 0px 16px 0px 0px;
}


/* ── Acordeón del último paso (objetivos) ── */
.ogh-accordion {
  border: 1px solid var(--ogh-border);
  border-radius: 14px;
  background: #fff;
  margin-bottom: .75rem;
  overflow: hidden;
}
.ogh-accordion-head {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .95rem 1.1rem;
  background: none; border: 0; cursor: pointer;
  font: inherit; text-align: left;
}
.ogh-accordion-title {
  flex: 1;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: #555;
}
.ogh-accordion-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 .45rem;
  border-radius: 999px;
  background: var(--ogh-pink); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1;
}
.ogh-accordion-chevron {
  flex: 0 0 auto; color: #999;
  transition: transform .25s ease;
}
.ogh-accordion.is-open .ogh-accordion-chevron { transform: rotate(180deg); }

/* Colapso suave con grid (sin medir alturas en JS) */
.ogh-accordion-panel {
  display: none;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.ogh-accordion.is-open .ogh-accordion-panel { grid-template-rows: 1fr; display: grid;}
.ogh-accordion-panel > .ogh-chips {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 1.1rem 1rem;
}


#index .ogh-carousel-head {
  padding: 0px 10px;
}

#index .ogh-carousel-head .section-title{
  border: none!important;
}

#index .ogh-carousel-head .section-title {
    font-weight: 500 !important;
    font-size: 32px !important;
    line-height: 100% !important;
    letter-spacing: inherit !important;
    color: #1c1c1c !important;
}
.ogh-see-all {
    color: #e8005a!important;
    font-weight: 500!important;
}

/* En pantallas chicas dejamos solo la flecha */
@media (max-width: 575px) {
  .ogh-see-all__text {
    display: none;
  }
  .ogh-see-all__arrow{
    font-size: 16px!important;
    font-weight: 700!important;
  }
}

/* nuevos estilos */
.ogh-loose-button {
  --ogh-maxw: 850px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background:
    linear-gradient(105.32deg,
      rgba(28, 28, 28, 0.9) 21.5%,
      rgba(28, 28, 28, 0.5) 60.75%,
      rgba(28, 28, 28, 0) 100%),
    rgba(232, 0, 90, 1);
  padding-block: 40px;
  padding-inline: max(24px, calc((100% - var(--ogh-maxw)) / 2));
}

.ogh-loose-button .ogh-h1 {
  margin: 0;
  flex: 1;
  font-size: 46px;
}

.ogh-loose-button .js-ogh-open-modal {
  flex: 0 0 auto;
}

@media (max-width: 575px) {
  .ogh-h1 {
    font-size: 30px!important;
  }
  .ogh-loose-button {
    flex-direction: column;
    align-items: normal;
    gap: 1.5rem;
    padding: 40px 24px;
  }
}

@media (max-width: 767px) {
  .ogh-h1 {
    font-size: 30px!important;
  }
}