/**
 * Garden Pamies — Hero cinematográfico v3 (paleta vivero unificada)
 * Fuentes: Great Vibes (display) + Source Sans 3 (CTA)
 */

@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Source+Sans+3:wght@600;700&display=swap");

:root {
  --gp-green: #2d6a4f;
  --gp-green-deep: #1b4332;
  --gp-green-soft: rgba(45, 106, 79, 0.35);
  --gp-font-display: "Great Vibes", cursive;
  --gp-font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

#cpcmsbanner1 {
  position: relative;
  overflow: hidden;
  margin: 0 0 40px;
  background-image: none !important;
  background-color: #07140a !important;
  background-attachment: scroll !important;
}

#cpcmsbanner1 .container {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  padding: 0;
}

#cpcmsbanner1_block1.gp-hero,
#cpcmsbanner1 .gp-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(92vh, 900px);
  width: 100%;
  float: none;
  clear: both;
  padding: 130px 24px 110px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.gp-hero-bg {
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-image: url(/modules/cp_parallaximages/views/img/cmsbanner1.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.12);
  filter: saturate(1.12) contrast(1.04);
  will-change: transform;
}

.gp-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(45, 106, 79, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.45) 68%, rgba(5, 16, 8, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 20, 10, 0.5) 0%, rgba(7, 20, 10, 0.14) 38%, rgba(7, 20, 10, 0.62) 100%);
}

.gp-hero-shine {
  position: absolute;
  inset: -20% -40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(45, 106, 79, 0.14) 52%,
    transparent 65%
  );
  opacity: 0;
  transform: translateX(-30%);
}

.gp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.gp-hero-eyebrow {
  font-family: var(--gp-font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.gp-hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px auto 14px;
  width: min(280px, 70%);
}

.gp-hero-rule::before,
.gp-hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), var(--gp-green));
}

.gp-hero-rule::after {
  background: linear-gradient(90deg, var(--gp-green), rgba(255, 255, 255, 0.55), transparent);
}

.gp-hero-rule-leaf {
  width: 10px;
  height: 10px;
  border-radius: 0 70% 40% 70%;
  background: var(--gp-green);
  transform: rotate(-35deg);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.25);
  flex-shrink: 0;
}

.gp-hero-title {
  font-family: var(--gp-font-display);
  font-size: clamp(64px, 12vw, 118px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  margin: 4px 0 18px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.gp-hero-title span {
  display: block;
  padding: 0.06em 0;
}

.gp-hero-title span + span {
  margin-top: 0.08em;
}

.gp-hero-title .gp-hero-accent {
  color: #b7e4c7;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.12),
    0 6px 32px rgba(45, 106, 79, 0.45);
}

.gp-hero-lead {
  font-family: var(--gp-font-body);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  max-width: 34em;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

#cpcmsbanner1 .gp-hero .offer-button {
  margin: 0;
  text-align: center;
}

#cpcmsbanner1 .gp-hero .gp-hero-cta.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 38px;
  font-family: var(--gp-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  color: #fff !important;
  background: linear-gradient(135deg, var(--gp-green) 0%, var(--gp-green-deep) 100%);
  box-shadow:
    0 10px 28px rgba(27, 67, 50, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

#cpcmsbanner1 .gp-hero .gp-hero-cta.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.24) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

#cpcmsbanner1 .gp-hero .gp-hero-cta.btn:hover,
#cpcmsbanner1 .gp-hero .gp-hero-cta.btn:focus {
  color: #fff !important;
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 36px rgba(27, 67, 50, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.16) inset;
}

#cpcmsbanner1 .gp-hero .gp-hero-cta.btn:hover::after,
#cpcmsbanner1 .gp-hero .gp-hero-cta.btn:focus::after {
  transform: translateX(120%);
}

.gp-hero .gp-hero-eyebrow,
.gp-hero .gp-hero-rule,
.gp-hero .gp-hero-title span,
.gp-hero .gp-hero-lead,
.gp-hero .offer-button {
  opacity: 0;
}

.gp-hero .gp-hero-eyebrow {
  transform: translateY(24px) scale(0.98);
  filter: blur(4px);
}

.gp-hero .gp-hero-rule {
  transform: scaleX(0.4);
  transform-origin: center;
}

.gp-hero .gp-hero-title span {
  transform: translateY(48px);
  clip-path: inset(0 0 100% 0);
}

.gp-hero .gp-hero-lead {
  transform: translateY(20px);
}

.gp-hero .offer-button {
  transform: translateY(28px) scale(0.92);
}

.gp-hero.is-ready .gp-hero-eyebrow {
  animation: gpHeroEyebrow 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.gp-hero.is-ready .gp-hero-rule {
  animation: gpHeroRule 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.gp-hero.is-ready .gp-hero-title span:nth-child(1) {
  animation: gpHeroWord 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.gp-hero.is-ready .gp-hero-title span:nth-child(2) {
  animation: gpHeroWord 1s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

.gp-hero.is-ready .gp-hero-lead {
  animation: gpHeroLead 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.gp-hero.is-ready .offer-button {
  animation: gpHeroCta 0.95s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

.gp-hero.is-ready .gp-hero-bg {
  animation: gpHeroKenBurns 22s ease-in-out infinite alternate;
}

.gp-hero.is-ready .gp-hero-shine {
  animation: gpHeroShine 4.5s ease-in-out 1.2s 1 forwards;
}

.gp-hero.is-ready .gp-hero-rule-leaf {
  animation: gpHeroLeaf 2.8s ease-in-out 1.4s infinite;
}

@keyframes gpHeroEyebrow {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes gpHeroRule {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes gpHeroWord {
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes gpHeroLead {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gpHeroCta {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gpHeroKenBurns {
  from {
    transform: scale(1.12) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.22) translate3d(-2%, -1.2%, 0);
  }
}

@keyframes gpHeroShine {
  0% {
    opacity: 0;
    transform: translateX(-35%);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(35%);
  }
}

@keyframes gpHeroLeaf {
  0%,
  100% {
    transform: rotate(-35deg) scale(1);
  }
  50% {
    transform: rotate(-20deg) scale(1.15);
  }
}

@media (max-width: 991px) {
  #cpcmsbanner1_block1.gp-hero,
  #cpcmsbanner1 .gp-hero {
    min-height: min(82vh, 700px);
    padding: 110px 20px 90px;
  }

  #cpcmsbanner1 {
    margin-bottom: 28px;
  }
}

@media (max-width: 575px) {
  #cpcmsbanner1_block1.gp-hero,
  #cpcmsbanner1 .gp-hero {
    min-height: 74vh;
    padding: 96px 16px 76px;
  }

  .gp-hero-lead {
    margin-bottom: 24px;
  }

  #cpcmsbanner1 .gp-hero .gp-hero-cta.btn {
    min-width: 200px;
    padding: 14px 28px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-hero .gp-hero-eyebrow,
  .gp-hero .gp-hero-rule,
  .gp-hero .gp-hero-title span,
  .gp-hero .gp-hero-lead,
  .gp-hero .offer-button {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    animation: none !important;
  }

  .gp-hero.is-ready .gp-hero-bg,
  .gp-hero.is-ready .gp-hero-shine,
  .gp-hero.is-ready .gp-hero-rule-leaf {
    animation: none !important;
  }

  .gp-hero.is-ready .gp-hero-bg {
    transform: scale(1.1);
  }

  #cpcmsbanner1 .gp-hero .gp-hero-cta.btn,
  #cpcmsbanner1 .gp-hero .gp-hero-cta.btn::after {
    transition: none;
  }
}
