@font-face { font-family: 'Gilroy'; src: url('Gilroy-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Gilroy'; src: url('Gilroy-Medium.ttf'); font-weight: 500; }
@font-face { font-family: 'Gilroy'; src: url('Gilroy-Bold.ttf'); font-weight: 700; }

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

:root {
  --primary: #1a4242;
  --primary-light: #458589;
  --dark: #1a2e2e;
  --darker: #282117;
  --sand: #dbd5c8;
  --cream: #ede7dd;
  --text: #1a2e2e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Gilroy', sans-serif;
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(41,84,86,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 68px;
}
.site-nav .nav-logo { height: 26px; display: block; }
.site-nav .nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.site-nav .nav-links li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s;
}
.site-nav .nav-links li:hover { opacity: 0.6; }
.site-nav .nav-links li.active { color: var(--primary-light); position: relative; }
.site-nav .nav-links li.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--primary-light);
}
.site-nav .nav-cta {
  font-family: 'Gilroy', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: var(--primary);
  color: var(--sand);
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.site-nav .nav-cta:hover { opacity: 0.85; }

/* ============ PAGE HEADER ============ */
.page-header {
  background: var(--darker);
  padding: 80px 56px 64px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  background-image: url('logo-blanco.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.04;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-header .eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header .eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--primary-light);
}
.page-header h1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.025em;
  line-height: 1;
  max-width: 700px;
}
.page-header .sub {
  font-size: 15px;
  color: rgba(237,231,221,0.55);
  line-height: 1.65;
  margin-top: 24px;
  max-width: 540px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: var(--cream);
  padding: 16px 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(41,84,86,0.55);
  border-bottom: 1px solid rgba(41,84,86,0.08);
}
.breadcrumb a { color: rgba(41,84,86,0.55); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: rgba(41,84,86,0.25); }
.breadcrumb .current { color: var(--primary); }

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--dark);
  padding: 40px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(219,213,200,0.08);
}
.site-footer .footer-logo { height: 22px; filter: brightness(0) saturate(0) invert(1) opacity(0.35); }
.site-footer .footer-links { display: flex; gap: 28px; }
.site-footer .footer-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(219,213,200,0.3);
  cursor: pointer;
  transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: rgba(219,213,200,0.7); }
.site-footer .footer-right { display: flex; align-items: center; gap: 14px; }
.site-footer .footer-social {
  width: 30px; height: 30px;
  border: 1px solid rgba(219,213,200,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: rgba(219,213,200,0.35);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.site-footer .footer-social:hover { border-color: rgba(219,213,200,0.4); color: rgba(219,213,200,0.7); }
.site-footer .footer-copy { font-size: 10px; color: rgba(219,213,200,0.18); margin-left: 8px; }

/* ============ BUTTONS ============ */
.btn-primary {
  font-family: 'Gilroy', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--sand);
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  font-family: 'Gilroy', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--primary); color: var(--sand); }

.eyebrow-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--primary-light);
}

/* ============ TWEAKS PANEL (compartido) ============ */
#tweaks-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  border: 1.5px solid #d0ccc4;
  border-radius: 4px;
  padding: 20px 22px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: 240px;
  font-family: 'Gilroy', sans-serif;
}
#tweaks-panel h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e2da;
}
.tweak-group { margin-bottom: 18px; }
.tweak-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
  display: block;
}
.tweak-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: #282117; }

/* ============ HAMBURGER (mobile) ============ */
.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE MEDIA QUERIES ============ */
@media (max-width: 768px) {
  /* NAV */
  nav.site-nav, nav {
    padding: 0 18px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .site-nav .nav-logo, .nav-logo { height: 22px; }

  .site-nav .nav-links, nav .nav-links {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    transform: none;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(41,84,86,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav .nav-links.open, nav .nav-links.open { max-height: 500px; }
  .site-nav .nav-links li, nav .nav-links li {
    padding: 0;
    border-bottom: 1px solid rgba(41,84,86,0.08);
    text-align: center;
  }
  .site-nav .nav-links li a, nav .nav-links li a {
    display: block;
    padding: 18px 24px;
  }
  .site-nav .nav-links li.active::after, nav .nav-links li.active::after { display: none; }

  .nav-hamburger { display: block; }

  .site-nav .nav-cta, nav .nav-cta {
    font-size: 10px;
    padding: 9px 14px;
    letter-spacing: 0.08em;
  }

  /* PAGE HEADER */
  .page-header { padding: 48px 20px 40px; }
  .page-header h1 { font-size: 38px; line-height: 1.05; }
  .page-header .sub { font-size: 14px; margin-top: 18px; }

  /* BREADCRUMB */
  .breadcrumb { padding: 12px 18px; font-size: 9px; gap: 8px; flex-wrap: wrap; }

  /* FOOTER */
  footer.site-footer, footer {
    flex-direction: column;
    gap: 22px;
    padding: 32px 20px;
    text-align: center;
  }
  .site-footer .footer-links, .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
  .site-footer .footer-right, .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* TWEAKS panel: ocultar en mobile */
  #tweaks-panel { display: none !important; }

  /* SEDE PICKER MODAL: ajustar ancho */
  .sede-picker { width: calc(100vw - 32px); max-width: 420px; }
  .sede-picker-header { padding: 16px 20px; }
  .sede-picker-item { padding: 16px 20px; }
  .picker-name { font-size: 16px; }
}

