/* HERO COPA MENSTRUAL — MÓVIL + TABLET */
@media (max-width: 767.98px) {
  .hero-copa-menstrual {
    background-image: none !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-copa-menstrual > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-copa-menstrual .row {
    flex-direction: column-reverse;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-y: 0 !important;
  }

  .hero-copa-menstrual .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-copa-menstrual .hero-lab {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;

    aspect-ratio: 16 / 9;
    height: auto !important;

    background-image: url("../img/copa-menstrual/hero-copa-menstrual.jpg");
    background-repeat: no-repeat;
    background-size: contain !important;
    background-position: center top !important;
    background-color: #f7fafc;
    border-radius: 0 !important;
  }

  .hero-copa-menstrual .hero-text-block {
    margin-top: 0 !important;
    text-align: center;
    background: #fff;
    padding: 1.25rem 1rem !important;
  }

  .hero-copa-menstrual .hero-title {
    margin: 0 !important;
  }

  .hero-copa-menstrual .hero-subtitle {
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
  }
}

/* ===== TABLET (768px — 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-copa-menstrual {
    background-image: none !important; 
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    --hero-pad: 24px;
  }

  .hero-copa-menstrual > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: var(--hero-pad) !important;
    padding-right: var(--hero-pad) !important;
  }

  .hero-copa-menstrual .row {
    position: relative;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-y: 0 !important;
  }

  .hero-copa-menstrual .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-copa-menstrual .row > .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .hero-copa-menstrual .hero-lab {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;

    aspect-ratio: 16 / 9; 
    height: auto !important;

    background-image: url("../img/copa-menstrual/hero-copa-menstrual.jpg");
    background-repeat: no-repeat;
    background-size: contain !important; 
    background-position: left top !important;
    background-color: #f7fafc;
    border-radius: 0 !important;
  }

  .hero-copa-menstrual .hero-text-block {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 2rem 2rem; 
    text-align: left;
    max-width: 520px;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .hero-copa-menstrual .hero-title {
    margin: 0 !important;
  }
  .hero-copa-menstrual .hero-subtitle {
    margin-bottom: 0 !important;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-copa-menstrual .hero-lab{
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;

    background-size: cover !important;
    background-position: right center !important;
    background-color: transparent !important;
  }

  html, body{
    overflow-x: clip;
  }
}

/* ================== SECCIÓN COPA MENSTRUAL ============== */
@media (max-width: 767.98px) {
  .page-copa-menstrual .horizontal-line,
  .horizontal-line {
    margin-top: -2rem;
  }

  .page-copa-menstrual .horizontal-line img,
  .horizontal-line img {
    width: 88% !important;
    max-width: 420px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    margin-bottom: 0.1rem !important;
  }

  .page-copa-menstrual .horizontal-line .col-lg-6.p-5,
  .horizontal-line .col-lg-6.p-5 {
    text-align: center !important;
    padding: 1.25rem 1.25rem !important;
    padding-top: 0.75rem !important;
  }

  .page-copa-menstrual .horizontal-line .col-lg-6.p-5 > div,
  .horizontal-line .col-lg-6.p-5 > div {
    margin: -1.75rem auto 0;
    max-width: 560px;
    margin-top: -2rem !important;
  }

  .page-copa-menstrual .horizontal-line .brand-name,
  .horizontal-line .brand-name {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.15;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .page-copa-menstrual .horizontal-line .order-2,
  .horizontal-line .order-2 {
    order: 1 !important;
  }

  .page-copa-menstrual .horizontal-line .order-1,
  .horizontal-line .order-1 {
    order: 2 !important;
  }

  .page-copa-menstrual .horizontal-line img,
  .horizontal-line img {
    width: 92% !important;
    max-width: 520px;
    height: auto;
    margin: 1rem auto 0;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .page-copa-menstrual .horizontal-line .brand-name,
  .horizontal-line .brand-name {
    font-size: 2.95rem;
  }

  .page-copa-menstrual .horizontal-line .subtitle,
  .horizontal-line .subtitle {
    font-size: 2.05rem;
  }
}


/* ===== FEATURES (PRINCIPALES)(<= 991.98px) ===== */
@media (max-width: 991.98px) {
  .features-images-col {
    display: none !important;
  }

  .features-text-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .features-text-col.p-5 {
    padding: 1.5rem 1.25rem !important;
    text-align: center;
  }

  .features-text-col.order-2 {
    order: 1 !important;
  }

  .features-text-col .subtitle {
    margin-bottom: 1.5rem !important;
  }

  .features-text-col .caracteristica {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .features-text-col .caracteristica.pt-4 {
    padding-top: 0.75rem !important;
  }

  .js-feature-item,
  .js-feature-item * {
    opacity: 1 !important;
  }

  .js-feature-item {
    transform: none !important;
    filter: none !important;
  }

  .js-feature-item.active {
    opacity: 1 !important;
  }
}

@media (max-width: 767.98px) {
  .features-scroll {
    padding-top: 2rem;
  }

  .features-pin {
    padding-top: 1rem;
  }
}

/* ===== TALLAS: selector (móvil + tablet) ===== */
@media (max-width: 991.98px) {
  .sizes-tabs .nav-pills .nav-link {
    border: 1px solid rgba(102, 141, 157, 0.35);
    color: #668d9d;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
  }

  .sizes-tabs .nav-pills .nav-link.active {
    background: #668d9d;
    color: #fff;
    border-color: #668d9d;
  }

  .sizes-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 14px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
  }

  .sizes-card .sizes-pack {
    width: 78%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .sizes-card .sizes-diagram {
    width: 88%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .sizes-section {
    padding-top: 1rem !important;
  }
}

/* =========================
   DETALLES / TECH SPECS
   ========================= */
@media (max-width: 767.98px) {
  .tech-specs-image-col {
    display: none !important;
  }

  .tech-specs-text-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .tech-specs-title {
    text-align: center;
    margin-bottom: 1.5rem !important;
  }

  .tech-spec {
    padding: 0.85rem 0;
  }

  .tech-title,
  .tech-desc {
    text-align: center;
  }

  .js-tech-item,
  .js-tech-item * {
    opacity: 1 !important;
  }

  .js-tech-item {
    transform: none !important;
    filter: none !important;
  }
}

.tech-hotspot {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .tech-specs-image-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
  }

  .tech-specs-image {
    width: 92%;
    height: auto;
    display: block;
    border-radius: 18px;
    margin: 0 auto;
  }

  .tech-hotspot {
    display: grid !important;
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 0;
    background: #668d9d;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    place-items: center;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 150ms ease, opacity 150ms ease;
    opacity: 0.95;
  }

  .tech-hotspot:active {
    transform: scale(0.96);
  }

  .tech-hotspot.is-active {
    background: #eca694;
    opacity: 1;
    transform: scale(1.06);
  }

  .tech-hotspot-1 {
    top: 9%;
    right: 29%;
  }
  .tech-hotspot-2 {
    top: 22%;
    right: 19%;
  }
  .tech-hotspot-3 {
    top: 44%;
    right: 23%;
  }
  .tech-hotspot-4 {
    top: 66%;
    right: 27%;
  }
  .tech-hotspot-5 {
    top: 85%;
    right: 40%;
  }

  .js-tech-item {
    transition: background 200ms ease, transform 200ms ease,
      box-shadow 200ms ease;
    border-radius: 14px;
    padding: 12px 12px;
  }

  .js-tech-item.is-active {
    background: rgba(236, 166, 148, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
  }

  .js-tech-item,
  .js-tech-item * {
    opacity: 1 !important;
  }

  .js-tech-item {
    filter: none !important;
  }

  .tech-specs-text-col,
  .tech-specs-title,
  .tech-specs-list,
  .tech-title,
  .tech-desc {
    text-align: center !important;
  }
}

/* =========================
   NORMAS (use-rules)
   ========================= */
@media (max-width: 767.98px) {
  .use-rules-section {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .use-rules-section,
  .use-rules-section .use-rules-header,
  .use-rules-section .use-rules-two-cols,
  .use-rules-section .use-rules-main-title,
  .use-rules-section .use-rules-subtitle,
  .use-rules-section .use-rules-intro,
  .use-rules-section .use-rules-text {
    text-align: center !important;
  }

  .use-rules-section .use-step {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .use-rules-section .use-step-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0.75rem auto 0;
  }

  .use-rules-section .use-steps-row {
    margin-top: 2rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .use-rules-section,
  .use-rules-section .use-rules-header,
  .use-rules-section .use-rules-two-cols,
  .use-rules-section .use-rules-main-title,
  .use-rules-section .use-rules-subtitle,
  .use-rules-section .use-rules-intro,
  .use-rules-section .use-rules-text {
    text-align: center !important;
  }

  .use-rules-section .use-steps-row {
    justify-content: center;
  }

  .use-rules-section .use-steps-row > div:nth-child(1) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .use-rules-section .use-steps-row > div:nth-child(2),
  .use-rules-section .use-steps-row > div:nth-child(3) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .use-rules-section .use-step {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .use-rules-section .use-steps-row > div:nth-child(1) .use-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0.75rem;
    justify-items: center;
    align-items: start;
  }

  .use-rules-section .use-steps-row > div:nth-child(1) .use-step-number {
    grid-column: 1 / 3;
    justify-self: center;
  }

  .use-rules-section .use-steps-row > div:nth-child(1) .use-step-img-1a,
  .use-rules-section .use-steps-row > div:nth-child(1) .use-step-img-1b,
  .use-rules-section .use-steps-row > div:nth-child(2) .use-step-img,
  .use-rules-section .use-steps-row > div:nth-child(3) .use-step-img {
    width: 100% !important;
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* =========================
   Centrados (<= 991.98)
   ========================= */
@media (max-width: 991.98px) {
  .use-rules-section,
  .insert-section,
  .insert-position-section,
  .remove-section,
  .empty-clean-section {
    text-align: center;
  }

  .use-rules-section .container,
  .insert-section .container,
  .insert-position-section .container,
  .remove-section .container,
  .empty-clean-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .use-rules-section img,
  .insert-section img,
  .insert-position-section img,
  .remove-section img,
  .empty-clean-section img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .empty-clean-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .empty-clean-images img {
    width: 100%;
    max-width: 520px;
    height: auto;
  }
}

/* =========================
   FIX TABLET: textos 
   ========================= */
@media (min-width: 768px) and (max-width: 991.98px) {
  .use-rules-section .container > .row,
  .insert-section .container > .row,
  .insert-position-section .container > .row,
  .remove-section .container > .row,
  .empty-clean-section .container > .row,
  .use-rules-section .use-rules-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .use-rules-section .row,
  .insert-section .row,
  .insert-position-section .row,
  .remove-section .row,
  .empty-clean-section .row {
    --bs-gutter-x: 0rem !important;
  }

  .use-rules-section p,
  .use-rules-section h2,
  .use-rules-section h3,
  .insert-section p,
  .insert-section h2,
  .insert-position-section p,
  .remove-section p,
  .remove-section h2,
  .empty-clean-section p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  .use-rules-section .use-rules-two-cols > .col-lg-6,
  .insert-position-section .row > .col-lg-6,
  .remove-section .remove-row > .col-lg-6,
  .empty-clean-section .row > .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .use-rules-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .use-rules-section .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .empty-clean-section .empty-clean-images img {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .empty-clean-section .empty-clean-images {
    gap: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .empty-clean-section .empty-clean-images img {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .empty-clean-section .empty-clean-images {
    gap: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .insert-section .insert-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .remove-title{
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  .insert-section .insert-subtitle,
  .insert-section .insert-text {
    text-align: center;
  }

  .insert-section .row {
    --bs-gutter-x: 0.75rem;
  }

  .insert-section .insert-grid {
    margin-top: 1.75rem !important;
  }

  .insert-section .insert-grid > .row {
    display: contents;
  }

  .insert-section .insert-grid .col-4 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center;
  }

  .insert-section .insert-grid-title {
    font-weight: 600;
    margin: 1.25rem 0 0.5rem !important;
  }

  .insert-section .insert-step-label {
    display: block;
    margin: 0.35rem 0 0.35rem !important;
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .insert-section .insert-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem !important;
    border-radius: 12px;
  }

  /* --- Reordenación para que quede por MÉTODO (U, V, 7) --- */
  /* Orden natural:
     1-3  títulos (U,V,7)
     4-6  imgs paso1 (U,V,7)
     7-9  labels paso1 (U,V,7)
     10-12 imgs paso2 (U,V,7)
     13-15 labels paso2 (U,V,7)
     U:  título(1) -> paso1 label(7) -> img1(4) -> paso2 label(13) -> img2(10)
     V:  título(2) -> paso1 label(8) -> img1(5) -> paso2 label(14) -> img2(11)
     7:  título(3) -> paso1 label(9) -> img1(6) -> paso2 label(15) -> img2(12)
  */

  /* U */
  .insert-section .insert-grid .col-4:nth-child(1) {
    order: 1;
  }
  .insert-section .insert-grid .col-4:nth-child(7) {
    order: 2;
  }
  .insert-section .insert-grid .col-4:nth-child(4) {
    order: 3;
  }
  .insert-section .insert-grid .col-4:nth-child(13) {
    order: 4;
  }
  .insert-section .insert-grid .col-4:nth-child(10) {
    order: 5;
  }

  /* V */
  .insert-section .insert-grid .col-4:nth-child(2) {
    order: 6;
  }
  .insert-section .insert-grid .col-4:nth-child(8) {
    order: 7;
  }
  .insert-section .insert-grid .col-4:nth-child(5) {
    order: 8;
  }
  .insert-section .insert-grid .col-4:nth-child(14) {
    order: 9;
  }
  .insert-section .insert-grid .col-4:nth-child(11) {
    order: 10;
  }

  /* 7 */
  .insert-section .insert-grid .col-4:nth-child(3) {
    order: 11;
  }
  .insert-section .insert-grid .col-4:nth-child(9) {
    order: 12;
  }
  .insert-section .insert-grid .col-4:nth-child(6) {
    order: 13;
  }
  .insert-section .insert-grid .col-4:nth-child(15) {
    order: 14;
  }
  .insert-section .insert-grid .col-4:nth-child(12) {
    order: 15;
  }

  .insert-section .insert-grid {
    display: flex;
    flex-direction: column;
  }

  .insert-section .insert-grid .col-4:nth-child(2),
  .insert-section .insert-grid .col-4:nth-child(3) {
    margin-top: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .insert-position-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .insert-position-section [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .insert-position-section .ip-img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .row.remove-row,
  .row.use-rules-two-cols {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row.remove-row > *,
  .row.use-rules-two-cols > * {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 767.98px) {
  .insert-position-section .ip-img {
    width: 70% !important;
    max-width: 360px !important;
    height: auto !important;
    margin: 2rem auto 0 !important;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .insert-section,
  .insert-position-section,
  .remove-section,
  .empty-clean-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}
