:root {
  --primary-color: #d4a373;
  --accent-color: #7b1e3b;
  --secondary-color: #a0e9ef;
  --background-color: #faf9f6;
  --text-color: #2e2e2e;

  --heading-font: "Montserrat", sans-serif;
  --body-font: "Roboto", sans-serif;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
.special-padding{
  padding-top: 5rem;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-top: 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}
a:hover {
  color: var(--primary-color);
}

button {
  font-family: var(--body-font);
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5;
}
#overlay.visible {
  display: block;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1rem;

  background-color: rgb(238, 236, 236);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.25);
  /* backdrop-filter: blur(12px); */
}

#menuButton {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

#mainNav {
  position: fixed;
  right: -100%;
  top: 0;
  width: 80%;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  z-index: 10;
  transition: right 0.3s ease;
}
#mainNav.open {
  right: 0;
}

#mainNav a {
  margin: 1rem 0;
  text-decoration: none;
  font-weight: bold;
  color: var(--primary-color);
}
#mainNav a:hover {
  color: var(--accent-color);
}
#mainNav a.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
}

.profile {
  border: 1px solid var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 20px;
  justify-content: space-between;
}
.profile img {
  border-radius: 50%;
}

#closeButton {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 3rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
}
.hero h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.hero p {
  color: #eaeaea;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
}

.hero-btn {
  flex: 1 1 120px;
  text-align: center;
  padding: 0.75rem 0;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  transition: background 0.25s;
}
.hero-btn:not(.secondary) {
  background: var(--secondary-color);
  color: #004458;
}
.hero-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--secondary-color);
}
.hero-btn.secondary:hover,
.hero-btn:not(.secondary):hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
header .profile,
header .profile span,
#menuButton {
  color: #fff;
  font-weight: 700;
}

header .profile {
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero {
  overflow: hidden;
}

.hero::before,
.hero::after,
.hero .slide2,
.hero .slide3 {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: ken 32s ease-in-out infinite;
  opacity: 0;
}

.hero::before {
  background-image: url("../images/hero/rally-nihuil.webp");
  animation-delay: 0s;
}
.hero::after {
  background-image: url("../images/hero/rafting.webp");
  animation-delay: 8s;
}
.hero .slide2 {
  background-image: url("../images/hero/las-leñas.webp");
  animation-delay: 16s;
}
.hero .slide3 {
  background-image: url("../images/hero/rapel.webp");
  animation-delay: 24s;
}

@keyframes ken {
  0% {
    opacity: 0;
    transform: scale(1) translate(0, 0);
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
    transform: scale(1.12) translate(-2%, -2%);
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero::after,
.hero .slide2,
.hero .slide3 {
  z-index: -2;
}
.hero::before {
  z-index: -3;
}
.hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

#mainNav {
  background: rgba(0, 0, 0, 0.7);
}
#mainNav a {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
#mainNav a:hover,
#mainNav a.active {
  color: var(--background-color);
}

header .profile,
header .profile span,
#menuButton {
  color: #fff;
}

@keyframes ken {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 1;
    transform: scale(1.12);
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

#intro {
  margin: 0 auto;
  text-align: center;
}
#intro h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--accent-color);
  margin: 0 0 1.5rem;
}
#intro p {
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 0 0 1.6rem;
}

.intro-line {
  width: 60px;
  height: 4px;
  margin: 2.5rem auto;
  background: var(--primary-color);
  border-radius: 2px;
}

.split {
  display: grid;
  gap: 4rem;
  margin: 0 auto;
  align-items: center;
}
.split-text h2 {
  color: var(--accent-color);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
}
.split-text p {
  line-height: 1.8;
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}

.cta-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 28px;
  font-weight: 700;
  transition: background 0.25s;
}
.cta-btn:hover {
  background: var(--accent-color);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

#advice,
#safety {
  margin: 0 auto;
  text-align: center;
}

#advice h2,
#safety h2 {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.advice-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.advice-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 260px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s;
}

.advice-grid article:hover {
  transform: translateY(-6px);
}

.advice-grid svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}

.advice-grid h3 {
  margin: 0.3rem 0 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
  text-align: center;
}

.advice-grid p {
  flex: 1 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 0 1.4rem;
  text-align: center;
}

.advice-grid a {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.55rem 1.6rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.25s;
}

.advice-grid a:hover {
  background: var(--accent-color);
}
/* FAQ */
#faq {
  margin: 0rem auto;
  padding: 0 1rem;
}

#faq h2 {
  text-align: center;
  color: var(--accent-color);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
  justify-content: center;
}

.faq-list details {
  border-left: 4px solid var(--secondary-color);
  background: #fff;
  border-radius: 12px;
  padding: 1.3rem 1.6rem 1.3rem 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

.faq-list details:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.faq-list summary {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.faq-list p {
  margin: 1rem 0 0;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text-color);
}

.faq-list a {
  color: var(--accent-color);
  text-decoration: underline;
}

.faq-list a:hover {
  color: var(--primary-color);
}

.split {
  margin-block: 4rem;
}

.split-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#cta-final {
  background: #f3f7f6;
  padding: 4rem 1rem;
  margin: 4rem 0;
}

.cta-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

#cta-final h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent-color);
  margin: 0 0 1rem;
}

#cta-final p {
  font-size: 1.15rem;
  margin: 0 0 2rem;
  line-height: 1.8;
  color: var(--text-color);
}

.cta-btn-big {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 1rem 2.6rem;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.25s;
}

.cta-btn-big:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

.site-footer {
  background: #fff;
  border-top: 4px solid var(--primary-color);
  border-radius: 12px 12px 0 0;
  padding: 2rem 0 1.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--accent-color);
  flex-shrink: 0;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 700;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  list-style: none;
}

.footer-nav a {
  color: var(--primary-color);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-map {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-map:hover {
  color: var(--accent-color);
}

.footer-map svg {
  flex: none;
  color: inherit;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-color);
}

@media (max-width: 1024px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-nav {
    order: 2;
    justify-content: center;
  }

  .footer-map {
    order: 3;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-brand {
    order: 1;
  }

  .footer-nav {
    order: 2;
    margin-left: 0;
    justify-content: center;
    gap: 1rem;
  }

  .footer-map {
    order: 3;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .site-footer {
    padding: 1.5rem 0 1rem;
  }
}

#events-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 3rem auto;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.6rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.event-card h3 {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 0.7rem;
}

.event-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.paginator {
  margin: 2rem auto 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.paginator button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.25s;
}

.paginator button:hover {
  background: var(--accent-color);
}

#routes-section {
  margin-block: 4rem;
  text-align: center;
}

#routes-section .section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.routes-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.route-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-card:hover {
  transform: translateY(-6px);
}

.route-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.route-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.4rem 0;
  color: var(--text-color);
}

.route-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-top: 1rem;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-controls button {
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 24px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s;
}

.pagination-controls button:hover {
  background: var(--accent-color);
}

.contact-section {
  padding: 2rem 1rem;
  background-color: var(--background-color);
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-line {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1rem 0;
  border-radius: 2px;
}

.contact-section h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-align: center;
}

.contact-section p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

#contact-form label {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.4rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: var(--body-font);
  font-size: 1rem;
  box-sizing: border-box; 
}

#contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  flex-direction: row !important; 
}

.form-check input[type="checkbox"] {
  width: auto !important;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-check label {
  margin: 0;
  flex: 1;
  font-weight: 400;
}

#contact-form button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

#contact-form button:hover {
  background-color: var(--accent-color);
}

  header{
    background: rgba(0,0,0,.5);
  }



.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent-color);
  color: white;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
  margin: 0;
  font-family: var(--body-font);
}

.cookie-banner button {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--body-font);
  transition: background-color 0.3s;
  margin-right: 4rem;
}

.cookie-banner button:hover {
  background-color: #c18d5f;
}


.gracias-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 70vh;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}

.gracias-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--main-color, #333); 
}

.gracias-section p {
  font-size: 1.1rem;
  max-width: 600px;
  color: #555;
}

.gracias-section .cta-btn {
  margin-top: 1.5rem;
}


/* footer .copyright a {
  color: inherit;
  text-decoration: underline;
}
footer .copyright a:hover {
  color: #A0E9EF;
} */
footer .copyright {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  text-align: center;
}

footer .copyright a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

footer .copyright a:hover {
  color: #A0E9EF;
}
