:root {
  --hc-cream: #F7F0E3;
  --hc-text: #1A1A1A;
  --hc-gold: #C9A227;
  --hc-tan: #D4A96A;
  --hc-dark: #2D2B26;
  --hc-card: #FFFDF8;
}

* { scrollbar-width: thin; scrollbar-color: var(--hc-gold) var(--hc-cream); }
*::-webkit-scrollbar { width: 8px; }
*::-webkit-scrollbar-track { background: var(--hc-cream); }
*::-webkit-scrollbar-thumb { background: var(--hc-gold); border-radius: 999px; }

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--hc-gold), #f4d46b);
  z-index: 90;
}

.page-fade {
  animation: pageFade 0.4s ease;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-section {
  background: radial-gradient(circle at 20% 20%, #4a463f 0%, #1a1a1a 60%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
}

.mountains {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent),
              polygon(0 100%, 15% 50%, 25% 75%, 40% 35%, 52% 78%, 68% 42%, 80% 70%, 100% 38%, 100% 100%);
}

.logo-ring-wrap {
  position: relative;
  border-radius: 999px;
  padding: 12px;
  border: 2px dashed var(--hc-gold);
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.btn-gold {
  background: var(--hc-gold);
  color: var(--hc-text);
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -120%; }
  100% { left: 140%; }
}

.glass-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
}

.diagonal {
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
}

.program-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.25);
}

.masonry {
  column-count: 3;
  column-gap: 14px;
}

.masonry figure {
  break-inside: avoid;
  margin-bottom: 14px;
}

.masonry img {
  width: 100%;
  border-radius: 12px;
}

.cta-band {
  background: linear-gradient(120deg, #f2dfac 0%, #f7f0e3 65%);
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.flip-card {
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  min-height: 290px;
  transform-style: preserve-3d;
  transition: transform .6s;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: all .5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.inner-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #F7F0E3;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: -16px;
  background-image: url('../img/imagestock/herosection.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.06);
  opacity: 0.8;
  z-index: -2;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.72), rgba(45, 43, 38, 0.62));
  z-index: -1;
}

.inner-hero > * {
  position: relative;
  z-index: 1;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline > div {
  background: var(--hc-card);
  border-left: 4px solid var(--hc-gold);
  border-radius: 10px;
  padding: 14px;
}

.input {
  width: 100%;
  border: 1px solid rgba(212, 169, 106, .5);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

.input:focus {
  outline: none;
  border-color: var(--hc-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .2);
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--hc-gold);
  color: var(--hc-text);
  font-weight: bold;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 80;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: var(--hc-text);
  color: #fff;
  display: none;
}

.back-to-top.show { display: block; }

.marquee .animate-marquee {
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .masonry { column-count: 2; }
}

@media (max-width: 640px) {
  .masonry { column-count: 1; }
}

@media print {
  header, footer, .whatsapp-float, .back-to-top, #progressBar {
    display: none !important;
  }
}
