/* ── Estilos compartidos para todas las subpáginas ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --accent: #1a7a4f;
  --accent-dark: #115c3a;
  --accent-light: #e8f5ec;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6b7280;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --border: #e5e7eb;
  --footer-bg: #0f1f17;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-mid);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.7;
}

/* ── HEADER ── */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-logo img { height: 52px; display: block; }

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

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

.dropdown { position: relative; }

.dropdown-toggle {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.dropdown-toggle::after { content: "▾"; font-size: 0.8em; }
.dropdown-toggle:hover { color: var(--accent); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--surface);
  min-width: 200px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover { background: var(--accent-light); color: var(--accent); }
.dropdown.active .dropdown-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── PAGE HERO BANNER ── */
main { padding-top: 72px; flex: 1; }

.page-hero {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  padding: 72px 80px 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.page-hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
}

/* ── SECCIÓN INTERIOR GENÉRICA ── */
.page-section {
  padding: 80px 80px;
  background: var(--surface);
}

.page-section-alt {
  padding: 80px 80px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 48px;
}

/* ── BOTONES ── */
.btn-accent {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline-accent {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}

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

/* ── HIGH (resaltado de texto) ── */
.high { color: var(--accent); }

/* ── FOOTER ── */
#footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 56px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.footer-logo { height: 54px; opacity: 0.45; filter: brightness(10); }

#footer h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffae00;
}

.footer-social { display: flex; gap: 24px; }

.footer-social-icon {
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-social-icon:hover { color: var(--accent); transform: translateY(-3px); }

#footer small { font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header { padding: 0 24px; }
  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh; width: 260px;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 28px 28px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 999;
    gap: 0;
    overflow-y: auto;
  }

  nav.active { right: 0; }

  nav a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; font-size: 14px; }

  .dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--surface-alt); border-radius: 0; display: none; }
  .dropdown.active .dropdown-menu { display: block; }

  .page-hero, .page-section, .page-section-alt, #footer { padding-left: 24px; padding-right: 24px; }
  .page-hero { padding-top: 56px; padding-bottom: 40px; }
}
