/* =====================================================================
   PUMAS AVENTUREROS 2025 — style.css
   Color palette derived from the mascot: a puma cub with cyan-blue
   wings and eyes, warm brown/tan fur, and a white chest.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Primary — wing/eye blue */
  --color-primary: #1f9fd6;
  --color-primary-dark: #137bab;
  --color-primary-light: #e6f5fc;

  /* Accent — puma fur brown/tan */
  --color-accent-light-2: #dfaf88;
  --color-accent: #b5743e;
  --color-accent-dark: #8a5326;
  --color-accent-light: #f4e9dd;

  /* Neutrals */
  --color-cream: #fbf7f2;
  --color-white: #ffffff;
  --color-ink: #2a241f;
  --color-muted: #6c6258;
  --color-border: #ece4d9;

  /* Typography */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  /* Layout */
  --section-spacing: 6rem;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 6px 18px rgba(42, 36, 31, 0.06);
  --shadow-md: 0 16px 40px rgba(42, 36, 31, 0.10);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================================================================
   TYPOGRAPHIC SYSTEM — single source of truth
   Never set font-size / weight / line-height / color directly on
   h1, h2, h3 or p. Always use these classes.
   ===================================================================== */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 1rem;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  margin: 0 0 0.5rem;
}

.section-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

/* ---------- Shared helpers ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-intro {
  max-width: 620px;
}

/* Wide banner image for a section */
.section-image {
  margin: 0 0 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 6;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Side variant — image used as a column next to content */
.section-image-side {
  margin-bottom: 0;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 100px;
}

@media (max-width: 991.98px) {
  .section-image-side {
    position: static;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  .section-image {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  color: var(--color-white);
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline-custom {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent-dark);
  background-color: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  color: var(--color-white);
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* =====================================================================
   HEADER (estilo territorios — .site-header)
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(251, 247, 242, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.site-header.scrolled {
  background: rgba(251, 247, 242, .95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
  text-decoration: none;
}

.brand-logo {
  max-height: 44px;
  width: auto;
  display: block;
  border-radius: 50%;
  background-color: var(--color-primary-light);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: .5rem .62rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 700;
  color: var(--color-muted);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}

.main-nav a.active {
  color: var(--color-primary-dark);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: .62rem;
  right: .62rem;
  bottom: .12rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(72px + var(--section-spacing) + 1rem);
  padding-bottom: calc(var(--section-spacing) + 5rem);
  /*background:
    radial-gradient(circle at 80% 20%, var(--color-primary-light), transparent 55%),
    radial-gradient(circle at 10% 90%, var(--color-accent-light), transparent 50%),
    var(--color-cream);*/
  background: radial-gradient(circle at 80% 20%, #f4f4f4, transparent 55%), radial-gradient(circle at 10% 90%, var(--color-accent-light), transparent 50%), #f3f3f3;
  overflow: hidden;
}

/* ---------- Hero circular text arcs (bottom corners) ---------- */
.hero-arc {
  position: absolute;
  bottom: 0;
  width: clamp(300px, 32vw, 540px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-arc *,
.hero-arc svg {
  pointer-events: none;
}

/* Push most of each circle off-screen so only the top arc peeks in the corner */
.hero-arc-left {
  left: 0;
  transform: translate(-38%, 62%);
}

.hero-arc-right {
  right: 0;
  transform: translate(38%, 62%);
}

.hero-arc-svg {
  width: 100%;
  height: 100%;
  animation: arc-spin 10s linear infinite;
}

.hero-arc-right .hero-arc-svg {
  animation-direction: reverse;
}

/* White band drawn behind the curved text */
.hero-arc-band {
  fill: none;
  stroke: var(--color-white);
  stroke-width: 46;
}

.hero-arc-svg text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  fill: var(--color-accent-dark);
}

@keyframes arc-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-arc-svg { animation: none; }
}

@media (max-width: 1199.98px) {
  .hero-arc {
    width: clamp(240px, 30vw, 380px);
    transform: translate(-40%, 65%);
  }
  .hero-arc-right {
    transform: translate(40%, 65%);
  }
}

@media (max-width: 991.98px) {
  .hero-arc {
    width: clamp(200px, 28vw, 320px);
    transform: translate(-42%, 68%);
  }
  .hero-arc-right {
    transform: translate(42%, 68%);
  }
}

@media (max-width: 767.98px) {
  .hero-arc {
    display: none;
  }
}

/* ---------- Hero wavy ground ---------- */
.hero-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(70px, 9vw, 130px);
}

/* Top crest — lighter brown */
.hero-wave-back {
  fill: var(--color-accent);
}

/* Lower crest — darker brown (keeps the two-tone ground look) */
.hero-wave-mid {
  fill: var(--color-accent-dark);
}

/* Front layer extends downward in the next block's color to merge with it */
.hero-wave-front {
  fill: var(--color-cream);
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(76px, 13vw, 1px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  z-index: 3;
  animation: indicator-float 2.4s ease-in-out infinite;
}

.scroll-mouse {
  display: block;
  width: 26px;
  height: 44px;
  border: 2px solid var(--color-accent);
  border-radius: 14px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background-color: var(--color-primary-dark);
  border-radius: 2px;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

.scroll-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@keyframes scroll-wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes indicator-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator,
  .scroll-wheel {
    animation: none;
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
  background-color: var(--color-accent-light);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-ink);
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: none;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  animation: float 6s ease-in-out infinite;
  mix-blend-mode: multiply;
}

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

/* ---------- Countdown ---------- */
.countdown {
  margin-top: 2.75rem;
}

/* Standalone countdown section (after the hero) */
.countdown-section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.countdown-centered {
  margin-top: 0;
  text-align: center;
}

.countdown-centered .countdown-grid {
  justify-content: center;
}

.countdown-section .countdown-label {
  font-size: 1.1rem;
}

.countdown-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.countdown-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  text-align: center;
  min-width: 78px;
  box-shadow: var(--shadow-sm);
}

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-primary);
}

.countdown-unit {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

/* =====================================================================
   CONTENT SECTIONS
   ===================================================================== */
.content-section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.section-alt {
  background-color: var(--color-white);
}

.section-highlight {
  background:
    linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.section-highlight .section-eyebrow {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.18);
}

.section-highlight .section-title {
  color: var(--color-white);
}

/* ---------- Groups (alternating text + image rows) ---------- */
.group-row + .group-row {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.group-feature-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.group-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.group-feature-media:hover img {
  transform: scale(1.05);
}

/* Tilted "sticker" tag (Starlight Camp style) */
.group-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  margin-bottom: 1.3rem;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.group-tag:hover {
  transform: rotate(0deg);
}

.group-tag-a { background-color: var(--color-accent-light-2); }
.group-tag-b {
  background-color: var(--color-accent);
  transform: rotate(3deg);
}
.group-tag-b:hover { transform: rotate(0deg); }
.group-tag-c { background-color: var(--color-accent-dark); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-grow: 1;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.feature-list li::before {
  content: "\F26A"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}

/* ---------- Benefit cards ---------- */
.benefit-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

/* ---------- Outings gallery (stacked photo carousel) ---------- */
.outings-gallery {
  position: relative;
  padding-block: var(--section-spacing);
  background-image: url("https://framerusercontent.com/images/kYFsLlwC8inyswncvWd0ZWAI.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Dark overlay over the forest photo */
.outings-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 22, 0.75), rgba(20, 28, 22, 0.82));
  z-index: 0;
}

.outings-gallery .container {
  z-index: 1;
}

/* Two-tone title on the dark background */
.outings-title {
  color: var(--color-white);
}

.outings-title .hl {
  color: var(--color-primary);
}

.outings-gallery .section-eyebrow {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

/* Carousel layout: arrows flanking the stage */
.gallery-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  margin-top: 1rem;
}

.gallery-stage {
  position: relative;
  width: clamp(280px, 50vw, 560px);
  aspect-ratio: 3 / 2;
  flex-shrink: 1;
}

/* Faked stack of photos behind the active one */
.gallery-stage::before,
.gallery-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-white);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.gallery-stage::before {
  transform: rotate(4deg) translate(10px, 6px);
}

.gallery-stage::after {
  transform: rotate(-5deg) translate(-12px, 4px);
}

/* Active photo with a polaroid-style white frame */
.gallery-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12px;
  background-color: var(--color-white);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.5deg);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-frame.is-fading img {
  opacity: 0;
}

/* Circular navigation buttons */
.gallery-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  font-size: 1.3rem;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover,
.gallery-nav:focus {
  background-color: var(--color-white);
  color: var(--color-ink);
  transform: scale(1.08);
}

/* Caption below the stage */
.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2.5rem;
}

.gallery-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.gallery-sub {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.8);
}

/* Floating decorative shapes */
.deco-shape {
  position: absolute;
  z-index: 1;
  animation: deco-float 7s ease-in-out infinite;
}

.deco-triangle {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid var(--color-accent);
  background: none;
}

.deco-square {
  width: 18px;
  height: 18px;
  border: 3px solid var(--color-primary);
  transform: rotate(20deg);
}

.deco-1 { top: 26%; left: 22%; }
.deco-2 { top: 40%; left: 18%; animation-delay: 1.2s; }
.deco-3 { top: 14%; right: 16%; }
.deco-4 { top: 32%; right: 12%; animation-delay: 0.8s; border-color: var(--color-accent); }
.deco-5 { bottom: 16%; right: 24%; animation-delay: 1.8s; }

@keyframes deco-float {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50%      { transform: translateY(-14px) rotate(25deg); }
}

@media (max-width: 575.98px) {
  .deco-shape { display: none; }
  .gallery-caption { margin-top: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .deco-shape { animation: none; }
}

/* ---------- Detail cards (on highlight bg) ---------- */
.detail-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

/* ---------- Registration ---------- */
.registration-box {
  background:
    radial-gradient(circle at 0% 0%, var(--color-accent-light), transparent 50%),
    radial-gradient(circle at 100% 100%, var(--color-primary-light), transparent 50%),
    var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 1.5rem;
}

/* Button with an arrow that rotates from up-right to right on hover */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-arrow-icon {
  font-size: 1.1em;
  transition: transform 0.25s ease;
  transform: rotate(45deg) translateX(2px);
}

.btn-arrow:hover .btn-arrow-icon,
.btn-arrow:focus .btn-arrow-icon {
  /* ↗ (up-right) rotates to → (right) and nudges forward */
  transform: rotate(90deg) translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-arrow-icon {
    transition: none;
  }
}

.registration-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.registration-note i {
  color: var(--color-primary);
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(42, 36, 31, 0.65));
}

.gallery-caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Contact (full-bleed split panel) ---------- */
.contact-section {
  /* No horizontal padding so the background colors span the full width */
  scroll-margin-top: 90px;
}

.contact-split {
  align-items: stretch;
}

/* Left colored panel */
.contact-panel {
  height: 100%;
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-inline: 1.5rem;
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  flex-direction: column;
}

.contact-panel-title {
  color: var(--color-white);
  margin-bottom: 2.5rem;
}

/* Contact person (photo + name) */
.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.contact-person-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.contact-person-info {
  display: flex;
  flex-direction: column;
}

.contact-person-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
}

.contact-person-role {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-block {
  margin-bottom: 2rem;
}

.contact-label {
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.contact-detail {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.25rem;
}

.contact-detail a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--color-white);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-social a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Right dark form panel */
.contact-form-panel {
  height: 100%;
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-inline: 1.5rem;
  background-color: var(--color-ink);
}

.contact-form-title {
  color: var(--color-white);
  margin-bottom: 2.5rem;
}

.contact-form-title span {
  color: var(--color-primary);
}

.contact-form-panel .form-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.contact-form-panel .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  padding: 0.75rem 1rem;
}

.contact-form-panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form-panel .form-control:focus {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 0.2rem rgba(31, 159, 214, 0.2);
  color: var(--color-white);
}

.form-feedback {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--color-primary);
}

.contact-copyright {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Align panel content to the .container edges used by the other sections.
   Colors stay full-bleed; only the inner content is offset to match. */

/* Stacked layout: align both sides to the container margin */
@media (min-width: 576px) {
  .contact-panel,
  .contact-form-panel {
    padding-inline: max(1.5rem, calc((100vw - 540px) / 2 + 0.75rem));
  }
}

@media (min-width: 768px) {
  .contact-panel,
  .contact-form-panel {
    padding-inline: max(1.5rem, calc((100vw - 720px) / 2 + 0.75rem));
  }
}

/* Split layout: outer edge aligns to container, inner seam keeps a gutter */
@media (min-width: 992px) {
  .contact-panel {
    padding-left: max(1.5rem, calc((100vw - 960px) / 2 + 0.75rem));
    padding-right: clamp(2rem, 4vw, 4rem);
  }
  .contact-form-panel {
    padding-right: max(1.5rem, calc((100vw - 960px) / 2 + 0.75rem));
    padding-left: clamp(2rem, 4vw, 4rem);
  }
}

@media (min-width: 1200px) {
  .contact-panel {
    padding-left: max(1.5rem, calc((100vw - 1140px) / 2 + 0.75rem));
  }
  .contact-form-panel {
    padding-right: max(1.5rem, calc((100vw - 1140px) / 2 + 0.75rem));
  }
}

@media (min-width: 1400px) {
  .contact-panel {
    padding-left: max(1.5rem, calc((100vw - 1320px) / 2 + 0.75rem));
  }
  .contact-form-panel {
    padding-right: max(1.5rem, calc((100vw - 1320px) / 2 + 0.75rem));
  }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background-color: var(--color-ink);
  color: var(--color-cream);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.site-footer .brand-name {
  color: var(--color-white);
}

.footer-brand {
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(251, 247, 242, 0.7);
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(251, 247, 242, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom .section-text {
  color: rgba(251, 247, 242, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 1030;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991.98px) {
  :root {
    --section-spacing: 4rem;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(251, 247, 242, .98);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(42, 36, 31, 0.12);
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .main-nav.open {
    max-height: calc(100svh - 72px);
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 1.5rem 1.4rem;
  }

  .main-nav a {
    padding: .9rem .4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav a.active {
    background: var(--color-primary-light);
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-visual {
    margin-top: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .countdown-item {
    min-width: 64px;
    padding: 0.7rem 0.8rem;
  }

  .countdown-number {
    font-size: 1.4rem;
  }

  .hero-actions .btn,
  .registration-actions .btn {
    width: 100%;
  }
}

/* =====================================================================
   GROUPS — alternating layout + tag colors via nth-child
   ===================================================================== */
@media (min-width: 992px) {
  .group-row--reverse {
    flex-direction: row-reverse;
  }
}

.groups-list .group-row:nth-child(3n+1) .group-tag { background-color: var(--color-accent-light-2); }
.groups-list .group-row:nth-child(3n+2) .group-tag { background-color: var(--color-accent); transform: rotate(3deg); }
.groups-list .group-row:nth-child(3n+2) .group-tag:hover { transform: rotate(0deg); }
.groups-list .group-row:nth-child(3n+3) .group-tag { background-color: var(--color-accent-dark); }

/* Ensure paragraph images fill the figure container */
.group-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery styles are in galeria.css */

/* =====================================================================
   WEBFORM inside contact-form-panel — dark theme overrides
   ===================================================================== */
.contact-form-panel .webform-submission-form .form-item label,
.contact-form-panel .webform-submission-form .form-item .form-required {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.contact-form-panel .webform-submission-form input[type="text"],
.contact-form-panel .webform-submission-form input[type="email"],
.contact-form-panel .webform-submission-form input[type="tel"],
.contact-form-panel .webform-submission-form input[type="number"],
.contact-form-panel .webform-submission-form textarea,
.contact-form-panel .webform-submission-form select {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  width: 100%;
}

.contact-form-panel .webform-submission-form input::placeholder,
.contact-form-panel .webform-submission-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form-panel .webform-submission-form input:focus,
.contact-form-panel .webform-submission-form textarea:focus,
.contact-form-panel .webform-submission-form select:focus {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 0.2rem rgba(31, 159, 214, 0.2);
  color: var(--color-white);
  outline: none;
}

.contact-form-panel .webform-submission-form .form-submit,
.contact-form-panel .webform-submission-form .webform-button--submit,
.contact-form-panel .webform-submission-form button[type="submit"],
.contact-form-panel .webform-submission-form input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form-panel .webform-submission-form .form-submit:hover,
.contact-form-panel .webform-submission-form .webform-button--submit:hover,
.contact-form-panel .webform-submission-form button[type="submit"]:hover,
.contact-form-panel .webform-submission-form input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.contact-form-panel .webform-submission-form .form-item {
  margin-bottom: 1rem;
}

/* =====================================================================
   SCROLL / LOAD REVEAL ANIMATIONS
   Elements get .reveal-init (hidden) via JS, then .reveal-in when they
   enter the viewport (the hero reveals immediately on load).
   ===================================================================== */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-in {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image { animation: none; }
  .reveal-init { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* =====================================================================
   DRUPAL OVERRIDES — hide unwanted elements from base theme
   ===================================================================== */
.site-navbar .block-search,
.site-navbar form.search-form,
.site-navbar .search-block-form,
#block-pumasadventure2026-search-form-narrow,
#block-pumasadventure2026-search-form-wide,
.navbar-collapse .block-search {
  display: none !important;
}

/* =====================================================================
   FOOTER (estilo tradedata — fondo negro con dots)
   ===================================================================== */
.td-site-footer {
  background: #0d0d0d;
  background-image: url(../images/dotted-map.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  position: relative;
  color: rgba(255, 255, 255, .78);
}
.td-site-footer ul,
.td-site-footer ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.td-footer-main {
  padding-top: 3.125rem;
}
@media screen and (min-width: 768px) {
  .td-footer-main { padding-top: 5rem; }
}
.td-footer-top {
  margin-bottom: 2.5rem;
}
@media screen and (min-width: 768px) {
  .td-footer-top { margin-bottom: 3.125rem; }
}
.td-footer-logo img {
  max-width: 16.5rem;
  height: auto;
}
.td-footer-middle {
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
@media screen and (min-width: 768px) {
  .td-footer-middle { padding-top: 3.125rem; padding-bottom: 2.1875rem; }
}
@media screen and (max-width: 767px) {
  .td-footer-middle { padding: 0; }
}
.td-footer-col {
  width: 100%;
  margin-bottom: 1.5rem;
}
@media screen and (min-width: 768px) {
  .td-footer-col { width: 25%; margin-bottom: 0; padding-right: 1rem; }
}
.td-footer-col h3 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: 0.03em;
}
.td-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.td-footer-col ul li {
  margin-bottom: 0.625rem;
}
.td-footer-col ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color .2s;
}
.td-footer-col ul li a:hover {
  color: #34d399;
}
.td-footer-services a i {
  width: 20px;
  text-align: center;
  margin-right: 6px;
  font-size: 0.8125rem;
  opacity: 0.7;
  transition: opacity .2s;
}
.td-footer-services a:hover i { opacity: 1; }
.td-footer-social-col {
  display: flex;
  align-items: flex-start;
}
.td-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}
.td-social a {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity .2s;
}
.td-social a:hover { opacity: 0.7; }
.td-social a i {
  color: #fff;
  font-size: 1.25rem;
}
@media screen and (min-width: 768px) {
  .td-social a i { font-size: 1.375rem; }
}
.td-social a.td-social-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.td-footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.td-footer-copyright p {
  font-size: 0.75rem;
  line-height: 2;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.td-footer-copyright p a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .2s;
}
.td-footer-copyright p a:hover { color: #fff; }

.toolbar-oriented {
  & .toolbar-bar {
    z-index: 1001;
  }
}

/* =====================================================================
   LOGIN PAGE
   ===================================================================== */
#pa-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a8fc2 0%, #137bab 35%, #0c5a80 70%, #2a241f 100%);
}

.pa-login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pa-login-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.pa-login-shape--1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -200px;
  right: -150px;
}

.pa-login-shape--2 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  bottom: -100px;
  left: -100px;
}

.pa-login-shape--3 {
  width: 250px;
  height: 250px;
  background: var(--color-accent-light-2);
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
}

.pa-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 16px);
  padding: 40px 36px;
  backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.pa-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.pa-login-logo {
  max-height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.pa-login-icon {
  font-size: 2.8rem;
  color: var(--color-accent-light-2, #dfaf88);
  display: block;
  margin-bottom: 10px;
}

.pa-login-site {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 4px;
}

.pa-login-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.pa-login-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

#pa-login form {
  margin-top: 14px;
}

#pa-login label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 4px;
  display: block;
}

#pa-login .description,
#pa-login .form-item .description {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 3px;
}

#pa-login .form-item {
  margin-bottom: 16px;
}

#pa-login input[type="text"],
#pa-login input[type="password"],
#pa-login input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#pa-login input[type="text"]::placeholder,
#pa-login input[type="password"]::placeholder,
#pa-login input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#pa-login input[type="text"]:focus,
#pa-login input[type="password"]:focus,
#pa-login input[type="email"]:focus {
  border-color: var(--color-primary, #1f9fd6);
  box-shadow: 0 0 0 3px rgba(31, 159, 214, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

#pa-login input[type="submit"],
#pa-login button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--color-primary, #1f9fd6);
  border: none;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

#pa-login input[type="submit"]:hover,
#pa-login button[type="submit"]:hover {
  background: var(--color-primary-dark, #137bab);
  transform: translateY(-1px);
}

/* Divider */
.pa-login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.pa-login-divider::before,
.pa-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.pa-login-divider span {
  padding: 0 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* Social login */
.pa-login-social {
  text-align: center;
}

.pa-btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: #db4437;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.pa-btn-google:hover {
  background: #c33d2e;
  color: #fff;
  transform: translateY(-1px);
}

/* Links */
#pa-login a {
  color: var(--color-accent-light-2, #dfaf88);
  text-decoration: none;
}

#pa-login a:hover {
  color: #f0c89e;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
  .pa-login-card {
    padding: 28px 22px;
  }
  .pa-login-site {
    font-size: 1.35rem;
  }
}
.page-wrapper *:focus, .ui-dialog *:focus {
  box-shadow: none;
}
