/* ── VARIABLES ── */
:root {
  --sand:    #e8b870;
  --sand2:   #c8874a;
  --dune:    #8b5a2b;
  --night:   #0d1b2e;
  --blue:    #1a3a5c;
  --gold:    #c8a020;
  --text:    #e8d8c0;
  --muted:   #a09070;
  --bg:      #0f1e30;
  --card:    rgba(255,255,255,0.06);
  --border:  rgba(232,184,112,0.2);
  --radius:  8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--night);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
em { font-style: italic; color: var(--sand); }
.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  transition: background 0.4s, padding 0.4s;
}
#nav.solid {
  background: rgba(13,27,46,0.96);
  backdrop-filter: blur(10px);
  padding: 12px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sand);
  white-space: nowrap;
}
.nav-logo span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sand); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--sand);
  transition: 0.3s;
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-dunes {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,46,0.55) 0%, rgba(13,27,46,0.3) 40%, rgba(13,27,46,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.hero-stamp {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-title em {
  display: block;
  color: var(--sand);
}
.hero-title span {
  display: block;
  font-size: 0.3em;
  font-family: 'Josefin Sans', sans-serif;
  font-style: normal;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.hero-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-sand {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--sand2);
  color: var(--sand);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.btn-sand:hover { background: rgba(200,135,74,0.15); }
.btn-sand.filled {
  background: var(--sand2);
  color: var(--night);
  font-weight: 600;
}
.btn-sand.filled:hover { background: var(--sand); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--muted);
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTIONS COMMON ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
}

/* ── CIUDAD ── */
#ciudad {
  padding: 100px 0;
  background: var(--bg);
}
.ciudad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ciudad-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ciudad-img-ph {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ciudad-img-ph svg {
  width: 100%;
  height: 100%;
}
.img-caption {
  display: block;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.ciudad-text p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1rem;
}
.ciudad-datos {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.dato strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--sand);
}
.dato span {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 1px;
}

/* ── MOUSSEM ── */
#moussem {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.moussem-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a00 0%, #3a1a00 40%, #1a0a00 100%);
  z-index: 0;
}
.moussem-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a020' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.moussem-inner { position: relative; z-index: 1; text-align: center; }
.moussem-inner h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--sand); }
.moussem-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  margin-bottom: 48px;
}
.divider-arabic {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.moussem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.moussem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,160,32,0.2);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, background 0.3s;
}
.moussem-card:hover {
  transform: translateY(-4px);
  background: rgba(200,160,32,0.08);
}
.moussem-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
}
.moussem-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.moussem-card:hover .moussem-photo img { transform: scale(1.05); }
.moussem-icon { font-size: 2.4rem; margin-bottom: 16px; }
.moussem-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--sand);
  margin-bottom: 12px;
}
.moussem-card p { font-size: 0.92rem; color: var(--muted); }
.moussem-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sand);
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid rgba(200,160,32,0.3);
  border-bottom: 1px solid rgba(200,160,32,0.3);
}

/* ── CULTURA ── */
#cultura {
  padding: 100px 0;
  background: var(--bg);
}
.cultura-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.cultura-item { text-align: center; }
.cultura-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.cultura-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.cultura-item:hover .cultura-img img { transform: scale(1.04); }
.cultura-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--sand);
  margin-bottom: 12px;
}
.cultura-item p { font-size: 0.9rem; color: var(--muted); }

/* ── GALERÍA ── */
#galeria {
  padding: 100px 0;
  background: linear-gradient(180deg, #070e18 0%, #0f1e30 100%);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s;
}
.g-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.g-item:hover .g-ph,
.g-item:hover .g-img { transform: scale(1.06); }
.g-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 24px 14px 10px;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.g-item:hover .g-overlay { transform: translateY(0); }
.g-caption {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand);
}

/* ── VISITAR ── */
#visitar {
  padding: 100px 0;
  background: var(--bg);
}
.visitar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.visitar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.3s, background 0.3s;
}
.visitar-card:hover {
  transform: translateY(-4px);
  background: rgba(232,184,112,0.06);
}
.visitar-icon { font-size: 2rem; margin-bottom: 14px; }
.visitar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--sand);
  margin-bottom: 10px;
}
.visitar-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ── FOOTER ── */
footer {
  background: #070e18;
  border-top: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  font-family: 'Cairo', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 8px;
}
.footer-logo em { font-style: normal; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 2px;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sand); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(160,144,112,0.4);
  letter-spacing: 1px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .ciudad-grid, .moussem-grid, .cultura-grid, .visitar-grid {
    grid-template-columns: 1fr;
  }
  .visitar-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item.tall { grid-row: span 1; }
  .g-item.wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  #nav { padding: 16px 20px; }
  #nav.solid { padding: 10px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,27,46,0.97); padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .visitar-grid { grid-template-columns: 1fr; }
  .ciudad-datos { flex-direction: column; gap: 16px; }
}
