/* ============================================================
   GD COPPER MÉXICO — Corporate Stylesheet
   Design: Refined Industrial / Luxury Copper Aesthetic
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --copper:       #B5541A;
  --copper-light: #D4733A;
  --copper-dark:  #8B3D10;
  --red:          #C0272D;
  --red-dark:     #9B1F24;
  --navy:         #1A2332;
  --navy-mid:     #243040;
  --gray-dark:    #2D2D2D;
  --gray-mid:     #555555;
  --gray-light:   #EFEFEF;
  --white:        #FFFFFF;
  --cream:        #FAF8F5;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.10);
  --shadow-md:    0 6px 24px rgba(0,0,0,.14);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.18);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1200px;
  --header-h:     80px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.text-center { text-align: center; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: .4rem;
}
.section-subtitle {
  font-size: .95rem;
  color: var(--copper);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .8rem;
}
.section-desc {
  color: var(--gray-mid);
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.divider {
  width: 56px; height: 3px;
  background: var(--copper);
  margin: 16px 0 28px;
}
.divider.center { margin: 16px auto 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--copper);
  color: var(--copper);
}
.btn-outline:hover { background: var(--copper); color: var(--white); }

/* ── HEADER ───────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  transition: background var(--transition);
}
#site-header.scrolled {
  background: rgba(26,35,50,.97);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
.logo-main span { color: var(--copper-light); }
.logo-sub {
  font-size: .62rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--copper-light); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--navy-mid);
  border-top: 2px solid var(--copper);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .84rem;
  color: rgba(255,255,255,.8);
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--copper); color: var(--white); padding-left: 24px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--navy);
  overflow-y: auto;
  z-index: 999;
  padding: 20px 0;
  transform: translateX(-100%);
  transition: transform var(--transition);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 14px 28px;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--copper); color: var(--white); }
.mobile-nav .mobile-sub a {
  padding-left: 46px;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.15);
}

/* ── PAGE OFFSET ──────────────────────────────────────────── */
main { padding-top: var(--header-h); }

/* ── HERO CAROUSEL ────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .8s cubic-bezier(.77,0,.18,1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.carousel-slide .slide-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.65);
}
.slide-bg-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--copper-dark) 100%);
}

/* Overlay texts */
.slide-overlay { position: absolute; inset: 0; pointer-events: none; }

.slide-badge-left {
  position: absolute;
  top: 12%; left: 7%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
  padding: 18px 28px;
  max-width: 340px;
  animation: fadeInLeft .9s ease both;
}
.slide-badge-left .badge-name {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.1;
}
.slide-badge-left .badge-tagline {
  font-size: .95rem;
  color: var(--gray-mid);
  font-weight: 500;
  margin-top: 4px;
}

.slide-badge-right {
  position: absolute;
  bottom: 14%; right: 7%;
  background: var(--red);
  padding: 16px 26px;
  max-width: 300px;
  animation: fadeInRight .9s .3s ease both;
}
.slide-badge-right p {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
}

/* Carousel controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--copper); border-color: var(--copper); }

.carousel-dots {
  position: absolute;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: var(--transition);
  padding: 0;
}
.carousel-dots button.active { background: var(--copper-light); transform: scale(1.4); }

/* ── CHINA SECTION (index) ────────────────────────────────── */
.china-section {
  padding: 60px 0;
  background: var(--cream);
}
.china-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.china-inner .china-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--gray-light);
}
.china-inner .china-img img,
.china-inner .china-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.img-placeholder {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--copper-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 3rem;
}

/* ── INNER PAGE HERO ──────────────────────────────────────── */
.page-hero {
  height: 340px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--copper-dark) 100%);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
}
.page-hero .breadcrumb {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  margin-top: 10px;
}
.page-hero .breadcrumb a { color: var(--copper-light); }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ── TEXT PAGE LAYOUT ─────────────────────────────────────── */
.text-page { padding: 70px 0; }
.text-page-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}
.text-page-grid.reverse { grid-template-columns: 420px 1fr; }
.text-page-grid.reverse .page-img { order: -1; }

.page-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: var(--gray-light);
}
.page-img img, .page-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}

.text-body p { color: var(--gray-mid); font-size: 1.05rem; margin-bottom: 1.2rem; line-height: 1.85; }
.text-body p:last-child { margin-bottom: 0; }

/* ── PRODUCTS ─────────────────────────────────────────────── */
.products-page { padding: 70px 0; }
.products-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--gray-light);
}
.tab-btn {
  padding: 12px 28px;
  background: none;
  color: var(--gray-mid);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active { color: var(--copper); border-bottom-color: var(--copper); }
.tab-btn:hover { color: var(--copper); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Accordion */
.product-category { margin-bottom: 28px; }
.category-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.category-header:hover { background: var(--navy-mid); }
.category-header .toggle-icon {
  font-size: 1.3rem;
  transition: transform var(--transition);
}
.category-header.open .toggle-icon { transform: rotate(45deg); }

.category-body { display: none; }
.category-body.open { display: block; }

.subcategory { margin: 0; border: 1px solid var(--gray-light); border-top: none; }
.sub-header {
  background: var(--cream);
  padding: 14px 22px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-light);
  transition: background var(--transition);
}
.sub-header:hover { background: #f0ede8; }
.sub-header .toggle-icon {
  font-size: 1.1rem;
  color: var(--copper);
  transition: transform var(--transition);
}
.sub-header.open .toggle-icon { transform: rotate(45deg); }

.sub-body {
  display: none;
  padding: 24px 22px;
  background: var(--white);
}
.sub-body.open { display: block; }

.sub-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.sub-img {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-light);
  box-shadow: var(--shadow-sm);
}
.sub-img img, .sub-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}

.sub-desc { color: var(--gray-mid); font-size: .95rem; margin-bottom: 16px; line-height: 1.75; }

/* Dimensions table */
.dim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  margin-top: 12px;
}
.dim-table th {
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dim-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray-mid);
}
.dim-table tr:hover td { background: var(--cream); }

/* Industrial products */
.industrial-intro {
  background: var(--cream);
  border-left: 4px solid var(--copper);
  padding: 24px 28px;
  margin-bottom: 32px;
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.8;
}

.industrial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.industrial-card {
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.industrial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.industrial-card-img {
  height: 200px;
  background: var(--gray-light);
  overflow: hidden;
}
.industrial-card-img img, .industrial-card-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.industrial-card-body { padding: 20px; }
.industrial-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.industrial-card-body p { font-size: .9rem; color: var(--gray-mid); }

/* ── DISTRIBUTION ─────────────────────────────────────────── */
.distribution-page { padding: 70px 0; }
.dist-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.dist-intro p { color: var(--gray-mid); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }

.map-container {
  position: relative;
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
  height: 520px;
  box-shadow: var(--shadow-lg);
}

.world-map {
  width: 100%; height: 100%;
  position: relative;
}
.world-map svg {
  width: 100%; height: 100%;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
}
.pin-dot {
  width: 16px; height: 16px;
  background: var(--copper-light);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(181,84,26,.4);
  animation: pulse 2s infinite;
  transition: transform var(--transition);
}
.map-pin:hover .pin-dot { transform: scale(1.4); background: var(--red); }

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--gray-dark);
  padding: 12px 16px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: .82rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border-top: 2px solid var(--copper);
  min-width: 180px;
  white-space: normal;
}
.map-pin:hover .pin-tooltip { opacity: 1; }
.pin-tooltip strong { display: block; font-size: .9rem; margin-bottom: 3px; color: var(--navy); }

.dist-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.dist-card {
  background: var(--cream);
  padding: 28px;
  border-radius: 4px;
  border-left: 4px solid var(--copper);
  transition: box-shadow var(--transition);
}
.dist-card:hover { box-shadow: var(--shadow-md); }
.dist-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.dist-card p { font-size: .92rem; color: var(--gray-mid); line-height: 1.7; }
.dist-flag { font-size: 1.8rem; margin-bottom: 10px; }

/* ── CERTIFICATIONS ───────────────────────────────────────── */
.certs-page { padding: 70px 0; }
.certs-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.certs-intro p { color: var(--gray-mid); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: center;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  max-width: 360px;
  width: 100%;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.cert-logo-wrap {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--cream);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: .08em;
  border: 3px solid var(--gray-light);
  overflow: hidden;
}
.cert-logo-wrap img { width: 80%; height: 80%; object-fit: contain; }
.cert-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.cert-card p { font-size: .9rem; color: var(--gray-mid); line-height: 1.7; margin-bottom: 20px; }
.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--copper);
  font-weight: 600;
  font-size: .88rem;
  transition: color var(--transition);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}
.cert-link:hover { color: var(--red); border-color: var(--red); }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-page { padding: 70px 0; }
.reps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.rep-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rep-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.rep-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-dark), var(--copper-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.rep-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
}
.rep-title {
  font-size: .84rem;
  color: var(--copper);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.4;
}
.rep-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--gray-mid);
  margin-top: 4px;
}
.rep-info .icon { font-size: 1rem; }
.rep-card .btn {
  margin-top: 12px;
  align-self: flex-start;
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--white);
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: scale(.9) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gray-light);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-mid);
  transition: var(--transition);
}
.modal-close:hover { background: var(--red); color: var(--white); }

.modal h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal .modal-to {
  font-size: .85rem;
  color: var(--gray-mid);
  margin-bottom: 24px;
}
.modal .modal-to strong { color: var(--copper); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-dark);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(181,84,26,.12);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  color: #2d7a4f;
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 28px 0;
  text-align: center;
  font-size: .84rem;
  line-height: 1.7;
}
#site-footer .footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}
#site-footer .footer-logo span { color: var(--copper-light); }

/* ── HISTORIA PAGE ────────────────────────────────────────── */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.history-text p { color: var(--gray-mid); font-size: 1.05rem; margin-bottom: 1.2rem; line-height: 1.85; }
.president-card {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.president-img {
  height: 320px;
  background: linear-gradient(135deg, var(--navy-mid), var(--copper-dark));
  overflow: hidden;
}
.president-img img { width: 100%; height: 100%; object-fit: cover; }
.president-info { padding: 24px; }
.president-info h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.president-info p { color: var(--copper); font-weight: 600; font-size: .9rem; }

/* ── TIMELINE (Historia) ──────────────────────────────────── */
.timeline {
  position: relative;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-light);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 46%;
  margin-bottom: 32px;
}
.timeline-item:nth-child(odd) { margin-left: 0; text-align: right; padding-right: 40px; }
.timeline-item:nth-child(even) { margin-left: 54%; text-align: left; padding-left: 40px; }
.timeline-dot {
  position: absolute;
  top: 8px;
  width: 14px; height: 14px;
  background: var(--copper);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--copper);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -47px; }
.timeline-item:nth-child(even) .timeline-dot { left: -47px; }
.timeline-year {
  font-size: .78rem;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.timeline-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 4px 0;
}
.timeline-desc { font-size: .9rem; color: var(--gray-mid); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(181,84,26,.4); }
  70%  { box-shadow: 0 0 0 12px rgba(181,84,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(181,84,26,0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .text-page-grid,
  .text-page-grid.reverse { grid-template-columns: 1fr; }
  .text-page-grid .page-img,
  .text-page-grid.reverse .page-img { order: 0; max-width: 480px; aspect-ratio: 16/9; }
  .history-grid { grid-template-columns: 1fr; }
  .sub-content { grid-template-columns: 160px 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .carousel-wrap { height: 72vw; min-height: 320px; }
  .slide-badge-left { max-width: 220px; padding: 12px 16px; }
  .slide-badge-left .badge-name { font-size: 1.3rem; }
  .slide-badge-right { max-width: 200px; padding: 10px 14px; }
  .slide-badge-right p { font-size: .88rem; }

  .china-inner { grid-template-columns: 1fr; }
  .sub-content { grid-template-columns: 1fr; }
  .sub-img { max-width: 280px; aspect-ratio: 16/9; }
  .timeline::before { left: 16px; }
  .timeline-item { width: 100%; margin-left: 0 !important; text-align: left !important; padding-left: 40px !important; padding-right: 0 !important; }
  .timeline-dot { left: 9px !important; right: auto !important; }
  .map-container { height: 360px; }
}

@media (max-width: 480px) {
  .btn { padding: 10px 18px; font-size: .82rem; }
  .modal { padding: 28px 20px; }
  .reps-grid { grid-template-columns: 1fr; }
}
