/* Basic reset and variables */
:root {
  --bg: #000000;
  --muted: #e6e6e6;
  --accent: #ff6a6a;
  --gold: #ffb347;
  --red-1: rgb(229, 10, 32);
  --red-2: rgb(147, 6, 6);
  --green-contrast-1: #008080;
  --green-contrast-2: #004d40;
  --purple-contrast-1:  rgb(135, 57, 135);
  --purple-contrast-2: rgb(72, 31, 72);
  --button-gradient-light: rgb(228, 60, 77);
  --button-gradient-dark: rgb(95, 4, 4);
  --maroon-1: #3b0b10;
  --maroon-2: #66121a;
  --box-shadow-color: rgba(59, 11, 16, 0.2);
  --gentle-background-color: rgba(255, 255, 255, 0.08);
  --gentle-border-color: rgba(255, 255, 255, 0.06);
  --card: #1e1e1e;
  --accompaniment-card: rgb(19, 7, 26) ;
  --gradient-card: linear-gradient(180deg, rgb(20, 24, 18), rgb(18, 18, 18));
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 6px 6px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --container: 1600px;
  --elements_max_width: 80%;
  /* --font-family-hero-title: "Permanent Marker", cursive; */
  --font-family-hero-title: "Momo Trust Display", sans-serif;
  --font-family-titles: "Momo Trust Display", sans-serif;
  --font-family-default: "Merriweather", system-ui, Arial, sans-serif;
  --font-size-hero-title: 3.8rem;
  --font-size-hero-title-camino: 4rem;
  /* --font-size-hero-title-al: 4.6rem; */
  --font-size-hero-title-1: 4.8rem;
  --font-size-title: 2.4rem;
  --font-size-subtitle: 1.2rem;
  --font-size-description: 1.2rem;
  --font-size-nav-list: 1.4rem;
  --font-size-terms-conditions: 0.8rem;
  --font-size-accompaniment: 1.8rem;
  --fade-header: 0.1s;
  --fade-hero-title: 0.4s;
  --fade-hero-subtitle: 0.8s;
  --fade-hero-cta: 1.8s;
  /* --fade-hero-subtitle: 0.6s;
  --fade-hero-cta: 0.8s; */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family-default);
  background: var(--bg);
  color: #fff;
  line-height: 1.5;
}

/* Delete default scroller */
/* (Required for modern Edge & Firefox) */
html, body {
    scrollbar-width: none; 
    -ms-overflow-style: none;  /* IE and Old Edge */
}

/* (Required for Chrome, Safari, Older Edge) */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}


h2 {
  margin-bottom: 12px;
  font-size: var(--font-size-title);
  font-family: var(--font-family-titles) !important;
  color: #fff;
  text-shadow: 0 4px 5px rgba(0, 0, 0, 0.8);
  text-align: center;
}

p {
  margin-bottom: 12px;
  font-size: var(--font-size-description);
}

section {
  opacity: 0.001;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Utils */

/* Buttons */
.button {
  display: inline-block;
  position: relative;
  padding: 12px 28px;
  font-family: var(--font-family-default);
  font-size: var(--font-size-description);
  font-weight: 700;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 0 var(--box-shadow-color);
  outline: none;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);

  /* text-transform: uppercase; */
  letter-spacing: 1px;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 20px;
}

.button:hover::after {
  opacity: 1;
  border-radius: 20px;
}

.button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--maroon-1);
}

/* Cookies Buttons */
.cookie-button {
  display: inline-block;
  position: relative;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: var(--font-family-default);
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 0 var(--box-shadow-color);
  outline: none;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);

  /* text-transform: uppercase; */
  letter-spacing: 1px;
  overflow: hidden;
}

.cookie-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 20px;
}

.cookie-button:hover::after {
  opacity: 1;
  border-radius: 20px;
}

.cookie-button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--maroon-1);
}

/* Arrow button */

.arrow-button {
  display: inline-block;
  position: relative;
  font-family: var(--font-family-default);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 rgba(38, 38, 38, 0.2);
  outline: none;
  letter-spacing: 1px;
  overflow: hidden;
  background: transparent;
  border: 2px solid var(--gentle-border-color);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: var(--font-size-description);
}

.arrow-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 999px;
}

.arrow-button:hover::after {
  opacity: 1;
  border-radius: 999px;
}

.arrow-button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 rgba(38, 38, 38, 0.2);
}

/* Media Button */

.media-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--gentle-background-color);
  border-radius: 50%;
  transition: all 0.3s ease;

  position: relative;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  border: 2px solid var(--gentle-border-color);
}

.media-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
}

.media-button:hover::after {
  opacity: 1;
  border-radius: 50%;
}

.media-button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 rgba(38, 38, 38, 0.2);
  background: var(--accent);
}

/* List */
/* Confirmation lists */
.tick-list ul {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.tick-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.tick-list li::before {
  content: '✓';
  color: var(--gold);
  position: absolute;
  left: 0;
}

.element-list ul {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.element-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.element-list li::before {
  content: '🔹';
  position: absolute;
  left: 0;
}

/* Text */
.highlight-text {
  font-family: "Momo Trust Display", cursive;
  font-size: 2.2rem;
  color: var(--gold);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 135, 80, 0.06);
  line-height: 1;
}

/* --- Header --- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
}
.navbar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}
.navbar {
  height: 44px;
  border-radius: 8px;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--font-size-nav-list);
}
/* .nav-list a:hover {
  color: var(--accent);
} */

/* Hero */
.hero {
  position: relative;
  min-height: 730px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 40px;
}
.hero-video {
  display: none;
}
.hero-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.5);
  transform-origin: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    /* top - light */ rgba(0, 0, 0, 0.2) 50%,
    /* middle - medium */ rgba(0, 0, 0, 1) 100% /* bottom - dark */
  );
}
.hero-inner {
  position: absolute;
  bottom: 0px;
  z-index: 6;
  text-align: center;
  padding: 48px;
  border-radius: 8px;
}

.hero-title {
  font-size: var(--font-size-hero-title);
  position: relative;
  color: #fff;
  margin-bottom: 70px;
  text-align: center;
  /* text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8); */
}
.hero-title-camino {
  /* font-family: "Anton", sans-serif; */
  font-family: "Modern Antiqua", serif;
  font-size: var(--font-size-hero-title-camino);
  letter-spacing: 5px;
  /* color: #4dc2f5; */
  color: #fff;
  /* font-weight: bold;
  text-shadow: -2px -2px 0 #202020, 2px -2px 0 #202020, -2px 2px 0 #202020,
    2px 2px 0 #202020, 3px 3px 0 #5e2a2a; */
  /* letter-spacing: 0.6px; */
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.8);
}

/* .hero-title-al { */
/* font-family: "Leckerli One", cursive; */
/* font-family: "Anton", sans-serif; */
/* font-family: "Modern Antiqua", serif; */
/* text-shadow: -2px -2px 0 #202020, 2px -2px 0 #202020, -2px 2px 0 #202020,
    2px 2px 0 #202020, 3px 3px 0 #5e2a2a; */
/* letter-spacing: 0.6px; */
/* font-weight: bold; */
/* font-size: var(--font-size-hero-title-al); */
/* font-weight: bold; */
/* text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.8); */
/* } */

.hero-title-1 {
  position: absolute;
  /* font-family: "Bowlby One SC", sans-serif; */
  font-family: "Leckerli One", cursive;
  font-size: var(--font-size-hero-title-1);
  color: var(--red-1);
  z-index: 10;
  /* Adjust absolute positon */
  top: 130%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Color and shadows */
  background-image: linear-gradient(170deg, var(--red-1), var(--red-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.8));
}

.hero-sub {
  font-size: var(--font-size-subtitle);
  max-width: 800px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
  background: linear-gradient(
    180deg,
    var(--button-gradient-light),
    var(--button-gradient-dark)
  );
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --dark-color: rgba(59, 2, 2, 0.2);
  --light-color: hsla(0, 0%, 0%, 0.4);
  animation: neon-flicker 4s ease-in-out infinite;
}
.hero-cta:hover {
  animation: none;
}

/* FadeIn animation */
/* hide */
.site-header,
.hero-title,
.hero-sub,
.hero-cta-container {
  opacity: 0.001;
  transform: translateY(6px);
  transition: opacity 600ms ease, transform 600ms ease;
}

/* Add a delayed class after 10s via CSS animation trigger */
/* Add a smooth fade-in animation */
.site-header {
  animation: fadeIn 1s ease var(--fade-header) forwards;
}
.hero-title {
  animation: fadeIn 3s ease var(--fade-hero-title) forwards;
}
.hero-sub {
  animation: fadeIn 2s ease var(--fade-hero-subtitle) forwards;
}
.hero-cta-container {
  animation: fadeIn 3s ease var(--fade-hero-cta) forwards;
}
/* -------------- */

/* Carousel / Mi camino */
.mi-path {
  padding: 60px 0;
  background-color: #111;
}
.mi-path h2 {
  text-align: center;
  margin-bottom: 28px;
}

/* 1. Base Styles (Apply to both containers) */
#my-path-carousel,
#my-path-intro {
  /* Transition for smooth fade and move */
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out,
    height 0.7s ease-in-out, padding 0.7s ease-in-out; /* Add transition for height to collapse the box smoothly */

  overflow: hidden; /* Crucial for hiding content during height collapse */
}

.my-path-fade-out {
  opacity: 0 !important;
  transform: translateY(-50px) !important;
  /* Temporarily keep height during the fade, then JavaScript removes it */
  pointer-events: none; /* Prevents accidental clicks during fade-out */
}
/* 3. The 'hidden' state for the Initial Card (Managed by JS) */
.fully-collapsed {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  /* This class ensures the card collapses and takes up no space */
}
/* 4. The 'visible' state for the Carousel */
#my-path-carousel {
  /* Start with no space */
  opacity: 0;
  height: 0;
  padding: 0;
}
.my-path-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  /* Restore its full height and padding */
  height: auto !important;
  padding: 20px !important;
}

/* Path intro card */
/* --- BASE GRID STYLING --- */
.my-path-intro {
  display: grid;

  /* Define areas: Top row is Image | Text; Bottom row is Button spanning both */
  grid-template-areas:
    "image text"
    "button button";
  /* Use minmax for column definitions for responsive width control */
  grid-template-columns: minmax(150px, 1fr) minmax(300px, 2fr);

  gap: 20px; /* Space between grid items */
  width: 100%;
  max-width: 900px; /* Limit the max width of the grid */

  align-items: center; /* Vertically align items in the grid */
  background-color: var(--card);
  border: 2px solid var(--gentle-border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 40px auto; /* Center the grid on the page */
  box-shadow: var(--card-shadow);
}

/* --- IMAGE STYLING --- */
.my-path-intro-img {
  grid-area: image;
  /* Ensures the item fills the cell and centers the image inside */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Optional: Remove the explicit padding from here to let the container padding manage spacing */
}

.my-path-intro-img img {
  width: 100%; /* Use width: 100% instead of max-width for better consistency */
  height: auto;
  max-height: 450px;
  display: block;
  border-radius: 10px;
  /* Add object-fit for better image cropping/scaling control */
  object-fit: cover;
  border: 2px solid var(--gentle-border-color);
  --dark-color: rgba(132, 5, 43, 0.342);
  --light-color: hsla(0, 0%, 0%, 0.4);
  animation: neon-flicker 8s ease-in-out infinite;
}

/* --- CONTENT STYLING --- */
.my-path-intro-content {
  grid-area: text;
  display: flex; /* Use flexbox for content to easily place button at bottom */
  flex-direction: column;
  justify-content: center; /* Pushes button to the bottom if content is short */
  align-items: flex-start;
  height: 100%; /* Ensure flexbox takes full height of its grid cell */
}

.my-path-intro-content p {
  color: #eae8e8;
  /* Allows paragraph to take up available space, pushing button down */
  /* flex-grow: 1; */
  /* Space between text and button */
  /* margin-bottom: 15px; */
}

.my-path-intro-cta-area {
  grid-area: button;
  text-align: center;
  padding-top: 0;
}

.my-path-intro-cta {
  padding: 10px 20px;
  align-self: flex-start; /* Align button to the left within the flex container */
  background: linear-gradient(
    180deg,
    var(--button-gradient-light),
    var(--button-gradient-dark)
  );
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --dark-color: rgba(59, 2, 2, 0.2);
  --light-color: hsla(0, 0%, 0%, 0.4);
  animation: neon-flicker 4s ease-in-out infinite;
}

.my-path-intro-cta:hover {
  animation: none;
}

/* Carousel */
.carousel {
  max-width: var(--elements_max_width);
  margin: 0 auto;
}
.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.slide {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: var(--card);
  border: 2px solid var(--gentle-border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.slide blockquote {
  flex-grow: 1;
  flex-shrink: 1;
  font-size: var(--font-size-description);
  align-content: center;
  font-style: italic;
  color: #ddd;
  padding: 12px 18px;
  border-left: 4px solid var(--gold);
  overflow-y: auto;
  height: 100%;
}
.slide img {
  max-width: 400px;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid rgba(43, 208, 138, 0.12);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.carousel-controls .prev,
.carousel-controls .next {
  background: transparent;
  border: 2px solid var(--gentle-border-color);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: var(--font-size-description);
}
.dots {
  display: flex;
  gap: 10px;
}
.dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.35;
  border: none;
}
.dots button.active {
  opacity: 1;
  background: var(--gold);
  transform: scale(1.15);
}

/* Project / About 1% */
.section-project {
  padding: 20px 0;
  background: linear-gradient(180deg, var(--maroon-1), var(--maroon-2));

  /* background: linear-gradient(
    180deg,
    rgba(59, 11, 16, 0.02),
    rgba(59, 11, 16, 0.06)
  ); */
  text-align: center;
}
.project-inner {
  max-width: var(--elements_max_width);
  margin: 0 auto;
  padding: 0 18px;
}
.project-sub {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  font-weight: 700;
}
.project-word {
  font-family: "Permanent Marker", cursive;
  font-size: 5.2rem;
  color: var(--gold);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 135, 80, 0.06);
  margin: 8px 0 22px;
  line-height: 1;
}

.project-word-wrap {
  position: relative;
  display: inline-block;
  height: 110px;
}
.project-word-item {
  font-size: var(--font-size-hero-title);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  opacity: 0;
}
.project-word-item.is-visible {
  animation: wordIn 560ms cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.project-word-item.is-hidden {
  animation: wordOut 420ms cubic-bezier(0.22, 0.8, 0.15, 1) both;
}

/* Pause animation on hover/focus for accessibility */
.project-word-wrap:hover .project-word-item,
.project-word-wrap:focus-within .project-word-item {
  animation-play-state: paused;
}

.project-desc {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--font-size-description);
}
.project-desc p {
  margin: 10px 0;
}

.accompaniment-word-wrap {
  position: relative;
  display: block;
  height: 50px; /* Adjust as needed */
  text-align: center;
  margin-bottom: 18px;
  margin-top: 18px;
}
.accompaniment-word-item {
  font-size: var(--font-size-accompaniment); /* or other appropriate size */
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  opacity: 0;
}
.accompaniment-word-item.is-visible {
  animation: wordIn 560ms cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.accompaniment-word-item.is-hidden {
  animation: wordOut 420ms cubic-bezier(0.22, 0.8, 0.15, 1) both;
}

/* Pause animation on hover/focus for accessibility */
.accompaniment-word-wrap:hover .accompaniment-word-item,
.accompaniment-word-wrap:focus-within .accompaniment-word-item {
  animation-play-state: paused;
}

/* Manual / Ebook */
.section-manual {
  background: #1a0000;
  padding: 60px 0;
}

.manual-inner {
  padding: 20px;
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--elements_max_width);
  align-content: center;
  border: 2px solid;
  border-color: var(--gentle-border-color);
  box-shadow: var(--card);
  --dark-color: rgba(255, 106, 106, 0.2);
  --light-color: rgba(162, 59, 59, 0.4);
  animation: neon-flicker 8s ease-in-out infinite;
  border-radius: 12px;
}
.manual-copy {
  flex: 1;
  color: #f2ecec;
}
.manual-copy h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.manual-copy p {
  font-size: var(--font-size-description);
  margin-bottom: 18px;
  line-height: 1.6;
}
.manual-copy li {
  font-size: var(--font-family-default);
  list-style-type: none;
}
.ebook-card {
  width: 300px;
  /* background: linear-gradient(180deg, var(--maroon-1), var(--maroon-2)); */
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--gentle-border-color);
  box-shadow: var(--card-shadow);
}

.ebook-card img {
  width: 100%;
  margin: 6px auto;
  border-radius: 8px;
  border: 2px solid var(--gentle-border-color);
  box-shadow: var(--card-shadow);
  /* --dark-color: rgba(59, 2, 2, 0.2);
  --light-color: hsla(35, 100%, 64%, 0.4);
  animation: neon-flicker 4s ease-in-out infinite; */
}

.manual-cta {
  background: linear-gradient(
    180deg,
    var(--green-contrast-1),
    var(--green-contrast-2)
  );
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --dark-color: hsla(170, 96%, 27%, 0.269);
  --light-color: hsla(0, 0%, 0%, 0.4);
  animation: neon-flicker 8s ease-in-out infinite;
}
.manual-cta:hover {
  animation: none;
}

/* Pop-up form */
.popup {
  align-items: center;
  justify-content: center;
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.popup-content {
  background-color: #1e1e1e;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--gentle-border-color);
  border-radius: 12px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.popup-title{
  margin-right: 20px;
  margin-left: 20px;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

#protected-file-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

#email-input {
  border-radius: 8px;
  border: 1px solid var(--gentle-border-color);
  background-color: #333;
  color: #fff;
  font-size: 16px;
  height: auto;         /* Reset fixed height */
  line-height: normal;  /* Reset line height */
  padding: 1rem;        /* Use padding to define the size */
  display: block;       /* Ensure it's not flex/grid directly */
}

#protected-file-form .button {
    background: linear-gradient(180deg, var(--green-contrast-1), var(--green-contrast-2));
}

.section-title {
  position: relative;
  display: block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80%;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 3px;
}

/* Documental */
.section-documental {
  /* background: linear-gradient(180deg, var(--maroon-2), var(--maroon-1)); */
  /* background: var(--gradient-card); */
  background-color: #111;
  padding: 60px 0;
}
.documental-inner {
  align-items: center;
  text-align: center;
  padding: 20px;
}
.video-wrap {
  display: flex;
  flex-direction: column;
  max-width: var(--elements_max_width);
  margin: 0 auto;
  align-items: center;
}
.instagram-media {
  background: #fff;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);
  margin: 1px;
  max-width: 540px;
  min-width: 326px;
  padding: 0;
  width: 80%;
  max-height: 780px;
  width: -webkit-calc(100% - 2px);
  width: calc(100% - 2px);
}

/* Comunidad */
.section-comunidad {
  padding: 20px 0;
  background: linear-gradient(180deg, rgb(69, 8, 52), var(--maroon-1));
}
.comunidad-inner {
  text-align: center;
}
.comunidad-inner .profile {
  width: 180px;
  height: 240px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 0% 60%;
  margin: 18px auto;
  background: var(--gentle-background-color);
  border: 4px solid rgba(248, 114, 5, 0.06);
}
.comunidad-text {
  align-items: center;
  text-align: center;
  padding-top: 40px;
}
.socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 10px;
}

.socials img {
  width: 40px;
  height: 40px;
}

/* Footer */
.site-footer {
  padding: 36px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), #000);
  text-align: center;
}

.grecaptcha-badge {
    visibility: hidden;
}
.notice {
  font-size: var(--font-size-terms-conditions);
}
.notice a{
  color: rgb(116, 116, 245);
}

/* Acompañamiento */
.section-accompaniment {
  padding: 60px 0;
  /* background: var(--gradient-card); */
  background: linear-gradient(180deg, var(--maroon-1), rgb(69, 8, 52));
}

.accompaniment-inner {
  max-width: var(--elements_max_width);
  margin: 0 auto;
  padding: 36px;
  border: 2px solid var(--gentle-border-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.accompaniment-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.accompaniment-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}

.accompaniment-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.accompaniment-card {
  background: var(--accompaniment-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--gentle-border-color);
  box-shadow: var(--card-shadow);
  height: 100%;
}

.accompaniment-card h3 {
  color: var(--gold);
  margin-bottom: 18px;
}

.accompaniment-profile {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 11 / 16;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto;
  /* border: 4px solid var(--gentle-border-color); */
  border: 4px solid var(--gentle-border-color);
  --dark-color: rgba(132, 5, 43, 0.342);
  --light-color: var(--gentle-border-color);
  animation: neon-flicker 8s ease-in-out infinite;
}

.accompaniment-text p {
  margin-bottom: 18px;
  text-align: center;
}

.accompaniment-list h3 {
  color: var(--gold);
  margin-bottom: 18px;
}

.accompaniment-cta-container {
  text-align: center;
  margin-top: 30px;
}

.accompaniment-cta {
  background: linear-gradient(180deg, var(--purple-contrast-1), var(--purple-contrast-2));
  --dark-color: hsla(170, 96%, 27%, 0.269);
  --light-color: hsla(0, 0%, 0%, 0.4);
  animation: neon-flicker 8s ease-in-out infinite;
}

.accompaniment-cta:hover {
  animation: none;
}

/* Responsive */

@media (max-width: 1400px) {
  :root {
    --font-size-hero-title-camino: 5.6rem;
    /* --font-size-hero-title-al: 6.2rem; */
    --font-size-hero-title-1: 6.4rem;
  }
  .hero-inner {
    bottom: 0px;
  }
  .hero-title {
    margin-bottom: 90px;
  }
}

@media (max-width: 1200px) {
  :root {
    --font-size-hero-title-camino: 5.6rem;
    /* --font-size-hero-title-al: 6.2rem; */
    --font-size-hero-title-1: 6.4rem;
  }
  .hero-inner {
    bottom: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --font-size-hero-title: 2.6rem;
    --font-size-hero-title-camino: 4.2rem;
    /* --font-size-hero-title-al: 4.8rem; */
    --font-size-hero-title-1: 5rem;
    --font-size-title: 2rem;
    --font-size-subtitle: 1.2rem;
    --font-size-description: 1.2rem;
    --font-size-accompaniment: 1.4rem;
  }
  .hero-inner {
    bottom: 30px;
  }
  .manual-inner {
    flex-direction: column;
    align-items: center;
  }
  .ebook-card {
    max-width: 100%;
  }

  .accompaniment-intro {
    grid-template-columns: 1fr;
  }

  .accompaniment-details {
    grid-template-columns: 1fr;
  }

  .accompaniment-profile {
    max-width: 300px;
  }

  .carousel-track {
    height: 510px;
  }
  .slide {
    flex-direction: column;
    min-height: 450px;
  }
  .slide blockquote {
    border-top: 4px solid var(--gold);
    border-left: 0px;
    height: auto;
    max-width: 100%;
    min-height: 120px;
  }
}

@media (max-width: 600px) {
  :root {
    --elements_max_width: 95%;
    --font-size-hero-title: 2.4rem;
    --font-size-hero-title-camino: 2.4rem;
    /* --font-size-hero-title-al: 3.6rem; */
    --font-size-hero-title-1: 4rem;
    --font-size-title: 1.6rem;
    --font-size-subtitle: 1rem;
    --font-size-description: 1rem;
    --font-size-nav-list: 0.8rem;
    --fade-header: 1s;
    --fade-hero-subtitle: 4s;
    --fade-hero-cta: 4.4s;
  }

  /* ----- Hero ----- */
  .hero {
    height: 100vh; /* Full screen */
    padding-top: 0px;
  }
  .hero-video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* filter: brightness(0.5); */
    transform-origin: center top;
  }
  .hero-background img {
    display: none;
  }
  .hero-inner {
    position: absolute;
    z-index: 6;
    text-align: center;
    padding: 35px;
    border-radius: 8px;
    bottom: 0px;
  }
  .hero-title {
    font-size: var(--font-size-hero-title);
    margin-bottom: 60px;
  }
  .hero-sub {
    font-size: var(--font-size-subtitle);
    max-width: 800px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.95);
  }

  /* Mi camino */
  .my-path-intro {
    /* Redefine grid areas to stack all items vertically */
    grid-template-areas:
      "image"
      "text"
      "button";
    /* Single column, taking full width */
    grid-template-columns: 1fr;
  }
  /* .my-path-intro-content {
    text-align: center;
  } */
  .my-path-intro-img {
    justify-content: center;
  }
  .my-path-intro-img img {
    max-height: 650px;
  }

  .carousel-track {
    height: 580px;
  }

  .slide {
    flex-direction: column;
    min-height: 400px;
  }
  .slide blockquote {
    max-width: 100%;
    min-height: 100px;
  }
  .ebook-card {
    max-width: 100%;
  }
  .accompaniment-profile {
    max-width: 200px;
  }
  .instagram-media {
    max-height: 585px;
  }
}

@media (max-width: 450px) {
  .my-path-intro-img img {
    max-height: 500px;
  }
}

@media (max-width: 400px) {
  .my-path-intro-img img {
    max-height: 450px;
  }
  .instagram-media {
    max-height: 530px;
  }
}

/* --font-size-hero-title: 2.4rem;
--font-size-title: 1.6rem;
--font-size-subtitle: 1.2rem;
--font-size-description: 1rem; */
@media (max-width: 350px) {
  :root {
    --elements_max_width: 95%;
    --font-size-hero-title: 2.2rem;
    --font-size-hero-title-camino: 2rem;
    /* --font-size-hero-title-al: 3.6rem; */
    --font-size-hero-title-1: 3.2rem;
    --font-size-title: 1.4rem;
    --font-size-subtitle: 1rem;
    --font-size-description: 1rem;
    --font-size-nav-list: 0.7rem;
  }
  /* Hero */
  .hero {
    height: 100vh; /* Full screen */
    padding-top: 0px;
  }
  .hero-video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* filter: brightness(0.5); */
    transform-origin: center top;
  }
  .hero-background img {
    display: none;
  }
  .hero-inner {
    padding: 20px;
    bottom: 0px;
  }
  .hero {
    min-height: 360px;
    padding-top: 20px;
  }

  /* Mi camino */
  .my-path-intro {
    /* Redefine grid areas to stack all items vertically */
    grid-template-areas:
      "image"
      "text"
      "button";
    /* Single column, taking full width */
    grid-template-columns: 1fr;
  }
  /* .my-path-intro-content {
    text-align: center;
  } */
  .my-path-intro-img {
    justify-content: center;
  }
  .my-path-intro-img img {
    max-height: 350px;
  }

  .carousel-track {
    height: 500px;
  }
  .slide {
    flex-direction: column;
    min-height: 350px;
  }
  .slide blockquote {
    max-width: 100%;
    min-height: 100px;
  }
  .ebook-card {
    max-width: 100%;
  }
  .instagram-media {
    max-height: 515px;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: var(--container);
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.cookie-consent-content {
  max-width: var(--elements_max_width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-consent-content p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-consent-buttons {
  display: flex;
  /* justify-content: center;
  align-content: center; */
  gap: 10px;
}

.cookie-list {
  list-style: none;
  align-items: center;
  font-size: 0.9rem;
}

.button-secondary {
  background: transparent;
  color: #555;
  border: 1px solid #acabab;
}
.button-secondary:hover { background: #f0f0f0; }

.button-primary {
  background: #111;
  color: white;
  border: 1px solid #ddd;
}
.button-primary:hover { background: #333; transform: scale(1.02); }