/* Pitaya & Pepino — Hero Interactivo & Escultura Sensorial */
:root {
  --pp-ink: #221F1F;
  --pp-cream: #F6F3EE;
  --pp-accent: #A84D58;
  --pp-accent-hover: #8B2B3A;
  --pp-sage: #4E6053;
  --pp-serif: 'Cormorant Garamond', Georgia, serif;
  --pp-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pp-hero {
  --p: 0;
  --mx: 0;
  --my: 0;
  height: 165svh;
  position: relative;
  background: var(--pp-cream);
  color: var(--pp-ink);
  font-family: var(--pp-sans);
}

.pp-hero * {
  box-sizing: border-box;
}

.pp-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--pp-cream);
  z-index: 1;
}

.pp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#543d3610 1px, transparent 1px), linear-gradient(90deg, #543d3610 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, transparent 35%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000);
  opacity: .6;
  pointer-events: none;
}

.pp-portal {
  position: absolute;
  width: 48vw;
  height: 48vw;
  right: -4vw;
  top: calc(50% - 27vw);
  border-radius: 50%;
  background: radial-gradient(circle at 65% 20%, #7b314d, #3c142d 65%);
  transform: scale(calc(.75 + var(--p) * 6));
  opacity: clamp(0, calc(var(--p) * 3), 1);
  pointer-events: none;
  transition: opacity 0.1s linear;
}

.pp-copy {
  position: absolute;
  z-index: 4;
  top: clamp(120px, 18vh, 180px);
  left: 6%;
  width: 58%;
  max-width: 680px;
  transform: translateY(calc(var(--p) * -150px));
  opacity: clamp(0, calc(1 - var(--p) * 3), 1);
  transition: opacity 0.15s ease-out;
}

.pp-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin: 0 0 24px;
  text-transform: uppercase;
  color: var(--pp-ink);
}

.pp-eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--pp-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(168, 77, 88, 0.18);
}

.pp-copy h1 {
  font-family: var(--pp-serif);
  font-size: clamp(52px, 6.8vw, 115px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 0;
  color: var(--pp-ink);
}

.pp-copy h1 em {
  font-family: var(--pp-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--pp-accent);
  letter-spacing: -.03em;
}

.pp-title-dot {
  font-size: 26px;
  letter-spacing: 0;
  display: inline-block;
  vertical-align: top;
  margin: 10px 0 0 14px;
  color: #8fa068;
}

.pp-description {
  font-family: var(--pp-sans);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  color: #65585b;
  margin: 24px 0 28px;
  max-width: 480px;
}

.pp-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.pp-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 26px;
  background: var(--pp-ink);
  color: var(--pp-cream);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 18px rgba(34, 31, 31, 0.15);
}

.pp-button:hover {
  background: var(--pp-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 77, 88, 0.35);
}

.pp-button span {
  font-size: 16px;
  transition: transform .2s ease;
}

.pp-button:hover span {
  transform: translate(2px, -2px);
}

.pp-round-link {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 31, 31, 0.25);
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  color: var(--pp-ink);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .25s ease;
}

.pp-round-link:hover {
  background: var(--pp-cream);
  border-color: var(--pp-accent);
  color: var(--pp-accent);
  transform: translateY(2px);
}

.pp-footnote {
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 24px;
  color: #8b777d;
  font-weight: 600;
}

.pp-art {
  position: absolute;
  right: -4%;
  top: 6%;
  width: 57%;
  height: 80%;
  perspective: 1000px;
  transform: translate(calc(var(--p) * 10vw), calc(var(--p) * -10vh)) scale(calc(1 + var(--p) * .8));
  opacity: clamp(0, calc(1 - (var(--p) - .25) * 1.8), 1);
  pointer-events: none;
}

.pp-sculpture {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  left: 10%;
  top: 8%;
  transform: rotate(calc(-26deg + var(--p) * 160deg + var(--mx) * 7deg)) rotateY(calc(-20deg + var(--mx) * 9deg)) rotateX(calc(17deg + var(--my) * 7deg));
  filter: drop-shadow(12px 30px 23px rgba(107, 39, 70, 0.22));
  transform-style: preserve-3d;
}

.pp-ring {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #ffb7a3, #ec6380 17%, #8a3458 34%, #f68eaa 53%, #ffe1c7 68%, #fff0db 75%, #f58799 87%, #ffb7a3);
  box-shadow: inset 9px 10px 18px rgba(255, 245, 223, 0.65), inset -13px -10px 21px rgba(100, 39, 64, 0.35), 14px 20px 28px rgba(140, 46, 59, 0.15);
  mask: radial-gradient(circle, transparent 48%, #000 49%);
  -webkit-mask: radial-gradient(circle, transparent 48%, #000 49%);
  inset: 0;
  animation: pp-breathe 7s ease-in-out infinite;
}

.pp-ring-middle {
  inset: 14%;
  background: conic-gradient(from 110deg, #eebbcc, #982f58, #ed8f9d, #fff1cf, #eea0bd);
  transform: rotate(calc(var(--p) * -120deg));
  animation-delay: -2s;
  mask: radial-gradient(circle, transparent 44%, #000 45%);
  -webkit-mask: radial-gradient(circle, transparent 44%, #000 45%);
}

.pp-ring-inner {
  inset: 27%;
  background: conic-gradient(from 210deg, #ca5778, #ffc5b2, #fff3d9, #b63862, #ca5778);
  animation-delay: -4s;
  mask: radial-gradient(circle, transparent 41%, #000 42%);
  -webkit-mask: radial-gradient(circle, transparent 41%, #000 42%);
}

.pp-core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 25%, #fffde2, #e3edb3 30%, #a0a779 70%, #555c42);
  box-shadow: 8px 15px 24px rgba(87, 37, 67, 0.28);
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px));
  transition: transform 0.1s ease-out;
}

.pp-orbit {
  position: absolute;
  width: 102%;
  height: 66%;
  border: 1px solid rgba(160, 102, 118, 0.3);
  border-radius: 50%;
  left: 0;
  top: 18%;
  transform: rotate(-35deg);
}

.pp-orbit-b {
  width: 108%;
  height: 83%;
  top: 6%;
  left: -3%;
  transform: rotate(30deg);
}

.pp-orb {
  position: absolute;
  border-radius: 50%;
  animation: pp-float 6s ease-in-out infinite;
}

.pp-orb-one {
  width: 75px;
  height: 75px;
  left: 9%;
  bottom: 5%;
  background: radial-gradient(circle at 28% 25%, #fff7dc, #e5e9ac 35%, #8b9766 85%);
  box-shadow: 7px 17px 25px rgba(103, 89, 76, 0.18);
}

.pp-orb-two {
  width: 33px;
  height: 33px;
  right: 13%;
  top: 4%;
  background: radial-gradient(circle at 25% 20%, #ffe2d0, #f58fab 45%, #953351);
  animation-delay: -3s;
}

.pp-art-note {
  position: absolute;
  bottom: 1%;
  left: 31%;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--pp-ink);
  opacity: .7;
}

.pp-art-number {
  position: absolute;
  top: 5%;
  left: 19%;
  font-family: var(--pp-serif);
  font-style: italic;
  font-size: 18px;
  color: #9e7985;
}

.pp-reveal {
  position: absolute;
  z-index: 5;
  inset: clamp(140px, 22vh, 220px) 8% auto;
  text-align: center;
  color: #fff0df;
  opacity: clamp(0, calc((var(--p) - .43) * 3.5), 1);
  transform: translateY(calc((1 - var(--p)) * 100px)) scale(calc(.9 + var(--p) * .1));
  pointer-events: none;
  max-width: 800px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.pp-reveal[aria-hidden="false"] {
  pointer-events: auto;
}

.pp-reveal .pp-eyebrow {
  justify-content: center;
  color: #eeb4bc;
}

.pp-reveal-title {
  font-family: var(--pp-serif);
  font-size: clamp(52px, 7vw, 110px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0 0 20px;
  font-weight: 500;
}

.pp-reveal-title em {
  font-family: var(--pp-serif);
  font-weight: 400;
  font-style: italic;
  color: #f8afbf;
}

.pp-reveal > p:last-of-type {
  font-family: var(--pp-sans);
  font-size: clamp(14px, 1.2vw, 17px);
  color: #e6bac9;
  margin-bottom: 28px;
  line-height: 1.6;
}

.pp-button-light {
  background: #e7edb6;
  color: #3c142d;
}

.pp-button-light:hover {
  background: #ffffff;
  color: #3c142d;
  box-shadow: 0 8px 30px rgba(231, 237, 182, 0.4);
}

.pp-bottom {
  position: absolute;
  z-index: 6;
  left: 6%;
  right: 6%;
  bottom: 90px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--pp-ink);
  pointer-events: none;
  transition: color .2s ease;
}

.pp-hero[data-dark="true"] .pp-bottom {
  color: #f9dbe4;
}

.pp-scroll {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.pp-scroll span {
  font-size: 16px;
  margin-left: 8px;
}

.pp-progress {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: .4;
  position: relative;
}

.pp-progress i {
  display: block;
  height: 3px;
  background: currentColor;
  width: calc(2% + var(--p) * 98%);
  margin-top: -1px;
  border-radius: 2px;
  transition: width 0.05s linear;
}

.pp-counter {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
}

.pp-counter i {
  font-style: normal;
  opacity: .4;
  margin: 0 8px;
}

.pp-ticker {
  position: absolute;
  z-index: 7;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #e5edb9;
  border-top: 1px solid rgba(50, 32, 39, 0.1);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #3c142d;
}

.pp-ticker > div {
  white-space: nowrap;
  font-family: var(--pp-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transform: translateX(calc(var(--p) * -430px));
  padding-left: 35px;
  will-change: transform;
}

.pp-ticker span {
  display: inline-block;
  font-size: 24px;
  margin: 0 32px;
  vertical-align: middle;
  color: var(--pp-accent);
}

@keyframes pp-breathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.025) translate(0, -5px); }
}

@keyframes pp-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -16px); }
}

@media (min-width: 1500px) {
  .pp-copy {
    top: clamp(140px, 20vh, 200px);
  }
  .pp-art {
    top: 2%;
  }
}

@media (max-width: 1050px) and (min-width: 701px) {
  .pp-copy {
    top: clamp(120px, 16vh, 160px);
    width: 65%;
  }
  .pp-copy h1 {
    font-size: 7.2vw;
  }
  .pp-art {
    top: 14%;
    height: 65%;
    right: -8%;
  }
  .pp-description {
    font-size: 13.5px;
  }
}

@media (max-width: 700px) {
  .pp-hero {
    height: 150svh;
  }
  .pp-stage {
    min-height: 680px;
  }
  .pp-copy {
    top: clamp(115px, 14vh, 140px);
    left: 6%;
    width: 88%;
    max-width: none;
  }
  .pp-eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 14px;
  }
  .pp-copy h1 {
    font-size: clamp(40px, 10.5vw, 65px);
    letter-spacing: -.03em;
  }
  .pp-title-dot {
    font-size: 20px;
    margin: 4px 0 0 8px;
  }
  .pp-description {
    font-size: 13px;
    margin: 14px 0 20px;
    line-height: 1.6;
  }
  .pp-actions {
    gap: 10px;
  }
  .pp-button {
    padding: 13px 18px;
    font-size: 12px;
    gap: 14px;
  }
  .pp-round-link {
    height: 46px;
    width: 46px;
    font-size: 18px;
  }
  .pp-footnote {
    font-size: 8px;
    margin-top: 14px;
    letter-spacing: 1.2px;
  }
  .pp-art {
    width: 90%;
    height: 44%;
    top: 45%;
    right: -2%;
    transform: translate(calc(var(--p) * 8vw), calc(var(--p) * -5vh)) scale(calc(1 + var(--p) * 1.1));
  }
  .pp-sculpture {
    width: 76%;
    left: 12%;
    top: 2%;
  }
  .pp-orbit-a {
    height: 65%;
    top: 13%;
  }
  .pp-orbit-b {
    height: 83%;
    top: 0;
  }
  .pp-orb-one {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 8%;
  }
  .pp-orb-two {
    width: 22px;
    height: 22px;
    right: 7%;
    top: 10%;
  }
  .pp-art-note {
    font-size: 7px;
    bottom: 0;
    left: 20%;
    letter-spacing: 1.5px;
  }
  .pp-art-number {
    font-size: 14px;
    top: 2%;
    left: 5%;
  }
  .pp-portal {
    width: 110vw;
    height: 110vw;
    right: -15vw;
    top: 36%;
    transform: scale(calc(.5 + var(--p) * 6));
  }
  .pp-reveal {
    inset: clamp(140px, 18vh, 170px) 6% auto;
  }
  .pp-reveal-title {
    font-size: clamp(38px, 9.5vw, 62px);
    letter-spacing: -.03em;
  }
  .pp-reveal > p:last-of-type {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .pp-bottom {
    bottom: 74px;
    gap: 12px;
  }
  .pp-scroll {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .pp-scroll span {
    font-size: 14px;
    margin-left: 4px;
  }
  .pp-counter {
    font-size: 9px;
    white-space: nowrap;
  }
  .pp-ticker {
    height: 48px;
  }
  .pp-ticker > div {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .pp-ticker span {
    font-size: 18px;
    margin: 0 18px;
  }
  .pp-grid {
    background-size: 80px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pp-hero {
    height: auto;
  }
  .pp-stage {
    position: relative;
    height: auto;
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 20px;
  }
  .pp-copy {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    width: 100%;
    max-width: 650px;
    padding: 0 6%;
  }
  .pp-art {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 380px;
    max-width: 400px;
    margin: 20px auto 0;
    transform: none;
    opacity: 1;
  }
  .pp-ring, .pp-orb {
    animation: none;
  }
  .pp-reveal {
    display: none;
  }
  .pp-button {
    transition: none;
  }
  .pp-scroll {
    visibility: hidden;
  }
  .pp-bottom {
    display: none;
  }
  .pp-ticker {
    position: relative;
    margin-top: 30px;
  }
  .pp-ticker > div {
    transform: none;
  }
}

/* Ajustes de compatibilidad, separación de cabecera fija y franja inferior */
.pp-hero .pp-stage {
  min-height: 720px;
}

/* Espacio superior para que el texto nunca quede oculto bajo la cabecera fija */
.pp-hero .pp-copy {
  top: clamp(130px, 17vh, 180px);
}

.pp-hero .pp-copy h1 {
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.pp-hero .pp-copy h1 em {
  letter-spacing: -0.035em;
}

.pp-hero .pp-footnote {
  position: static;
  margin: 22px 0 0;
  line-height: 1.6;
}

.pp-ticker {
  display: none !important;
}

.pp-hero .pp-reveal {
  inset: clamp(160px, 20vh, 210px) 8% auto;
}

/* Posicionamiento del indicador inferior en la base del hero */
.pp-hero .pp-bottom {
  bottom: 30px;
  line-height: 1.5;
}

.pp-hero .pp-art-note {
  bottom: 0;
  line-height: 1.6;
}

/* Separación limpia y compacta con la siguiente sección */
.trust-bar-section,
.pp-hero + .trust-bar-section {
  margin: 15px auto 25px !important;
}

@media (max-width: 700px) {
  .pp-hero .pp-stage {
    min-height: 640px;
  }
  .pp-hero .pp-copy {
    top: 105px;
  }
  .pp-hero .pp-reveal {
    inset: 125px 6% auto;
  }
  .pp-hero .pp-bottom {
    bottom: 20px;
  }
  .pp-hero .pp-art-note {
    bottom: -2%;
  }
  .trust-bar-section,
  .pp-hero + .trust-bar-section {
    margin: 12px auto 18px !important;
  }
}



