/* Hero premium — solo home Pulso. prefers-reduced-motion respetado. */

.pl-hero-premium {
  position: relative;
  max-width: min(1180px, calc(100% - 28px));
  margin: 6px auto 20px;
  min-height: 0;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(197, 206, 214, 0.55);
  box-shadow:
    0 28px 80px rgba(31, 41, 55, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  isolation: isolate;
}

.pl-hero-premium__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0f1419;
}

.pl-hero-premium__mesh {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(46, 124, 112, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(148, 14, 14, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 50% at 60% 85%, rgba(196, 92, 38, 0.22), transparent 55%),
    linear-gradient(165deg, #1a2228 0%, #0f1419 45%, #152019 100%);
  animation: pl-mesh-drift 22s ease-in-out infinite alternate;
}

.pl-hero-premium__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 58%
  );
  transform: translateX(-120%);
  animation: pl-hero-sweep 1.1s ease-out 0.45s 1 forwards;
  pointer-events: none;
  z-index: 1;
}

.pl-hero-premium__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: pl-orb-float 18s ease-in-out infinite;
}
.pl-hero-premium__orb--1 {
  width: 240px;
  height: 240px;
  background: rgba(46, 124, 112, 0.5);
  top: 4%;
  left: -4%;
}
.pl-hero-premium__orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(149, 14, 14, 0.35);
  top: 48%;
  right: 5%;
  animation-delay: -6s;
  animation-duration: 24s;
}
.pl-hero-premium__orb--3 {
  width: 140px;
  height: 140px;
  background: rgba(245, 220, 200, 0.2);
  bottom: 8%;
  left: 35%;
  animation-delay: -12s;
  animation-duration: 20s;
}

.pl-hero-premium__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pl-hero-premium__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding: clamp(14px, 2.5vw, 22px) clamp(20px, 3.5vw, 40px);
}

.pl-hero-premium__copy {
  color: #f4f0e8;
  max-width: 36rem;
}

.pl-hero-premium__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.75);
  margin-bottom: 8px;
}
.pl-hero-premium__badge::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 184, 170, 0.9));
  animation: pl-line-grow 0.9s ease-out 0.2s both;
}

.pl-hero-premium__kicker {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb8aa;
  margin: 0 0 8px;
}

.pl-hero-premium__copy h1 {
  font-family: "Cormorant Garamond", "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.45rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.pl-hero-premium__lede {
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.55;
  color: rgba(244, 240, 232, 0.82);
  margin: 0;
  max-width: 38ch;
}

.pl-hero-premium__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pl-hero-premium .btn-primary {
  background: linear-gradient(135deg, #c8e6df 0%, #a8d4c8 100%);
  border-color: #7eb8aa;
  box-shadow: 0 8px 28px rgba(46, 124, 112, 0.35);
}
.pl-hero-premium .btn-warm {
  background: linear-gradient(135deg, #f5dcc8 0%, #e8c4a8 100%);
  box-shadow: 0 8px 24px rgba(196, 92, 38, 0.25);
}

.pl-hero-premium__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.pl-hero-premium__frame {
  position: relative;
  width: 100%;
  max-width: min(520px, 100%);
  border-radius: 1.2rem;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(126, 184, 170, 0.9),
    rgba(149, 14, 14, 0.5),
    rgba(245, 220, 200, 0.4)
  );
  background-size: 200% 200%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: pl-border-shift 12s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}

.pl-hero-premium__frame-inner {
  border-radius: 1.05rem;
  overflow: hidden;
  background: #fafaf8;
  position: relative;
  transform-style: preserve-3d;
}

.pl-hero-premium__unroll {
  transform-origin: top center;
}

.pl-hero-premium__img-wrap {
  position: relative;
  width: 100%;
  background: #fafaf8;
  overflow: hidden;
  line-height: 0;
}

.pl-hero-premium__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
}

.pl-hero-premium__photo-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: clamp(10px, 3.5%, 18px) clamp(12px, 5%, 22px) 0;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
  z-index: 4;
}

.pl-hero-premium__photo-caption-kicker {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(46, 124, 112, 0.88);
  margin-bottom: 6px;
}

.pl-hero-premium__photo-caption-head {
  display: block;
  font-family: "Cormorant Garamond", "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: #1f2933;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pl-hero-premium__photo-caption-head em {
  font-style: normal;
  color: #950e0e;
  font-weight: 800;
}

/* —— Variante: rollo (desenrollado) —— */
.pl-hero-premium--rollo .pl-hero-premium__unroll {
  animation: pl-scroll-unroll 1.75s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both;
}
.pl-hero-premium--rollo .pl-hero-premium__curl {
  opacity: 0;
  animation: pl-curl-fade 1.75s ease-out 0.05s forwards;
}

/* —— Variante: iris (apertura circular) —— */
.pl-hero-premium--iris .pl-hero-premium__unroll {
  animation: pl-fx-iris 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.pl-hero-premium--iris .pl-hero-premium__curl {
  display: none;
}
.pl-hero-premium--iris .pl-anim-d1 { animation-delay: 0.72s; }
.pl-hero-premium--iris .pl-anim-d2 { animation-delay: 0.82s; }
.pl-hero-premium--iris .pl-anim-d3 { animation-delay: 0.94s; }
.pl-hero-premium--iris .pl-anim-d4 { animation-delay: 1.04s; }
.pl-hero-premium--iris .pl-anim-d5 { animation-delay: 1.14s; }

/* —— Variante: profundidad (tarjeta 3D desde el fondo) —— */
.pl-hero-premium--profundidad .pl-hero-premium__frame {
  animation: pl-border-shift 12s ease-in-out infinite alternate,
    pl-fx-depth-frame 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.pl-hero-premium--profundidad .pl-hero-premium__unroll {
  animation: pl-fx-depth-inner 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.pl-hero-premium--profundidad .pl-hero-premium__curl {
  display: none;
}
.pl-hero-premium--profundidad .pl-anim-d1 { animation-delay: 0.78s; }
.pl-hero-premium--profundidad .pl-anim-d2 { animation-delay: 0.88s; }
.pl-hero-premium--profundidad .pl-anim-d3 { animation-delay: 1s; }
.pl-hero-premium--profundidad .pl-anim-d4 { animation-delay: 1.1s; }
.pl-hero-premium--profundidad .pl-anim-d5 { animation-delay: 1.2s; }

/* —— Variante: cortina (paneles que se abren) —— */
.pl-hero-premium--cortina .pl-hero-premium__unroll {
  animation: pl-fx-curtain 1.25s cubic-bezier(0.65, 0, 0.35, 1) 0.05s both;
}
.pl-hero-premium--cortina .pl-hero-premium__curl {
  display: none;
}
.pl-hero-premium--cortina .pl-anim-d1 { animation-delay: 0.62s; }
.pl-hero-premium--cortina .pl-anim-d2 { animation-delay: 0.72s; }
.pl-hero-premium--cortina .pl-anim-d3 { animation-delay: 0.84s; }
.pl-hero-premium--cortina .pl-anim-d4 { animation-delay: 0.94s; }
.pl-hero-premium--cortina .pl-anim-d5 { animation-delay: 1.04s; }

/* —— Variante: lente (enfoque + zoom suave) —— */
.pl-hero-premium--lente .pl-hero-premium__unroll {
  animation: pl-fx-lens-mask 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.pl-hero-premium--lente .pl-hero-premium__curl {
  display: none;
}
.pl-hero-premium--lente .pl-anim-d1 { animation-delay: 0.7s; }
.pl-hero-premium--lente .pl-anim-d2 { animation-delay: 0.8s; }
.pl-hero-premium--lente .pl-anim-d3 { animation-delay: 0.92s; }
.pl-hero-premium--lente .pl-anim-d4 { animation-delay: 1.02s; }
.pl-hero-premium--lente .pl-anim-d5 { animation-delay: 1.12s; }

.pl-hero-premium__curl {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.35), transparent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.pl-hero-premium__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-100%);
  animation: pl-shimmer 5s ease-in-out 2.2s infinite;
  pointer-events: none;
  z-index: 3;
}

.pl-hero-premium__pulse {
  position: absolute;
  width: min(360px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(126, 184, 170, 0.28);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pl-hero-premium__pulse::before,
.pl-hero-premium__pulse::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px solid rgba(126, 184, 170, 0.18);
  animation: pl-pulse-ring 4.5s ease-out infinite;
}
.pl-hero-premium__pulse::after {
  animation-delay: 2.2s;
  border-color: rgba(149, 14, 14, 0.12);
}

.pl-hero-premium .pl-anim {
  opacity: 0;
  animation: pl-copy-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pl-hero-premium .pl-anim-d1 { animation-delay: 0.9s; }
.pl-hero-premium .pl-anim-d2 { animation-delay: 1s; }
.pl-hero-premium .pl-anim-d3 { animation-delay: 1.12s; }
.pl-hero-premium .pl-anim-d4 { animation-delay: 1.22s; }
.pl-hero-premium .pl-anim-d5 { animation-delay: 1.32s; }
.pl-hero-premium .pl-anim-d-caption { animation-delay: 1.05s; }

@keyframes pl-mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.04); }
}
@keyframes pl-orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -14px); }
}
@keyframes pl-hero-sweep {
  to { transform: translateX(120%); }
}
@keyframes pl-scroll-unroll {
  0% {
    clip-path: inset(0 0 100% 0 round 1.05rem);
    transform: perspective(900px) rotateX(72deg) scaleY(0.35);
    filter: brightness(0.55) contrast(1.05);
  }
  45% {
    clip-path: inset(0 0 12% 0 round 1.05rem);
    transform: perspective(900px) rotateX(14deg) scaleY(1);
    filter: brightness(0.92);
  }
  100% {
    clip-path: inset(0 0 0 0 round 1.05rem);
    transform: perspective(900px) rotateX(0deg) scaleY(1);
    filter: brightness(1);
  }
}
@keyframes pl-cinematic-pan {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -4%, 0) scale(1.02) rotate(0.25deg);
  }
  100% {
    transform: translate3d(0, -7%, 0) scale(1.03) rotate(-0.2deg);
  }
}
@keyframes pl-curl-fade {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(6px); }
}
@keyframes pl-shimmer {
  0%, 65%, 100% { transform: translateX(-100%); }
  32% { transform: translateX(100%); }
}
@keyframes pl-pulse-ring {
  0% { transform: scale(0.94); opacity: 0.65; }
  100% { transform: scale(1.1); opacity: 0; }
}
@keyframes pl-copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pl-line-grow {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
@keyframes pl-border-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes pl-fx-iris {
  0% {
    clip-path: circle(0% at 50% 42%);
    filter: brightness(0.5);
  }
  70% {
    clip-path: circle(78% at 50% 42%);
    filter: brightness(0.95);
  }
  100% {
    clip-path: circle(130% at 50% 42%);
    filter: brightness(1);
  }
}
@keyframes pl-fx-iris-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-1.5%, -4%, 0) scale(1.03); }
}
@keyframes pl-fx-depth-frame {
  0% {
    transform: perspective(1000px) rotateY(22deg) rotateX(8deg) translateZ(-80px) scale(0.88);
    opacity: 0.35;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes pl-fx-depth-inner {
  0% {
    filter: blur(10px) brightness(0.65);
    transform: scale(1.03);
  }
  100% {
    filter: blur(0) brightness(1);
    transform: none;
  }
}
@keyframes pl-fx-depth-pan {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -6%, 0) scale(1.03) rotate(0.25deg); }
}
@keyframes pl-fx-curtain {
  0% {
    clip-path: inset(0 49.8% 0 49.8% round 1.05rem);
    filter: contrast(1.08) brightness(0.7);
  }
  55% {
    clip-path: inset(0 8% 0 8% round 1.05rem);
    filter: brightness(0.92);
  }
  100% {
    clip-path: inset(0 0 0 0 round 1.05rem);
    filter: brightness(1);
  }
}
@keyframes pl-fx-lens-mask {
  0% {
    opacity: 0.2;
    transform: scale(0.94);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
@keyframes pl-fx-lens-focus {
  0% {
    transform: scale(1.22);
    filter: blur(12px) saturate(0.88);
  }
  70% {
    transform: scale(1.02);
    filter: blur(1.5px) saturate(1);
  }
  100% {
    transform: scale(1);
    filter: blur(0) saturate(1);
  }
}
@keyframes pl-fx-lens-breathe {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-1%, -3.5%, 0) scale(1.03); }
}

@media (max-width: 900px) {
  .pl-hero-premium__layout {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 14px 16px 16px;
  }
  .pl-hero-premium__copy { order: 2; max-width: none; }
  .pl-hero-premium__visual { order: 1; }
  .pl-hero-premium__lede { max-width: none; margin: 0 auto; }
  .pl-hero-premium__ctas { justify-content: center; }
  .pl-hero-premium__badge::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-hero-premium__mesh,
  .pl-hero-premium__orb,
  .pl-hero-premium__img,
  .pl-hero-premium__shimmer,
  .pl-hero-premium__pulse::before,
  .pl-hero-premium__pulse::after,
  .pl-hero-premium__unroll,
  .pl-hero-premium__sweep,
  .pl-hero-premium__curl,
  .pl-hero-premium__frame,
  .pl-hero-premium .pl-anim,
  .pl-hero-premium--profundidad .pl-hero-premium__frame {
    animation: none !important;
  }
  .pl-hero-premium .pl-anim,
  .pl-hero-premium__unroll {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
  }
  .pl-hero-premium__img {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .pl-hero-premium .pl-anim-d-caption {
    opacity: 1;
  }
}
