:root {
  /* =========================================
     Color Palette - Masajista Colombiana
  ========================================= */
  --color-primary-dark: #002631;
  --color-primary: #093f4f;
  --color-background-dark: #000000;
  --color-surface-dark: #111111;
  --color-accent: #FFD700;

  /* Semantics */
  --bg-main: var(--color-background-dark);
  --text-main: #f5f5f5;
  --text-muted: #cdcdcd;
  --btn-bg: var(--color-accent);
  --btn-hover: #c49c76;
  --card-bg: var(--color-surface-dark);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Open Sans ', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-accent);
  /* Color ajustado a los títulos */
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 2.5rem;
}

/* Typography Utilities */
.el-messiri-600 {
  font-family: "El Messiri", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Buttons & CTA */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: #1a1a1a;
}

.btn-primary:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(171, 136, 103, 0.4);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #1a1a1a;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(31, 23, 19, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
  height: 50px;
  width: auto;
}

.nav a {
  color: var(--text-main);
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 2px;
}

.lang-switch button.active {
  color: var(--color-accent);
}

.social-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.15);
}

.social-icon svg {
  fill: var(--color-accent);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1f1713 10%, rgba(31, 23, 19, 0.4) 60%, rgba(31, 23, 19, 0.1) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-cards {
  position: absolute;
  bottom: 5%;
  right: 5%;
  display: flex;
  gap: 20px;
  z-index: 1;
}

.glass-card {
  background: rgba(53, 38, 31, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(171, 136, 103, 0.2);
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  color: #fff;
  font-size: 0.9rem;
}

.glass-card .icon {
  display: inline-block;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.section-padding {
  padding: 100px 5%;
}

/* Split Layout (About) */
.split-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.split-images {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.split-images .main-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.floating-imgs {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  gap: 15px;
}

.floating-imgs img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--bg-main);
}

.split-text {
  flex: 1;
  min-width: 300px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
}

.split-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Service Grid (Zig-zag) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 800px;
}

.service-block {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  position: relative;

}

.service-block.dark-bg {
  background: var(--card-bg);
}

.service-block.img-bg {
  background-size: cover;
  background-position: center;
}

.icon-wrap {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(171, 136, 103, 0.3);
}

/* Tourism / Offers */
.tourism {
  position: relative;
  padding: 100px 5%;
  display: flex;
  align-items: center;
}

.tourism-bg,
.tourism-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.gradient-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #1f1713 40%, transparent 100%);
  z-index: -1;
}

.tourism-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  flex-wrap: wrap;
  gap: 50px;
}

.tourism-text {
  max-width: 500px;
}

.tourism-text p {
  margin: 20px 0;
  font-size: 1.1rem;
}

.tourism-image {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.portrait {
  max-width: 100%;
  height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.floating-benefit {
  position: absolute;
  background: rgba(53, 38, 31, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(171, 136, 103, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.floating-benefit.b-top {
  top: 15%;
  left: 0;
}

.floating-benefit.b-bottom {
  bottom: 15%;
  right: 0;
}

/* Masonry Layout */
.masonry-grid {
  column-count: 4;
  column-gap: 20px;
  width: 100%;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 23, 19, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hover-overlay span {
  color: var(--color-accent);
  font-size: 3rem;
  font-weight: 300;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-item:hover .hover-overlay {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }

  .nav {
    display: none;
    /* simple hidden for mobile, can add hamburger later */
  }

  .service-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    display: flex;
    flex-direction: column;
  }

  /* Reorganizamos el orden en mobile para que siempre sea Imagen -> Texto */
  /* El orden original es: 1(I), 2(T), 3(T), 4(I), 5(I), 6(T), 7(T), 8(I) */
  .service-grid .service-block:nth-child(3) {
    order: 4;
  }

  .service-grid .service-block:nth-child(4) {
    order: 3;
  }

  .service-grid .service-block:nth-child(7) {
    order: 8;
  }

  .service-grid .service-block:nth-child(8) {
    order: 7;
  }

  .service-block {
    margin-bottom: 0;
    /* Quitamos el margin para que no haya espacios extras entre bloques que ahora se tocan */
  }

  .service-block.img-bg {
    height: 350px;
  }

  .split-layout,
  .tourism-container {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-cards {
    display: none;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 12, 10, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--color-accent);
  font-size: 4rem;
  cursor: pointer;
  background: transparent;
  border: none;
  line-height: 1;
  z-index: 2001;
}

.masonry-item video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.masonry-item:hover video {
  transform: scale(1.03);
}

/* Animations Scroll Fade-in */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mini Masonry */
.mini-masonry {
  column-count: 2;
  column-gap: 15px;
  width: 100%;
}

.mini-masonry .masonry-item {
  margin-bottom: 15px;
  break-inside: avoid;
}

@media (max-width: 480px) {
  .mini-masonry {
    column-count: 1;
  }
}

/* Footer Layout (1 Row Full + 2 Col) */
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-schedule {
  grid-column: 1 / -1; /* Ocupa todo el ancho */
  text-align: center;
  border-bottom: 1px solid rgba(171, 136, 103, 0.2);
  padding-bottom: 40px;
}

.footer-hours,
.footer-contact {
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* Copyright Footer */
footer {
  background: #000;
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid rgba(171, 136, 103, 0.2);
}

footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.8;
  letter-spacing: 1px;
}
