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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: #1f2b45;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Fade-in al hacer scroll (activado por js/reveal.js) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Encabezados de sección compartidos (estilo repetido por archivo, sin globales) */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b0892f;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.01em;
  color: #0f1f3d;
  line-height: 1.15;
}

.section-desc {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #5c6a86;
  margin-top: 16px;
}

/* HEADER — siempre blanco, sombra al hacer scroll */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e4e9f2;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

#header.scrolled {
  border-bottom: 1px solid transparent;
  box-shadow: 0 6px 24px rgba(15, 31, 61, 0.1);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo (texto) — compartido con footer */
.header-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a84c, #e0bf6e);
  color: #0f1f3d;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo:hover .logo-mark {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.55);
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: #0f1f3d;
}

.logo-text strong {
  font-weight: 700;
  color: #b0892f;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.header-nav ul li a {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5878;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.header-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

.header-nav ul li a:hover,
.header-nav ul li a[aria-current="page"] {
  color: #0f1f3d;
}

.header-nav ul li a:hover::after,
.header-nav ul li a[aria-current="page"]::after {
  width: 100%;
}

.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f1f3d;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}

.header-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.header-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e4e9f2;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.header-mobile-nav.open { max-height: 420px; }

.header-mobile-nav ul {
  list-style: none;
  padding: 14px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-mobile-nav ul li a {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5878;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f7;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.header-mobile-nav ul li a:hover,
.header-mobile-nav ul li a[aria-current="page"] {
  color: #b0892f;
  padding-left: 8px;
}

@media (min-width: 1440px) {
  .header-inner { max-width: 1340px; padding: 0 64px; }
}

@media (max-width: 1280px) {
  .header-inner { padding: 0 40px; height: 82px; }
  .header-nav ul { gap: 26px; }
  .section-title { font-size: 40px; }
}

@media (max-width: 1024px) {
  .header-inner { padding: 0 32px; height: 78px; }
  .header-nav ul { gap: 20px; }
  .header-nav ul li a { font-size: 13px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 24px; height: 70px; }
  .logo-text { font-size: 21px; }
  .logo-mark { width: 38px; height: 38px; font-size: 18px; }
  .header-nav { display: none; }
  .header-hamburger { display: flex; }
  .header-mobile-nav { display: block; }
  .section-title { font-size: 34px; }
  .section-head { margin-bottom: 44px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; height: 62px; }
  .logo-text { font-size: 19px; }
  .section-title { font-size: 29px; }
  .section-desc { font-size: 15px; }
}
