/* Página de producto de Come Conmigo, con la línea de la portada: crema, magenta, lima, bordes negros de 2px. */
.hip {
  --hip-rosa: var(--theme-palette-color-1, #EB1763);
  --hip-lima: var(--theme-palette-color-2, #CED629);
  --hip-tinta: var(--theme-palette-color-3, #191919);
  --hip-crema: #F3E8CC;
  --hip-papel: #FFFDF6;
  --hip-borde: 2px solid var(--hip-tinta);
  color: var(--hip-tinta);
  font-family: Montserrat, sans-serif;
  padding-bottom: 40px;
}
.hip-ancho { width: min(1200px, 100% - 32px); margin-inline: auto; }
.hip-angosto { max-width: 820px; }
.hip h1, .hip h2 { font-weight: 900; text-transform: uppercase; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
.hip h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 24px; }
.hip-seccion { margin-top: clamp(56px, 8vw, 96px); }
.hip-sub { text-align: center; margin: -12px 0 24px; font-weight: 600; }

/* Botones como los de la portada. */
.hip-bt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 26px; border: var(--hip-borde); border-radius: 14px;
  font-weight: 700; text-transform: uppercase; text-decoration: none !important; color: var(--hip-tinta) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hip-bt-lima { background: var(--hip-lima); }
.hip-bt-grande { width: 100%; padding: 16px 26px; font-size: 1.05rem; }
@media (hover: hover) { .hip-bt:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--hip-tinta); } }

/* Hero: galería + compra. */
.hip-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-top: clamp(16px, 3vw, 40px); align-items: start; }
.hip-foto { position: relative; border: var(--hip-borde); border-radius: 20px; overflow: hidden; background: var(--hip-papel); aspect-ratio: 4 / 5; }
.hip-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity .25s ease; }
.hip-desc { position: absolute; top: 14px; left: 14px; background: var(--hip-rosa); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; border: var(--hip-borde); }
.hip-foto .hip-capa { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.hip-foto .hip-capa-visible { opacity: 1; }
.hip-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: var(--hip-borde); border-radius: 999px; background: var(--hip-papel); color: var(--hip-tinta); font: 900 1.6rem/1 Montserrat, sans-serif; display: grid; place-items: center; padding: 0 0 3px; cursor: pointer; transition: background-color .2s ease; }
.hip-flecha-anterior { left: 12px; }
.hip-flecha-siguiente { right: 12px; }
@media (hover: hover) { .hip-flecha:hover { background: var(--hip-lima); } }
.hip-flecha:focus-visible { outline: 3px solid var(--hip-rosa); outline-offset: 2px; }
.hip-miniaturas { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.hip-miniaturas button { flex: 0 0 72px; height: 72px; padding: 0; border: var(--hip-borde); border-radius: 12px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .2s ease, transform .2s ease; }
.hip-miniaturas button[aria-current] { opacity: 1; transform: translateY(-2px); }
.hip-miniaturas img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.hip-compra { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.hip-rotulo { align-self: flex-start; background: var(--hip-lima); border: var(--hip-borde); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.hip-compra h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--hip-rosa); }
.hip-para { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.hip-fechas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hip-chip { background: var(--hip-papel); border: var(--hip-borde); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.hip-estado { font-weight: 600; }
.hip-precio { margin: 4px 0 0; font-size: 2.2rem; font-weight: 900; }
.hip-precio del { font-size: 1.2rem; font-weight: 600; opacity: .55; margin-left: 8px; }
.hip-termina { margin: -6px 0 0; font-weight: 700; color: var(--hip-rosa); }
.hip-cuenta, .hip .hic-cuenta { font-variant-numeric: tabular-nums; }
.hip-confianza { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.hip-confianza li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--hip-lima); border: 1.5px solid var(--hip-tinta); font-size: .7rem; font-weight: 900; }
.hip-nota { margin: 0; font-size: .85rem; opacity: .7; }
.hip-aviso { background: var(--hip-papel); border: var(--hip-borde); border-radius: 20px; padding: 20px; display: grid; gap: 8px; }
.hip-aviso p { margin: 0; }

/* Qué incluye: tarjetas lima y rosa como "¿Qué esperar aquí?". */
.hip-incluye { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hip-item { display: flex; gap: 14px; align-items: center; padding: 20px; border: var(--hip-borde); border-radius: 20px; background: var(--hip-lima); font-weight: 700; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hip-item:nth-child(even) { background: rgba(235, 23, 101, .47); }
.hip-item span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--hip-papel); border: var(--hip-borde); font-weight: 900; }
.hip-item p { margin: 0; }
@media (hover: hover) { .hip-item:hover { transform: translateY(-4px) rotate(-1deg); } }

.hip-premio { margin-top: 32px; display: flex; justify-content: center; padding: 22px; border: var(--hip-borde); border-radius: 20px; background: var(--hip-rosa); color: #fff; text-align: center; }
.hip-premio strong { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 900; text-transform: uppercase; }

/* Cómo funciona: línea de tiempo. */
.hip-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: paso; }
.hip-pasos li { counter-increment: paso; position: relative; padding: 56px 20px 20px; background: var(--hip-papel); border: var(--hip-borde); border-radius: 20px; }
.hip-pasos li::before { content: counter(paso); position: absolute; top: 16px; left: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--hip-rosa); color: #fff; font-weight: 900; }
.hip-pasos p { margin: 6px 0 0; }

/* Otros planes: las tarjetas de [hi_planes_venta] con esta línea. */
.hip .hic-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hip .hic-plan { border: var(--hip-borde); border-radius: 20px; overflow: hidden; background: var(--hip-papel); display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
@media (hover: hover) { .hip .hic-plan:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(25, 25, 25, .4); } }
.hip .hic-plan-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--hip-borde); }
.hip .hic-plan-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hip .hic-plan-desc { position: absolute; top: 10px; left: 10px; background: var(--hip-rosa); color: #fff; font-weight: 900; padding: 4px 12px; border-radius: 999px; }
.hip .hic-plan-txt { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hip .hic-rotulo { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.hip .hic-plan h3 { margin: 0; font-weight: 900; text-transform: uppercase; }
.hip .hic-plan-resumen { margin: 0; font-size: .92rem; }
.hip .hic-plan-precio { margin: auto 0 0; font-weight: 900; font-size: 1.3rem; }
.hip .hic-plan-precio del { font-size: .9rem; opacity: .55; }
.hip .hic-plan-termina { margin: 0; color: var(--hip-rosa); font-weight: 700; font-size: .9rem; }
.hip .hic-plan-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.hip .hic-plan-acciones .bt { padding: 8px 18px; border: var(--hip-borde); border-radius: 14px; font-weight: 700; text-transform: uppercase; font-size: .85rem; text-decoration: none; color: var(--hip-tinta); }
.hip .hic-plan-acciones .bt-lima { background: var(--hip-lima); }

/* Testimonios: la cinta de [hi_testimonios]. */
.hip .hic-marq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hip .hic-marq-pista { display: flex; gap: 18px; width: max-content; padding: 6px 0; animation: hip-marq 60s linear infinite; }
.hip .hic-marq:hover .hic-marq-pista { animation-play-state: paused; }
.hip .hic-testi { width: 320px; margin: 0; padding: 20px; background: var(--hip-papel); border: var(--hip-borde); border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.hip .hic-testi blockquote { margin: 0; padding: 0; border: 0; font-size: .95rem; line-height: 1.55; font-style: normal; }
.hip .hic-testi figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.hip .hic-testi figcaption span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--hip-lima); border: var(--hip-borde); font-weight: 900; }
@keyframes hip-marq { to { transform: translateX(calc(-50% - 9px)); } }

/* Preguntas. */
.hip-faq { border: var(--hip-borde); border-radius: 16px; background: var(--hip-papel); margin-bottom: 12px; }
.hip-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; }
.hip-faq summary::-webkit-details-marker { display: none; }
.hip-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 900; transition: transform .2s ease; }
.hip-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hip-faq p { margin: 0; padding: 0 20px 18px; }

.hip-cierre { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(28px, 5vw, 56px); border: var(--hip-borde); border-radius: 24px; background: var(--hip-lima); }
.hip-cierre h2 { margin: 0; color: var(--hip-rosa); }
.hip-cierre p { margin: 0; font-weight: 700; }
.hip-cierre .hip-bt { width: auto; background: var(--hip-papel); }

/* Barra fija en el celular (producto.js la muestra al pasar el botón principal). */
.hip-barra { display: none; }
@media (max-width: 860px) {
  .hip-hero { grid-template-columns: minmax(0, 1fr); }
  .hip-compra { position: static; }
  .hip-pasos { grid-template-columns: 1fr 1fr; }
  .hip-barra {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; background: var(--hip-papel); border: var(--hip-borde); border-radius: 18px;
    box-shadow: 0 10px 30px -10px rgba(25, 25, 25, .45);
    transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  .hip-barra.hip-visible { transform: none; }
  .hip-barra div { display: grid; line-height: 1.2; }
  .hip-barra span { font-weight: 900; }
  .hip-barra del { font-weight: 600; opacity: .55; font-size: .8rem; }
}
@media (max-width: 520px) { .hip-pasos { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .hip-hero > * { animation: hip-entra .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hip-hero > :nth-child(2) { animation-delay: .12s; }
  .hip .hip-sale { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--hip-retraso, 0s); }
  .hip .hip-sale.hip-visto { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hip .hic-marq-pista { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .hip .hic-testi[aria-hidden] { display: none; } }
@keyframes hip-entra { from { opacity: 0; transform: translateY(24px); } }

/* Productos digitales. */
.hip-portada { aspect-ratio: 3 / 4; background: var(--hip-lima); }
.hip-portada img { object-fit: contain; object-position: center; padding: 6%; filter: drop-shadow(0 18px 26px rgba(25, 25, 25, .28)); }
.hip-digital .hip-compra h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.hip-texto { font-size: 1.1rem; line-height: 1.6; text-align: center; }
.hip-texto p { margin: 0 0 12px; }
.hip-pasos-3 { grid-template-columns: repeat(3, 1fr); }
.hip-come { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; border: var(--hip-borde); border-radius: 24px; overflow: hidden; background: var(--hip-papel); color: inherit; text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.hip-come-foto { position: relative; border-right: var(--hip-borde); min-height: 240px; }
.hip-come-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hip-digital .hip-incluye { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hip-come > div { padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hip-come h2 { text-align: left; margin: 0; color: var(--hip-rosa); }
.hip-come p { margin: 0; }
@media (hover: hover) { .hip-come:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(25, 25, 25, .4); } }
.hip-mas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.hip-mas-item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: var(--hip-borde); border-radius: 20px; background: var(--hip-papel); color: inherit; text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hip-mas-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.hip-mas-item strong { font-weight: 900; text-transform: uppercase; font-size: .9rem; line-height: 1.2; }
.hip-mas-item span { font-weight: 900; }
.hip-mas-item del { font-weight: 600; opacity: .55; font-size: .85rem; }
@media (hover: hover) { .hip-mas-item:hover { transform: translateY(-5px) rotate(-1deg); } }
@media (max-width: 860px) {
  .hip-pasos-3 { grid-template-columns: 1fr; }
  .hip-come { grid-template-columns: 1fr; }
  .hip-come-foto { aspect-ratio: 16 / 9; border-right: 0; border-bottom: var(--hip-borde); }
}
