/*
Theme Name: Merzouga Luxury WordPress
Theme URI: https://merzougaluxurycamps.com
Description: Profesional tema WordPress para tours y campamentos de lujo en el desierto de Merzouga
Version: 1.0
Author: Merzouga Luxury Camps
License: GPL v2 or later
Text Domain: merzouga-luxury
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --primary: #D4AF37;
  --secondary: #8B5A2B;
  --accent: #1a472a;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #ddd;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: white;
  border-bottom: 2px solid #D4AF37;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 30px;
}

/* LOGO */
.site-branding {
  flex-shrink: 0;
  margin-right: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s;
  padding: 5px 0;
}

.logo-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.site-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* NAVEGACIÓN */
.main-navigation {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
}

.main-navigation li {
  margin: 0;
  padding: 0;
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 20px 18px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.main-navigation a:hover {
  color: #D4AF37;
  border-bottom-color: #D4AF37;
  background: rgba(212, 175, 55, 0.05);
}

.main-navigation > li:first-child a:hover,
.main-navigation > li:first-child a.active {
  color: #D4AF37;
  border-bottom-color: #D4AF37;
}

/* LANGUAGE SWITCHER */
.language-switcher {
  flex-shrink: 0;
  padding: 10px 15px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.language-switcher:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
}

.language-switcher span {
  font-weight: 600;
  color: #1a1a1a;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .header-content {
    gap: 20px;
    padding: 12px 0;
  }
  
  .site-logo {
    height: 80px;
  }
  
  .main-navigation a {
    padding: 15px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-bottom: 1px solid #D4AF37;
  }
  
  .header-content {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
  }
  
  .site-branding {
    margin-right: 0;
  }
  
  .site-logo {
    height: 70px;
  }
  
  .main-navigation {
    order: 3;
    width: 100%;
    gap: 0;
    flex-wrap: wrap;
  }
  
  .main-navigation a {
    padding: 12px 12px;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
  }
  
  .language-switcher {
    order: 2;
    margin-left: auto;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .language-switcher span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 60px;
  }
  
  .main-navigation a {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  
  .language-switcher {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* ============================================
   SITE TITLE (Fallback si no hay logo)
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header a {
  color: var(--white);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.main-navigation {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-navigation a {
  color: var(--white);
  font-weight: 500;
  padding: 10px 0;
  transition: all 0.3s;
}

.main-navigation a:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.language-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-switcher a {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 0.9rem;
}

.language-switcher a:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-banner {
  background: linear-gradient(135deg, rgba(26, 71, 42, 0.5) 0%, rgba(139, 90, 43, 0.5) 100%),
              url('./images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
  color: var(--primary);
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  color: var(--light);
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin: 8px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: 80px 20px;
}

.content-section:nth-child(even) {
  background-color: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--accent);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 20px auto 0;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 25px auto 0;
  border-radius: 2px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.tours-grid,
.activities-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.tour-card,
.activity-card,
.card-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.tour-card:hover,
.activity-card:hover,
.card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.tour-card:hover .card-image img,
.activity-card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.3s;
}

.card-link:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ============================================
   SITE TITLE (Fallback si no hay logo)
   ============================================ */
.site-title {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 0;
  font-weight: 700;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   BODY & GENERAL
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: var(--light);
}

.footer-top {
  padding: 60px 20px 0;
  border-top: 3px solid var(--primary);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--light);
  transition: all 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  border: 1px solid var(--primary);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  color: var(--light);
  font-size: 0.9rem;
  margin: 8px 0;
}

/* ============================================
   FORMS
   ============================================ */
.contact-form,
.booking-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .main-navigation {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-navigation a {
    padding: 15px 20px;
    display: block;
  }

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .tours-grid,
  .activities-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    min-height: 400px;
  }

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

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}
