/* ============================================================
   CLUB DEPORTIVO HUALAS PATAGÓNICO — Design System
   Paleta: #49BDA6 (verde teal) · #F77941 (naranja) · #393F45 (carbón) · #f4f4f4 (claro)
   Tipografía: Barlow (deportiva, moderna, institucional)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── Variables ── */
:root {
  --teal:       #49BDA6;
  --teal-dark:  #3aa492;
  --teal-light: #d6f0eb;
  --orange:     #F77941;
  --orange-dark:#d9652f;
  --charcoal:   #393F45;
  --charcoal-2: #4e555d;
  --light:      #f4f4f4;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(57,63,69,.08);
  --shadow-md:  0 6px 24px rgba(57,63,69,.12);
  --shadow-lg:  0 12px 40px rgba(57,63,69,.18);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--light);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  display: block;
  max-width: 100%;
}

/* ── Typography helpers ── */
.section-label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
}

.section-title span {
  color: var(--teal);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 76px;
  background-color: var(--white);
  box-shadow: 0 2px 16px rgba(57,63,69,.09);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#header > a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--charcoal);
}

#header > a:hover .titulo {
  color: var(--teal);
}

#header img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

#header > a:hover img {
  transform: scale(1.05);
}

.titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--charcoal);
  transition: color var(--transition);
  text-transform: uppercase;
}

/* ── Navigation ── */
#navmenu {
  display: flex;
  align-items: center;
}

#navmenu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#navmenu > ul > li > a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

#navmenu > ul > li > a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

/* Instagram icon in nav */
#navmenu ul li:last-child a {
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

#navmenu ul li:last-child a:hover {
  background: var(--teal-light);
  transform: scale(1.12);
}

#navmenu ul li:last-child svg {
  fill: var(--charcoal);
  transition: fill var(--transition);
}

#navmenu ul li:last-child a:hover svg {
  fill: var(--teal);
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
#imagenes {
  position: relative;
  overflow: hidden;
}

.slider {
  position: relative;
  overflow: hidden;
}

input[type="radio"] {
  display: none;
}

.slides {
  display: flex;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  animation: slideAnimation 24s infinite;
}

.slide {
  min-width: 100%;
  height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--white);
  position: relative;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(57,63,69,.75) 0%,
    rgba(57,63,69,.2) 50%,
    transparent 100%
  );
}

.content {
  position: relative;
  z-index: 2;
  padding: 40px 56px;
}

.content h2 a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: color var(--transition);
  display: inline-block;
}

.content h2 a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width var(--transition);
  margin-top: 4px;
  border-radius: 2px;
}

.content h2 a:hover {
  color: var(--orange);
}

.content h2 a:hover::after {
  width: 100%;
}

/* Navigation dots */
.navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.navigation label {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid rgba(255,255,255,.5);
}

.navigation label:hover {
  background: var(--orange);
  transform: scale(1.3);
  border-color: var(--orange);
}

/* Slider animation */
@keyframes slideAnimation {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(0); }
  20%  { transform: translateX(-100%); }
  35%  { transform: translateX(-100%); }
  40%  { transform: translateX(-200%); }
  55%  { transform: translateX(-200%); }
  60%  { transform: translateX(-300%); }
  75%  { transform: translateX(-300%); }
  80%  { transform: translateX(-400%); }
  95%  { transform: translateX(-400%); }
  100% { transform: translateX(0); }
}

#slide1:checked ~ .slides { transform: translateX(0); animation: none; }
#slide2:checked ~ .slides { transform: translateX(-100%); animation: none; }
#slide3:checked ~ .slides { transform: translateX(-200%); animation: none; }
#slide4:checked ~ .slides { transform: translateX(-300%); animation: none; }
#slide5:checked ~ .slides { transform: translateX(-400%); animation: none; }
#slide6:checked ~ .slides { transform: translateX(-500%); animation: none; }

/* ============================================================
   SEGUINOS SECTION (index)
   ============================================================ */
.seguinos-section {
  padding: 72px 48px;
  text-align: center;
  background: var(--white);
}

.seguinos-section h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.seguinos-section h1 span {
  color: var(--teal);
}

.seguinos-section .section-sub {
  font-size: 1rem;
  color: var(--charcoal-2);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Legacy ¡Seguinos! h1 on index */
main > h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  color: var(--charcoal);
  padding: 56px 24px 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.igwrapper {
  background: var(--white) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto !important;
  padding: 24px;
}

/* ============================================================
   SECTION TITLE BANNER
   ============================================================ */
#tituloSeccion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, #f09060 100%);
  padding: 48px 24px 44px;
  position: relative;
  overflow: hidden;
}

#tituloSeccion::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,.07);
  transform: rotate(-15deg);
  pointer-events: none;
}

#tituloSeccion h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.15);
  padding: 0;
  margin: 0;
}

/* ============================================================
   HERO IMAGE STRIP (.montaña)
   ============================================================ */
.montaña {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.montaña::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(57,63,69,.3) 100%);
}

.montaña img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

/* ============================================================
   TIMELINE — NOSOTROS
   ============================================================ */
.timeline-wrapper {
  padding: 72px 24px;
  background: var(--light);
}

.timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.Lineadeltiempo {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Central line */
.Lineadeltiempo::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal) 0%, var(--teal-dark) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.container {
  color: var(--charcoal);
  display: flex;
  width: 100%;
  position: relative;
  margin-bottom: 44px;
}

.container.left {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}

.container.right {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

/* Dot on timeline */
.container::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 50%;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: 0 0 0 4px rgba(73,189,166,.15);
}

.container:hover::before {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(73,189,166,.2);
}

/* Timeline card */
.años {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.container.right .años {
  border-left: none;
  border-right: 4px solid var(--teal-light);
}

.años:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.container.right .años:hover {
  border-color: var(--teal);
}

/* Year badge */
.años h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.años h2::after {
  content: '';
  display: block;
  flex: 1;
  height: 2px;
  background: var(--teal-light);
  border-radius: 1px;
  margin-bottom: 6px;
}

.años h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  padding: 6px 0 6px 10px;
  border-left: 3px solid var(--orange);
  margin-left: -4px;
}

.años p {
  font-size: 0.87rem;
  color: var(--charcoal-2);
  line-height: 1.55;
  margin: 4px 0 12px 0;
  font-weight: 400;
}

/* ============================================================
   GALLERY — NOSOTROS
   ============================================================ */
#galeria {
  padding: 72px 24px;
  background: var(--charcoal);
}

.galeria-header {
  text-align: center;
  margin-bottom: 48px;
}

.galeria-header .section-label {
  color: var(--orange);
}

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

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.galeria-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.galeria-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.galeria-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.foto {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(73,189,166,0);
  transition: background var(--transition);
  border-radius: var(--radius-md);
}

.foto:hover::after {
  background: rgba(73,189,166,.15);
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.foto:hover img {
  transform: scale(1.07);
}

/* Legacy .foto support (no .galeria-grid wrapper) */
#galeria > h2 {
  width: 100%;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ============================================================
   ACTIVIDADES PAGE
   ============================================================ */
#actividades {
  padding: 56px 24px;
  background: var(--light);
  max-width: 100%;
}

.actividades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Activity card */
.actividad-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.actividad-card__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.actividad-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.actividad-card:hover .actividad-card__img img {
  transform: scale(1.06);
}

.actividad-card__body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.actividad-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.actividad-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 10px;
}

.actividad-card__title a {
  color: inherit;
  transition: color var(--transition);
}

.actividad-card__title a:hover {
  color: var(--teal);
}

.actividad-card__desc {
  font-size: 0.9rem;
  color: var(--charcoal-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.actividad-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(73,189,166,.3);
  letter-spacing: 0.03em;
}

.actividad-card__btn a {
  color: var(--white);
}

.actividad-card__btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,121,65,.35);
}

.actividad-card__btn:active {
  transform: translateY(0);
}

/* Legacy #actividades ul structure support */
#actividades ul {
  list-style: none;
  padding: 0;
}

/* ============================================================
   INDIVIDUAL ACTIVITY PAGES
   ============================================================ */
#datos {
  background: var(--white);
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 40px auto;
  box-shadow: var(--shadow-md);
  line-height: 1.7;
}

#datos h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

#datos h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 20px 0 6px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}

#datos p {
  font-size: 1rem;
  color: var(--charcoal-2);
  margin-bottom: 16px;
}

/* Schedule / lists */
#ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 24px 40px;
}

#ul ul {
  list-style: none;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  min-width: 240px;
  border-top: 4px solid var(--teal);
}

#ul li {
  margin-bottom: 8px;
  font-size: 0.97rem;
  color: var(--charcoal-2);
  padding: 4px 0;
  border-bottom: 1px solid rgba(57,63,69,.06);
}

#ul li:last-child {
  border-bottom: none;
}

/* ── Timetable ── */
#horario {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

th {
  background: var(--teal);
  color: var(--white);
  padding: 16px 20px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

td {
  background: var(--white);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--light);
  font-size: 0.95rem;
  color: var(--charcoal);
}

tbody tr:nth-child(even) td {
  background: #fafbfb;
}

tbody tr:hover td {
  background: var(--teal-light);
  cursor: pointer;
  transition: background var(--transition);
}

td:first-child {
  font-weight: 700;
  color: var(--charcoal);
  text-align: left;
}

/* ── Contact button ── */
#contactar {
  text-align: center;
  padding: 40px 24px;
}

#contactar button {
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 15px 36px;
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 24px rgba(73,189,166,.3);
  letter-spacing: 0.02em;
}

#contactar button:hover {
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(247,121,65,.35);
}

#contactar button:active {
  transform: translateY(0);
}

#contactar button a {
  color: var(--white);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  max-width: 1100px;
  margin: 56px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--teal);
}

.contact-card__content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  margin-bottom: 4px;
}

.contact-card__content p,
.contact-card__content a {
  font-size: 0.97rem;
  color: var(--charcoal);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-card__content a:hover {
  color: var(--teal);
}

/* Social row */
.contact-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  transition: background var(--transition), transform var(--transition);
}

.contact-social a:hover {
  background: var(--teal);
  transform: scale(1.15);
}

.contact-social a:hover svg {
  fill: var(--white);
}

.contact-social svg {
  width: 22px;
  height: 22px;
  fill: var(--teal);
  transition: fill var(--transition);
}

/* Instagram embed wrapper */
.contact-ig {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.contact-ig-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Buttons on contact */
#botonContacto {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 56px;
  max-width: 700px;
  margin: 0 auto;
}

#botonContacto button {
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 15px 32px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 20px rgba(73,189,166,.28);
  letter-spacing: 0.02em;
}

#botonContacto button a {
  color: var(--white);
}

#botonContacto button:hover {
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(247,121,65,.35);
}

#botonContacto button:active {
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--charcoal);
  color: var(--light);
  margin-top: 0;
  padding: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(244,244,244,.6);
  line-height: 1.6;
  max-width: 280px;
}

.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(244,244,244,.65);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(244,244,244,.65);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--teal);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(244,244,244,.65);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--teal);
}

/* Social icons in footer */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--teal);
  transform: scale(1.12);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: rgba(244,244,244,.7);
  transition: fill var(--transition);
}

.footer-social a:hover svg {
  fill: var(--white);
}

/* Footer divider */
.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 0 48px;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  font-size: 0.82rem;
  color: rgba(244,244,244,.4);
  text-align: center;
}

.footer-bottom a {
  color: var(--teal);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* Legacy footer structure */
#footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  justify-content: center;
  align-items: center;
}

#webgenio {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 48px;
  border-top: 1px solid rgba(255,255,255,.08);
}

#webgenio h4 {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(244,244,244,.4);
}

#webgenio h4 a {
  color: var(--teal);
  font-weight: 600;
}

#webgenio h4 a:hover {
  color: var(--orange);
}

/* ============================================================
   GALLERY ITEMS IN ACTIVITY PAGES
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  #header {
    padding: 0 28px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 48px 28px 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-divider,
  .footer-bottom {
    padding: 20px 28px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .Lineadeltiempo {
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .galeria-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  #header {
    padding: 0 20px;
    height: 64px;
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  #navmenu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  #navmenu.open {
    max-height: 400px;
    padding: 12px 0 20px;
  }

  #navmenu ul {
    flex-direction: column;
    gap: 2px;
    padding: 0 16px;
  }

  #navmenu > ul > li > a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .slide {
    height: 320px;
  }

  .content {
    padding: 24px 28px;
  }

  .content h2 a {
    font-size: 2rem;
  }

  .montaña {
    height: 240px;
  }

  /* Timeline mobile */
  .Lineadeltiempo::before {
    left: 20px;
  }

  .container {
    padding: 0 0 0 52px !important;
    justify-content: flex-start !important;
  }

  .container::before {
    left: 20px;
    top: 24px;
  }

  .años {
    width: 100%;
    max-width: 100%;
    border-left: 4px solid var(--teal-light) !important;
    border-right: none !important;
  }

  .años h2 {
    font-size: 2.4rem;
  }

  /* Gallery mobile */
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Activities mobile */
  .actividades-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-main {
    grid-template-columns: 1fr;
    padding: 40px 20px 28px;
    gap: 32px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-divider,
  .footer-bottom {
    padding: 16px 20px;
  }

  #tituloSeccion {
    padding: 36px 20px 32px;
  }

  #datos {
    padding: 28px 20px;
  }

  #botonContacto {
    flex-direction: column;
    gap: 12px;
  }

  #botonContacto button {
    width: 100%;
    max-width: 340px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .años h2 {
    font-size: 2rem;
  }

  .content h2 a {
    font-size: 1.6rem;
  }

  #tituloSeccion h1 {
    font-size: 2rem;
  }
}
