/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#home,
#actividades,
#nosotros,
#contacto {
  scroll-margin-top: 100px;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1c1c1c;
  line-height: 1.6;
  background: #ffffff;
}

/* =========================
   VARIABLES
========================= */

:root {
  --primary: #0b3c5d;
  --accent: #1aa6b7;
  --light: #f5f7fa;
  --text: #1c1c1c;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;

  background: #fff;
  border-bottom: 1px solid #eee;

  z-index: 100;

  position: sticky;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;

  position: relative;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;

  white-space: nowrap;
}

.logo span {
  white-space: nowrap;
}

.logo img {
  height: 75px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

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

.nav.active {
  display: flex;
}

.menu-toggle {
  display: none;

  background: none;
  border: none;

  font-size: 32px;
  cursor: pointer;

  color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 90vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background-image: url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.35)
  );
}

/* contenido */
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;

  transform: translateY(-20vh);
}

/* H1 */
.hero__title {
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.1;
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

/* SUBTITULO */
.hero__subtitle {
  font-size: 20px;
  margin-bottom: 10px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* MICRO TEXTO */
.hero__text {
  font-size: 15px;
  margin-bottom: 22px;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* CTA */
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background: #138e9d;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0,0,0,0.25);
  border: 1px solid #fff;
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 70px 0;
}

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

.section__title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

/* =========================
   GRID BASE (NOSOTROS 3 COL)
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================
   GRID 2 COL (ACTIVIDADES)
========================= */

.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* =========================
   CARDS
========================= */

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  transition: 0.25s ease;
}

.social-card {
  padding: 32px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: #555;
  margin-bottom: 10px;
}

.price {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

/* =========================
   ACTIVITY CARDS
========================= */

.card--activity {
  overflow: hidden;
  padding: 0;
}

.card__image {
  width: 100%;
  height: 260px;

  object-fit: cover;
  object-position: center 80%;

  display: block;
}

.card__content {
  padding: 2rem;

  background: #fff;
}

.card__content .btn {
  margin-top: 12px;
}

.card__image--initiation {
  object-position: center 90%;
}

.card__image--improvement {
  object-position: center 25%;
}

.card__image--camp {
  object-position: center 50%;
}

.card__image--rental {
  object-position: center 100%;
}




/* =========================
   SOCIAL
========================= */

.social-intro {
text-align: center;

max-width: 700px;

margin:
0 auto
32px;

color: #555;
}

.social-card {
  padding: 42px;

  min-height: 300px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.social-card:hover {
  transform: translateY(-4px);
}

.social-card__header {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 18px;
}

.social-card__header h3 {
  margin: 0;
}

.social-card .btn {
  width: fit-content;

  margin-top: 24px;
}

.social-icon {
  width: 50px;

  height: 50px;

  border-radius: 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: white;

  flex-shrink: 0;
}

.social-icon svg {
  width: 24px;

  height: 24px;
}

.social-icon--instagram {
  background:
    linear-gradient(
      135deg,
      #f58529,
      #dd2a7b,
      #8134af
    );
}

.social-icon--facebook {
  background:
    #1877f2;
}


/* =========================
   CTA
========================= */

.cta {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: #f2f2f2;
}

.cta .btn-secondary {
  border-color: #fff;
  color: #fff;
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.social a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--primary);
}

.social a:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE INTERMEDIO
========================= */

@media (max-width: 1200px) {
  .hero__content {
    transform: translateY(-24vh);
  }
}

@media (max-width: 992px) {
  .hero__content {
    transform: translateY(-28vh);
  }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {

  .grid,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 32px;
  }
  
  .header__content {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

  .nav a {
    margin-left: 10px;
  }

  .hero__content {
    transform: translateY(-15vh);
  }

  .menu-toggle {
  display: block;
}

.nav {
  display: flex;
  flex-direction: column;

  position: absolute;
  top: 100%;
  right: 20px;

  background: #fff;

  padding: 16px;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  gap: 12px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero__cta {
  flex-direction: column;
  align-items: center;
}

.hero__cta .btn {
  width: 230px;
}

}

:focus-visible {
  outline: 3px solid #0D3B66;
  outline-offset: 4px;
}