/* ===================== VARIABLES GLOBALES ===================== */  
:root {
  /* Nueva paleta profesional */
  --green-50: #A8D5BA;
  --green-100: #2F6F4F;
  --green-200: #8FBC8F;
  --green-300: #B8E6D5;
  --green-400: #0D7C66;
  --green-500: #163832;
  
  --teal-100: #0D7C66;
  --teal-200: #14B8A6;
  --sage-100: #8FBC8F;
  --sage-200: #2D5F4D;
  --charcoal: #495057;
  --moss: #6B9F7F;
  
  /* Neutrales */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Alertas */
  --alert-red: #ff3333;
  --alert-yellow: #ffcc00;
  --alert-green: #00cc44;
}

/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================== HEADER COMPARTIDO ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(22, 56, 50, 0.98);
  backdrop-filter: blur(20px);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid rgba(13, 124, 102, 0.3);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(13, 124, 102, 0.4);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-btn {
  background: rgba(3, 119, 96, 0.658);
  border: 1px solid rgba(5, 165, 112, 0.555);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-btn:hover {
  background: rgba(3, 207, 166, 0.767);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 124, 102, 0.3);
}

.header-btn.active {
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  border-color: var(--teal-200);
}

/* ===================== HAMBURGER MENU ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================== RESPONSIVE HEADER ===================== */
@media (max-width: 968px) {
  .header {
    padding: 12px 20px;
  }

  .header-actions {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: var(--green-500);
    flex-direction: column;
    padding: 100px 2rem;
    transition: right 0.4s;
    align-items: flex-start;
    gap: 1.2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 999;
  }

  .header-actions.active {
    right: 0;
  }

  .header-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .hamburger {
    display: flex;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .header-btn span {
    display: inline;
  }

  .header-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .header {
    padding: 10px 15px;
  }
}