:root {
  --brand-copper: #BF5E1F;
  --brand-copper-dark: #9B4913;
  --brand-copper-light: #FFBC7D;
  --brand-copper-soft: #FDF6F0;
  --brand-navy: #061848;
  --brand-navy-mid: #102A6B;
  --brand-blue: #2F5AAE;
  --brand-crimson: #A4423A;
  --brand-whatsapp: #25D366;
  --brand-whatsapp-dark: #1EA952;
  --bg-body: #FAFBFD;
  --bg-surface: #FFFFFF;
  --bg-muted: #F4F5F7;
  --text-main: #272626;
  --text-heading: #061848;
  --text-muted: #5A6270;
  --border-subtle: rgba(6, 24, 72, 0.10);
  --border-copper: rgba(191, 94, 31, 0.28);
  --shadow-sm: 0 4px 16px rgba(6, 24, 72, 0.06);
  --shadow-md: 0 14px 34px rgba(6, 24, 72, 0.10);
  --shadow-lg: 0 24px 56px rgba(6, 24, 72, 0.16);
  --shadow-copper: 0 12px 28px rgba(191, 94, 31, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Roboto Slab", Georgia, serif;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-copper);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

a:hover {
  color: var(--brand-navy);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-copper), var(--brand-copper-light), var(--brand-navy));
  width: 0%;
  z-index: 2000;
  transition: width 0.1s linear;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 3000;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Top Institutional Bar */
.top-bar {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-copper);
}
.top-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a {
  color: var(--brand-copper-light);
  font-weight: 500;
}
.top-bar a:hover {
  color: #fff;
}
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brand-navy);
}
.brand-logo img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-copper);
  background: #fff;
  padding: 2px;
  transition: transform var(--transition);
}
.brand-logo:hover img {
  transform: scale(1.05);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
}
.brand-subtitle {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-copper);
  font-weight: 700;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-navy);
  border-radius: 8px;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--brand-copper);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--brand-copper);
  background: var(--brand-copper-soft);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 310px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-copper);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1100;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.dropdown-menu li a:hover {
  background: var(--brand-copper-soft);
  color: var(--brand-copper);
  padding-left: 18px;
}
.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 8px;
}

/* Header CTA Button */
.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #39B14A;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(57, 177, 74, 0.28);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-header-wa:hover {
  background: #2E963D;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(57, 177, 74, 0.38);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: var(--brand-copper-soft);
  border: 1px solid var(--border-copper);
  color: var(--brand-navy);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Container & Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 84px 0;
  position: relative;
}
.section-muted {
  background: var(--bg-muted);
}
.section-warm {
  background: linear-gradient(180deg, #FDF7F2 0%, #FFFFFF 100%);
}
.section-navy {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-mid) 100%);
  color: #fff;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(191, 94, 31, 0.12);
  color: var(--brand-copper);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(191, 94, 31, 0.24);
}
.section-navy .eyebrow {
  background: rgba(255, 188, 125, 0.16);
  color: var(--brand-copper-light);
  border-color: rgba(255, 188, 125, 0.35);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  color: var(--text-heading);
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 16px;
}
.section-navy .section-title {
  color: #fff;
}
.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
}
.section-navy .section-desc {
  color: rgba(255, 255, 255, 0.84);
}

/* Hero Section (Home & Subpages) */
.hero-home {
  position: relative;
  padding: 76px 0 88px;
  background: radial-gradient(circle at 85% 20%, rgba(255, 188, 125, 0.26) 0%, rgba(253, 246, 240, 0.6) 45%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-home::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 94, 31, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  color: var(--brand-navy);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-title span {
  color: var(--brand-copper);
}
.hero-lead {
  font-size: 1.14rem;
  color: var(--text-main);
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-copper) 0%, var(--brand-copper-dark) 100%);
  color: #fff !important;
  box-shadow: var(--shadow-copper);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(191, 94, 31, 0.35);
}
.btn-secondary {
  background: #fff;
  color: var(--brand-navy) !important;
  border: 2px solid var(--brand-navy);
}
.btn-secondary:hover {
  background: var(--brand-navy);
  color: #fff !important;
  transform: translateY(-3px);
}
.btn-whatsapp {
  background: #39B14A;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(57, 177, 74, 0.28);
}
.btn-whatsapp:hover {
  background: #2E963D;
  transform: translateY(-3px);
}

/* Hero Featured Card */
.hero-visual {
  position: relative;
}
.hero-featured-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  background: #fff;
}
.hero-featured-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.hero-featured-frame:hover img {
  transform: scale(1.03);
}
.hero-logo-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-copper);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
}
.hero-logo-badge img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  flex-shrink: 0;
}
.hero-logo-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--brand-navy);
  line-height: 1.25;
}
.hero-logo-badge span {
  font-size: 0.76rem;
  color: var(--brand-copper);
  font-weight: 600;
}

/* Page Hero for Subpages (with Featured Image) */
.page-hero {
  background: linear-gradient(135deg, #061848 0%, #102A6B 60%, #4A2511 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--brand-copper);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
  list-style: none;
}
.breadcrumb a {
  color: var(--brand-copper-light);
  font-weight: 600;
}
.breadcrumb a:hover {
  color: #fff;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.page-hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}
.page-featured-figure {
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--brand-copper-light);
}
.page-featured-figure img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #FDF8F4;
}
.page-featured-figure.cover img {
  object-fit: cover;
}
.page-featured-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 8px;
  font-weight: 600;
}

/* Pillars / Objeto Social Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.pillar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-copper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-copper);
}
.pillar-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-copper-soft);
  color: var(--brand-copper);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--border-copper);
}
.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brand-navy);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-copper);
}

/* Comisiones Grid */
.comisiones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.comision-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.comision-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-copper);
}
.comision-thumb {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #FDF6F0, #F3E5D8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comision-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.comision-thumb.contain img {
  object-fit: contain;
  padding: 16px;
}
.comision-card:hover .comision-thumb img {
  transform: scale(1.06);
}
.comision-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 24, 72, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}
.comision-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.comision-body h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  color: var(--brand-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.comision-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.comision-meta {
  font-size: 0.84rem;
  color: var(--brand-navy);
  background: var(--bg-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border-left: 3px solid var(--brand-copper);
}
.comision-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: var(--brand-copper-soft);
  color: var(--brand-copper);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-copper);
  transition: background var(--transition), color var(--transition);
}
.comision-card:hover .comision-cta {
  background: var(--brand-copper);
  color: #fff;
}

/* Content Cards & Info Blocks */
.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: center;
}
.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.content-card h2, .content-card h3 {
  font-family: var(--font-serif);
  color: var(--brand-navy);
  margin-bottom: 14px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.stat-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border: 1px solid var(--border-copper);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-copper);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--brand-navy);
  font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
  background: #fff;
  aspect-ratio: 3 / 2;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
}

/* Quote Block */
.institutional-quote {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #16337E 100%);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--brand-copper);
  box-shadow: var(--shadow-md);
  margin: 36px 0;
  position: relative;
}
.institutional-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 14px;
}
.institutional-quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--brand-copper-light);
  font-size: 0.95rem;
}

/* Member List & Directory */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.member-item {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-copper);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-copper-soft);
  color: var(--brand-copper);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-info strong {
  display: block;
  color: var(--brand-navy);
  font-size: 0.95rem;
}
.member-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Internal Navigation / Cross-links Strip */
.cross-nav-section {
  background: linear-gradient(180deg, #F4F5F7 0%, #FDF6F0 100%);
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}
.cross-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.cross-nav-link {
  background: #fff;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.cross-nav-link:hover,
.cross-nav-link.current {
  border-color: var(--brand-copper);
  background: var(--brand-copper);
  color: #fff;
  transform: translateY(-4px);
}

/* Footer */
.site-footer {
  background: #061848;
  color: rgba(255, 255, 255, 0.86);
  padding: 72px 0 32px;
  border-top: 5px solid var(--brand-copper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  background: #fff;
  padding: 4px;
  margin-bottom: 16px;
}
.footer-brand h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--brand-copper-light);
  font-size: 1.02rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover {
  color: var(--brand-copper-light);
  padding-left: 5px;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a {
  color: var(--brand-copper-light);
  font-weight: 700;
}

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.wa-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Entry & Scroll Reveal Animations */
@keyframes heroEntryUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-entry {
  animation: heroEntryUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.reveal-left {
  transform: translateX(-32px);
}
.reveal.reveal-right {
  transform: translateX(32px);
}
.reveal.reveal-scale {
  transform: scale(0.95);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-entry, .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .content-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-logo-badge {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-copper);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.28s ease;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--brand-copper);
    margin-left: 14px;
    padding: 4px 0 4px 10px;
  }
  .btn-header-wa {
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }
  .comisiones-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 14px;
    border-radius: 50%;
  }
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES AVANZADAS (Header, Top-Bar, Hero y Botones)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Ocultar la barra superior en móviles para despejar la pantalla */
  .top-bar {
    display: none !important;
  }

  /* 2. Reducir padding de cabecera y optimizar logo */
  .header-inner {
    padding: 8px 16px;
  }
  .brand-logo img {
    width: 48px;
    height: 48px;
  }
  .brand-title {
    font-size: 0.98rem;
    line-height: 1.15;
  }
  .brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  /* 3. Hero y espaciados móviles */
  .hero-home {
    padding: 40px 0 52px;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* 4. Subpáginas Hero */
  .page-hero {
    padding: 36px 0 44px;
  }
  .page-hero h1 {
    font-size: 1.65rem;
    line-height: 1.22;
    margin-bottom: 12px;
  }
  .page-hero-lead {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 12px;
    gap: 6px;
  }

  /* 5. Botones de acción en subpáginas (teléfono, email, whatsapp) */
  .page-hero .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.92rem;
    padding: 12px 18px;
    white-space: normal;
    word-break: break-word;
  }
  .page-hero div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 6. Imagen destacada en subpáginas */
  .page-featured-figure {
    margin-top: 24px;
    padding: 6px;
  }
  .page-featured-figure img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
  }

  /* 7. Contenedores y secciones */
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .content-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .pillar-card {
    padding: 20px 16px;
  }
  .comision-body {
    padding: 20px 18px;
  }
  .comision-thumb {
    height: 190px;
  }

  /* 8. Botón flotante WhatsApp en móvil */
  .wa-float {
    bottom: 18px;
    right: 18px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .wa-float span {
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 0.9rem;
  }
  .brand-subtitle {
    display: none;
  }
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 14px;
    border-radius: 50%;
  }
}
