@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── Global Variables (Custom Palette) ── */
:root {
  --blue:       #003e4d;
  --blue-dark:  #002b36;
  --blue-light: #005a70;
  --green:      #06b0b8;
  --gold:       #02b1b9;
  --white:      #ffffff;
  --gray-f:     #f5f5f5;
  --gray-e:     #ebebeb;
  --gray-c:     #cccccc;
  --gray-6:     #666666;
  --gray-3:     #333333;
  --text:       #1a1a1a;
  --t: all .2s ease;
}

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

/* banrep uses 16px root — letras más grandes */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem; /* 16px */
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════════
   GLOBAL UI ELEMENTS
═══════════════════════════════════════════ */
.btn-pill {
  background: var(--blue);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  font-size: .85rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
}

/* Unified Interactive Button State */
.btn-pill:hover,
.top-bar-right a.btn-access:hover,
.mega-highlight a.mh-btn:hover,
.btn-white:hover,
.btn-outline-white:hover,
.btn-ver-afiliados:hover {
  background-color: var(--green) !important;
  color: var(--white) !important;
  border-color: var(--green) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(6, 176, 184, 0.4) !important;
  opacity: 1 !important;
}

/* Hover for naked text links like hero-read-more */
.hero-read-more:hover {
  color: var(--green) !important;
  transform: translateY(-2px);
  opacity: 1 !important;
}

/* Ensure transition is smooth on standard buttons */
.top-bar-right a.btn-access,
.mega-highlight a.mh-btn,
.btn-white,
.btn-outline-white,
.btn-ver-afiliados,
.hero-read-more {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ═══════════════════════════════════════════
   HEADER  — 3 rows, identical to banrep
═══════════════════════════════════════════ */
#site-header {
  position: fixed; top: 0; z-index: 1000; width: 100%; left: 0;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow 0.3s ease;
}

/* ── Sticky Scrolled State ── */
#site-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
#site-header.scrolled .top-bar { opacity: 0; height: 0; pointer-events: none; border: none; }
#site-header.scrolled .logo-row-inner { padding: 0.35rem 1.5rem; }
#site-header.scrolled .logo-img { max-height: 40px; }
#site-header.scrolled .nav-link { padding: 0.75rem 0.95rem; }

/* ── 1. Top utility bar ── */
.top-bar {
  background: var(--navy, #0b2343);
  transition: opacity 0.3s ease, height 0.3s ease;
  overflow: hidden;
}
.top-bar-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 28px;
}
.top-bar a {
  font-size: .625rem; /* 10px */
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 .55rem;
  display: inline-block;
  transition: color var(--t);
}
.top-bar a:hover { color: #ffffff; }
.top-bar-left  { display: flex; align-items: center; gap: .1rem; }

/* Ticker Styles */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 120px, black calc(100% - 120px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 120px, black calc(100% - 120px), transparent);
}
.ticker-content {
  display: flex;
  animation: ticker-slide 30s linear infinite;
}
.ticker-content:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ticker-val { color: var(--green); }
.ticker-val.down { color: #e11d48; }
.ticker-val.up { color: #10b981; }

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.top-bar-right { display: flex; align-items: center; gap: .1rem; }
.top-bar-right a.btn-access {
  background: rgba(255,255,255,.15); color: #fff;
  padding: .15rem .65rem; border-radius: 2px;
  font-size: .625rem; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.3);
}
.top-bar-right a.btn-access:hover { background: rgba(255,255,255,.25); }

/* ── 2. Logo row ── */
.logo-row {
  background: var(--white);
  border-bottom: 1px solid var(--gray-e);
}
.logo-row-inner {
  max-width: 1300px; margin: 0 auto; padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: padding 0.3s ease;
}
.logo-link { display: flex; align-items: center; }
.logo-img  { max-height: 70px; width: auto; display: block; transition: max-height 0.3s ease; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-text-wrap .logo-name {
  /* banrep: "Banco de la República" is ~34px bold */
  font-size: 2rem; /* 32px */
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.015em;
  line-height: 1.15;
}
.logo-text-wrap .logo-sep    { color: var(--blue-light); font-weight: 300; margin: 0 .25rem; }
.logo-text-wrap .logo-country { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.logo-text-wrap .logo-tagline {
  /* banrep: "Somos el banco central de Colombia" ~15px regular */
  font-size: .9375rem; /* 15px */
  color: var(--gray-6);
  margin-top: .15rem;
  font-weight: 400;
}

.search-form {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-c); border-radius: 3px;
  overflow: hidden; max-width: 320px; width: 100%;
}
.search-form input {
  padding: .55rem .85rem; border: none; outline: none;
  font-size: 1rem; font-family: inherit; width: 100%;
  color: var(--text);
}
.search-form button {
  padding: .55rem .85rem; background: var(--blue); color: var(--white);
  transition: background var(--t);
}
.search-form button:hover { background: var(--blue-light); }
.search-form button svg { width: 18px; height: 18px; display: block; }

/* ── 3. Nav row ── */
.nav-row { 
  background: var(--white); 
  border-top: 1px solid var(--gray-e);
}
.nav-row-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: stretch;
}
.nav-menu { display: flex; align-items: stretch; flex: 1; }
.nav-item  { position: static; display: flex; align-items: stretch; }

.nav-link {
  display: flex; align-items: center; gap: .35rem;
  padding: 1rem .95rem;
  font-size: .95rem; /* slightly adjusted for uppercase legibility */
  font-weight: 500;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.nav-link svg {
  width: 11px; height: 11px; flex-shrink: 0;
  transition: transform .2s;
  opacity: .5;
}
.nav-item:hover .nav-link,
.nav-item.active .nav-link {
  color: var(--blue); border-bottom-color: var(--blue);
}
.nav-item:hover .nav-link svg { transform: rotate(180deg); opacity: 1; }

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; padding: 1rem 1rem; margin-left: auto; cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-3); border-radius: 2px; transition: var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   MEGA MENU  — full viewport width, banrep exact
═══════════════════════════════════════════ */
.mega-menu {
  position: fixed;
  top: auto;
  left: 0; right: 0;
  background: var(--white);
  border-top: 4px solid var(--blue);
  box-shadow: 0 8px 28px rgba(0,0,0,.17);
  z-index: 2000;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav-item:hover .mega-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0);
  transition-delay: 200ms;
}

/* ═══════════════════════════════════════════
   SPLIT MEGA MENU (TABS PATTERN)
═══════════════════════════════════════════ */
.mega-inner.split-mega {
  max-width: 1200px;
  background: var(--white);
  border-radius: 0 0 4px 4px;
}
.mega-sidebar-tab {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-e);
  color: var(--gray-4);
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-sidebar-tab:last-child {
  border-bottom: none;
}
.mega-sidebar-tab:hover,
.mega-sidebar-tab.active {
  background: rgba(0, 169, 157, 0.08);
  color: var(--blue-dark);
  font-weight: 600;
  border-left: 3px solid var(--green);
  padding-left: calc(1.5rem - 3px);
}
.mega-sidebar-pane {
  display: none;
  animation: fadeInPane .2s ease;
}
.mega-sidebar-pane.active {
  display: block;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-inner {
  max-width: 1300px; margin: 0 auto; padding: 2rem 1.5rem;
  display: grid; gap: 0;
}
.mega-inner.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mega-inner.cols-2 { grid-template-columns: 2fr 1fr; }

.mega-col { padding: 0 1.75rem; }
.mega-col:first-child { padding-left: 0; }
.mega-col:not(:last-child) { border-right: 1px solid var(--gray-e); }

.mega-col-title {
  /* banrep: column titles ~12px uppercase, blue, bold underline */
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--blue);
  padding-bottom: .7rem; margin-bottom: .85rem;
  border-bottom: 2px solid var(--blue);
}
.mega-links { display: flex; flex-direction: column; }
.mega-link {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .55rem .4rem; border-radius: 3px;
  /* banrep mega menu links: 15px regular */
  font-size: .9375rem; /* 15px */
  font-weight: 400;
  color: var(--gray-3);
  transition: background var(--t), color var(--t);
  line-height: 1.4;
}
.mega-link:hover { background: rgba(0, 169, 157, 0.08); color: var(--blue-dark); }
.mega-link-arrow { flex-shrink: 0; font-size: .65rem; margin-top: .22rem; color: var(--blue-light); }
.mega-link-info { display: flex; flex-direction: column; }
.mega-link-info small {
  font-size: .8125rem; /* 13px */
  color: var(--gray-6); margin-top: .1rem;
}

/* Highlighted panel (right column in mega menu) */
.mega-highlight {
  background: var(--blue); border-radius: 4px;
  padding: 1.6rem; color: var(--white); height: 100%;
}
.mega-highlight .mh-tag {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.65); margin-bottom: .65rem;
  display: block;
}
.mega-highlight h4 {
  /* banrep highlight title: ~18-20px */
  font-size: 1.125rem; font-weight: 700; line-height: 1.35; margin-bottom: .8rem;
}
.mega-highlight p { font-size: .9375rem; opacity: .85; line-height: 1.65; }
.mega-highlight a.mh-btn {
  display: inline-block; margin-top: 1.1rem;
  background: rgba(255,255,255,.15); color: var(--white);
  padding: .45rem 1rem; border-radius: 3px;
  font-size: .875rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.3);
  transition: background var(--t);
}
.mega-highlight a.mh-btn:hover { background: rgba(255,255,255,.25); }

/* Highlight Carousel */
.mh-carousel-container { position: relative; height: 100%; width: 100%; display: flex; flex-direction: column; }
.mh-slide { display: none; animation: fadeInPane .4s ease forwards; flex: 1; }
.mh-slide.active { display: block; }
.mh-dots { display: flex; justify-content: center; gap: 10px; margin-top: auto; align-items: center; padding-top: 1rem; }
.mh-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s ease; }
.mh-dot.active { background: #fff; transform: scale(1.2); }

/* ═══════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════ */
.breadcrumb {
  background: var(--white); border-bottom: 1px solid var(--gray-e);
  padding: .5rem 0;
}
.breadcrumb-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  font-size: .875rem; color: var(--gray-6);
}
.breadcrumb-inner a { color: var(--blue); }
.breadcrumb-inner span { margin: 0 .4rem; }

/* ═══════════════════════════════════════════
   HERO  (banrep: image left ~64% + blue panel right ~36%)
═══════════════════════════════════════════ */
.hero-wrap { background: var(--gray-f); }
.hero-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px;
  min-height: 520px;
}
.hero-image-side { position: relative; overflow: hidden; background: #1a3a5c; }
.hero-image-side img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-placeholder {
  width: 100%; height: 100%; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #102b45 0%, #1e5080 50%, #0d3b2e 100%);
  font-size: 7rem; color: rgba(255,255,255,.25);
}
.hero-content-side {
  background: var(--blue); padding: 2.5rem 2.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  /* banrep: category label ~12px uppercase */
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.6);
  margin-bottom: .3rem;
}
.hero-date {
  /* banrep: date ~13-14px */
  font-size: .875rem; color: rgba(255,255,255,.5); margin-bottom: 1.25rem;
}
.hero-content-side h2 {
  /* banrep hero title: 24-28px */
  font-size: 1.625rem; /* 26px */
  font-weight: 700; color: var(--white);
  line-height: 1.3; margin-bottom: 1.25rem;
}
.hero-content-side p {
  /* banrep hero body: 16-17px */
  font-size: 1rem; color: rgba(255,255,255,.8);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.hero-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9375rem; font-weight: 600; color: var(--white);
  opacity: .85; transition: opacity var(--t);
}
.hero-read-more:hover { opacity: 1; }
.hero-dots { display: flex; align-items: center; gap: .55rem; margin-top: 2rem; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  transition: background var(--t), transform var(--t); padding: 0;
}
.hero-dot.active { background: var(--white); transform: scale(1.25); }
.hero-controls { display: flex; align-items: center; gap: .4rem; }
.hero-control-btn {
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); border-radius: 3px; transition: background var(--t);
}
.hero-control-btn:hover { background: rgba(255,255,255,.15); }
.hero-control-btn svg { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════
   QUICK ACCESS BAR
═══════════════════════════════════════════ */
.quick-access { background: var(--white); border-bottom: 1px solid var(--gray-e); }
.qa-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.qa-inner::-webkit-scrollbar { display: none; }
.qa-item {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.35rem 2rem; min-width: 120px;
  /* banrep quick links: 13-14px */
  font-size: .875rem; font-weight: 600; color: var(--gray-6);
  border-right: 1px solid var(--gray-e);
  text-align: center; cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.qa-item:hover { background: var(--gray-f); color: var(--blue); }
.qa-item svg { width: 30px; height: 30px; color: var(--blue); }

/* ═══════════════════════════════════════════
   COMMON SECTION STYLES
═══════════════════════════════════════════ */
.page-container { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap;
  padding-bottom: .8rem; border-bottom: 2px solid var(--blue);
}
.section-header h2 {
  /* banrep section titles: 24-28px bold */
  font-size: 1.625rem; /* 26px */
  font-weight: 700; color: var(--blue);
}
.section-header a { font-size: .9375rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.section-header a:hover { text-decoration: underline; }

/* ── Título de sección CENTRADO (estándar global) ── */
.section-title-centered {
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-title-centered h2 {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title-centered p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--gray-medium, #64748b);
  max-width: 620px;
  margin: 0.75rem auto 0;
  line-height: 1.65;
  font-weight: 400;
}
.section-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold); margin-bottom: .35rem; display: block;
}

/* ═══════════════════════════════════════════
   PUBLICATIONS GRID (banrep: dark blue bg, white text)
═══════════════════════════════════════════ */
.main-grid { background: var(--white); }

/* banrep publications use dark blue background section */
.pub-band {
  background: var(--blue-dark);
  padding: 3rem 0;
}
.pub-band .section-header h2 { color: var(--white); }
.pub-band .section-header { border-bottom-color: rgba(255,255,255,.3); }
.pub-band .section-header a { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-e);
  border-radius: 2px; overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.card-img { height: 175px; overflow: hidden; background: var(--gray-e); flex-shrink: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--blue); margin-bottom: .4rem;
}
.card-body h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  color: var(--text); margin-bottom: .45rem;
}
.card-body h3 a:hover { color: var(--blue); }
.card-date { font-size: .8125rem; color: var(--gray-6); margin-bottom: .55rem; }
.card-body p { font-size: .9375rem; color: var(--gray-6); flex: 1; line-height: 1.65; }
.card-footer { padding: .85rem 1.25rem; border-top: 1px solid var(--gray-e); }
.card-link { font-size: .875rem; font-weight: 600; color: var(--blue); }
.card-link:hover { text-decoration: underline; }

/* ── Press Release specific ── */
.carousel-controls { display: flex; gap: 0.5rem; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E2E8F0; background: white; color: var(--blue-dark); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.carousel-btn:hover { border-color: var(--blue-dark); transform: scale(1.05); box-shadow: 0 6px 12px -2px rgba(0,0,0,0.1); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 31%; 
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; 
  padding-bottom: 2rem; scrollbar-width: thin; scrollbar-color: var(--blue) rgba(0,0,0,0.05);
}
.carousel-track > .card { scroll-snap-align: start; }
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc(50% - 0.75rem); } }
@media (max-width: 600px) { .carousel-track { grid-auto-columns: 85%; } }

.press-card .card-img-wrap {
  width: 100%; height: 210px; overflow: hidden;
}
.press-card .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.press-card:hover .card-img-wrap img { transform: scale(1.06); }
.social-footer {
  display: flex !important; justify-content: space-between; align-items: center;
  background: #f9fafb !important; padding: 0.95rem 1.25rem !important;
}
.social-share { display: flex; gap: 0.45rem; align-items: center; }
.share-label { font-size: 0.75rem; color: var(--gray-6); font-weight: 600; text-transform: uppercase; margin-right: 0.1rem; letter-spacing: 0.5px; }
.share-btn {
  background: var(--white); border: 1px solid var(--gray-e);
  color: var(--gray-6); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s ease;
}
.share-btn:hover.facebook { background: #1877f2; border-color: #1877f2; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(24,119,242,.2); }
.share-btn:hover.twitter { background: #000; border-color: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.share-btn:hover.linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(10,102,194,.2); }

.like-btn {
  background: none; border: none; display: flex; align-items: center; gap: 0.4rem;
  color: var(--gray-6); font-weight: 600; font-size: 0.875rem;
  cursor: pointer; font-family: var(--font-primary);
}
.like-btn .heart-icon {
  color: var(--gray-c); transition: color 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.like-btn.liked { color: #e0245e; }
.like-btn.liked .heart-icon { color: #e0245e; transform: scale(1.2); }

/* Dark card variant (for pub-band) */
.card-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.card-dark .card-tag { color: rgba(255,255,255,.6); }
.card-dark .card-body h3 { color: var(--white); }
.card-dark .card-body h3 a:hover { color: rgba(255,255,255,.7); }
.card-dark .card-date { color: rgba(255,255,255,.45); }
.card-dark .card-body p { color: rgba(255,255,255,.7); }
.card-dark .card-footer { border-top-color: rgba(255,255,255,.12); }
.card-dark .card-link { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar { 
  background: linear-gradient(135deg, rgba(0, 43, 54, 0.96) 0%, rgba(0, 43, 54, 0.75) 100%), url('../img/stats-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white); 
  padding: 4.5rem 0; 
}
.stats-grid {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-block {
  padding: 1.75rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-block:last-child { border-right: none; }
.stat-num {
  font-size: 3.2rem; font-weight: 700; color: var(--white);
  display: block; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.stat-label {
  font-size: 0.9rem; color: var(--green); margin-top: 1rem; display: block; 
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   PUBLICATIONS / REPORTS LIST
═══════════════════════════════════════════ */
.pub-section { background: var(--gray-f); }
.report-list { display: flex; flex-direction: column; gap: .5rem; }
.report-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); padding: 1rem 1.25rem;
  border: 1px solid var(--gray-e); border-left: 4px solid var(--blue);
  transition: box-shadow var(--t);
}
.report-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.09); }
.report-icon {
  width: 44px; height: 44px; background: var(--blue);
  border-radius: 2px; display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: .95rem; flex-shrink: 0;
}
.report-info { flex: 1; }
.report-info .r-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.report-info .r-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-top: .15rem; }
.report-info .r-date { font-size: .8125rem; color: var(--gray-6); margin-top: .2rem; }
.report-dl { font-size: .875rem; font-weight: 600; color: var(--blue); flex-shrink: 0; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-e); margin-bottom: 1.75rem; flex-wrap: wrap; }
.tab-btn {
  padding: .65rem 1.25rem; font-size: .9375rem; font-weight: 600; color: var(--gray-6);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--t), border-color var(--t); cursor: pointer;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ═══════════════════════════════════════════
   NEWS  (banrep: list with thumbnail + text)
═══════════════════════════════════════════ */
.news-section { background: var(--white); }
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--gray-e); }
.news-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--gray-e);
  transition: background var(--t);
}
.news-item:hover { background: var(--gray-f); padding-left: .5rem; padding-right: .5rem; margin: 0 -.5rem; }
.news-item-img {
  width: 250px; align-self: stretch; flex-shrink: 0;
  overflow: hidden; background: var(--gray-e); border-radius: 4px;
}
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-placeholder {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; background: var(--gray-e);
}
.news-item-tag {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--blue);
}
.news-item-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text); margin: .25rem 0 .35rem; line-height: 1.4;
}
.news-item-title a:hover { color: var(--blue); }
.news-item-date { font-size: .8125rem; color: var(--gray-6); }
.news-item-desc { font-size: .9375rem; color: var(--gray-6); margin-top: 0.5rem; margin-bottom: 1rem; line-height: 1.5; }
/* ═══════════════════════════════════════════
   EVENTS
═══════════════════════════════════════════ */
.event-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--gray-e);
}
.event-date-box {
  width: 56px; flex-shrink: 0; text-align: center;
  background: var(--blue); color: var(--white); border-radius: 3px;
  padding: .45rem .3rem;
}
.event-date-box .edb-day { font-size: 1.625rem; font-weight: 700; line-height: 1; display: block; }
.event-date-box .edb-month { font-size: .6875rem; text-transform: uppercase; font-weight: 600; display: block; }
.event-type { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--gold); }
.event-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text); margin: .18rem 0 .22rem; line-height: 1.4;
}
.event-title a:hover { color: var(--blue); }
.event-location { font-size: .8125rem; color: var(--gray-6); }

/* ═══════════════════════════════════════════
   ABOUT / SOMOS CAMPETROL
═══════════════════════════════════════════ */
.about-section { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.about-img-wrap { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.13); }
.about-img-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #0a2840 0%, #1e5f8a 50%, #0f4425 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: white; gap: 1rem;
}
.about-img-placeholder span { font-size: 4.5rem; }
.about-img-placeholder p { font-size: 1rem; opacity: .7; text-align: center; padding: 0 2rem; }
.about-content h2 {
  font-size: 1.75rem; color: var(--blue);
  margin-bottom: .85rem; padding-bottom: .85rem;
  border-bottom: 2px solid var(--blue);
}
.about-content p { font-size: 1rem; line-height: 1.8; color: var(--gray-3); margin-bottom: 1.1rem; }
.about-feature-list { margin: 1.1rem 0 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.about-feature {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: 1rem; color: var(--gray-3);
}
.about-feature::before {
  content: '▶'; color: var(--blue); font-size: .6rem; margin-top: .3rem; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   BENEFITS
═══════════════════════════════════════════ */
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--gray-e); border: 1px solid var(--gray-e);
}
.benefit-item {
  background: var(--white); padding: 1.75rem;
  transition: background var(--t);
}
.benefit-item:hover { background: var(--gray-f); }
.benefit-icon { font-size: 2rem; margin-bottom: .85rem; }
.benefit-item h3 { font-size: 1.0625rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.benefit-item p { font-size: .9375rem; color: var(--gray-6); line-height: 1.65; }

/* ═══════════════════════════════════════════
   CTA
═══════════════════════════════════════════ */
.cta-section { 
  background: linear-gradient(135deg, rgba(0, 43, 54, 0.97) 0%, rgba(0, 43, 54, 0.75) 100%), url('../img/cta-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4.5rem 0; 
}
.cta-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-text h2 { font-size: 1.875rem; color: var(--white); margin-bottom: .6rem; }
.cta-text p { font-size: 1rem; color: rgba(255,255,255,.8); max-width: 540px; }
.cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
.btn-white {
  background: var(--white); color: var(--blue);
  padding: .75rem 1.5rem; border-radius: 3px;
  font-size: 1rem; font-weight: 700; transition: var(--t);
}
.btn-white:hover { background: var(--gray-f); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.5); color: var(--white);
  padding: .7rem 1.5rem; border-radius: 3px;
  font-size: 1rem; font-weight: 700; transition: var(--t);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter-section {
  background: var(--gray-f);
  border-top: 1px solid var(--gray-e); border-bottom: 1px solid var(--gray-e);
  padding: 2.25rem 0;
}
.nl-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.nl-text h3 { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.nl-text p { font-size: .9375rem; color: var(--gray-6); margin-top: .25rem; }
.nl-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl-form input {
  padding: .65rem 1rem; border: 1.5px solid var(--gray-c); border-radius: 3px;
  font-size: 1rem; font-family: inherit; min-width: 280px; outline: none;
}
.nl-form input:focus { border-color: var(--blue); }
.nl-form button {
  background: var(--blue); color: var(--white); padding: .65rem 1.4rem;
  border-radius: 3px; font-size: 1rem; font-weight: 600;
  transition: background var(--t);
}
.nl-form button:hover { background: var(--blue-light); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer { background: var(--navy, #0b2343); color: rgba(255,255,255,.8); }
.footer-main { padding: 3.5rem 0 2.5rem; }
.footer-grid {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
}
.ft-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.ft-logo-emblem {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; color: white; font-size: 1.2rem; font-weight: 900;
}
.ft-logo-name { font-size: 1.125rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.ft-logo-name small { display: block; font-size: .75rem; font-weight: 400; opacity: .65; }
.ft-desc { font-size: .9375rem; line-height: 1.8; opacity: .7; margin-bottom: 1.1rem; }
.ft-social { display: flex; gap: .5rem; }
.ft-social a {
  width: 34px; height: 34px; background: rgba(255,255,255,.1);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.7);
  transition: background var(--t), color var(--t);
}
.ft-social a:hover { background: var(--blue); color: var(--white); }

.ft-col-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: 1.1rem;
}
.ft-links { display: flex; flex-direction: column; gap: .55rem; }
.ft-links a { font-size: .9375rem; opacity: .7; transition: opacity var(--t); }
.ft-links a:hover { opacity: 1; color: var(--white); }
.ft-contact-line { display: flex; align-items: flex-start; gap: .5rem; font-size: .9375rem; opacity: .7; margin-bottom: .55rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; }
.footer-bottom-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: .8125rem; opacity: .55;
}

/* ═══════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════ */
/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1499;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }

/* ── Mobile Nav Drawer ── */
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 1500;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
}
.mobile-nav-drawer.open { transform: translateX(0); }

/* ── Drawer Header ── */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: var(--blue-dark);
  flex-shrink: 0;
}
.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mobile-nav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.mobile-nav-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.mobile-nav-logo-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-nav-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mobile-nav-close-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Nav Items ── */
.mobile-nav-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }

.mobile-nav-item { border-bottom: 1px solid #f1f5f9; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.mobile-nav-link:hover { background: #f8fafc; color: var(--blue); }
.mobile-nav-link svg {
  width: 14px; height: 14px;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.2s;
  flex-shrink: 0;
}
.mobile-nav-item.open > .mobile-nav-link {
  color: var(--blue);
  background: #f0f9ff;
}
.mobile-nav-item.open > .mobile-nav-link svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Sub-menu accordion ── */
.mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8fafc;
}
.mobile-nav-item.open .mobile-sub { max-height: 400px; }

.mobile-sub a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.75rem 2rem;
  font-size: 0.9375rem;
  color: #475569;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.15s, background 0.15s;
}
.mobile-sub a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  opacity: 0.7;
}
.mobile-sub a:last-child { border-bottom: none; }
.mobile-sub a:hover { color: var(--blue); background: #e8f4ff; }

/* ── Direct links (no sub) ── */
a.mobile-nav-link {
  display: flex;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
a.mobile-nav-link:hover { background: #f8fafc; color: var(--blue); }

/* ── Drawer Footer CTA ── */
.mobile-nav-footer {
  padding: 1.25rem;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #f8fafc;
}
.mobile-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green);
  color: white;
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.mobile-cta-btn:hover { background: #009e93; transform: translateY(-1px); }

/* ── Ocultar el botón close viejo ── */
.mobile-nav-close { display: none; }

/* ═══════════════════════════════════════════
   ANIMATIONS & SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 380px; }
  .mega-inner.cols-3 { grid-template-columns: 1fr 1fr; }
  .mega-inner.cols-3 .mega-col:last-child { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .logo-text-wrap .logo-name { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .nav-menu  { display: none; }
  .hamburger { display: flex; }
  /* Ticker: visible en mobile, compacto */
  .top-bar-left { display: flex; flex: 1; overflow: hidden; }
  .top-bar-inner { padding: 0.4rem 1rem; gap: 0.5rem; }
  .ticker-content { font-size: 0.65rem !important; }
  .ticker-item { gap: 0.3rem !important; padding: 0 0.6rem !important; }
  .ticker-val { font-size: 0.65rem !important; }
  .ticker-credits { display: none; } /* ocultar créditos para dar espacio */
  .mega-menu { display: none; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .cta-inner  { flex-direction: column; }
  .nl-inner   { flex-direction: column; align-items: flex-start; }
  .nl-form input { min-width: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   AFILIADOS / LOGOS SECTION
═══════════════════════════════════════════ */
.afiliados-section {
  background: var(--white);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--gray-e);
}

/* Header: left title block (dark blue bg) + right description */
.afiliados-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

.afiliados-title-block {
  background: var(--blue-dark);
  padding: 1.5rem 2rem;
  border-radius: 2px;
  flex-shrink: 0;
  max-width: 360px;
}

.afiliados-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.afiliados-desc {
  font-size: 1rem;
  color: var(--gray-3);
  line-height: 1.8;
  max-width: 600px;
}

/* 6-col logo grid */
.afiliados-logos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--gray-e);
  margin-bottom: 2.25rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--gray-e);
  border-bottom: 1px solid var(--gray-e);
  min-height: 88px;
  transition: background var(--t);
  cursor: pointer;
}
.logo-item:hover { background: var(--gray-f); }
.logo-item:nth-child(7n) { border-right: none; }
.logo-item:nth-last-child(-n+7):nth-child(7n+1),
.logo-item:nth-last-child(-n+7) { border-bottom: none; }

.logo-text-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: #444;
  gap: .1rem;
  line-height: 1.2;
  transition: color var(--t);
}
.logo-text-brand small {
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--gray-6);
  text-transform: uppercase;
}
.logo-item:hover .logo-text-brand { color: var(--blue); }

.logo-eneroil { color: #c00; }
.logo-fepco   { color: #004a99; }
.logo-atina   { color: #0077b6; }
.logo-copower { color: #e8891a; }
.logo-bop     { color: #005db2; }
.logo-ghenova { color: #003875; }

/* CTA — outlined pill button */
.afiliados-cta {
  display: flex;
  justify-content: center;
}

.btn-ver-afiliados {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: .7rem 2.75rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--t), color var(--t);
  background: transparent;
}
.btn-ver-afiliados:hover {
  background: var(--blue);
  color: var(--white);
}

/* Responsive for afiliados */
@media (max-width: 1024px) {
  .afiliados-logos { grid-template-columns: repeat(5, 1fr); }
  .logo-item:nth-child(7n) { border-right: 1px solid var(--gray-e); }
  .logo-item:nth-child(5n) { border-right: none; }
}
@media (max-width: 768px) {
  .afiliados-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .afiliados-title-block { max-width: 100%; }
  .afiliados-logos { grid-template-columns: repeat(3, 1fr); }
  .logo-item:nth-child(5n) { border-right: 1px solid var(--gray-e); }
  .logo-item:nth-child(3n) { border-right: none; }
}
@media (max-width: 480px) {
  .afiliados-logos { grid-template-columns: repeat(2, 1fr); }
  .afiliados-title { font-size: 1.5rem; }
  .logo-item:nth-child(3n) { border-right: 1px solid var(--gray-e); }
  .logo-item:nth-child(2n) { border-right: none; }
}

/* ═══════════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════════ */
.video-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
}
.video-modal-content {
  position: relative; width: 90%; max-width: 900px;
  background: #000; border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: scale(0.95); transition: transform 0.3s;
}
.video-modal.active .video-modal-content { transform: scale(1); }
.video-modal-close {
  position: absolute; top: -40px; right: 0; font-size: 2rem; color: #fff;
  background: none; border: none; cursor: pointer; line-height: 1;
  transition: color 0.3s;
}
.video-modal-close:hover { color: var(--green); }
.video-container {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
.video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
@media (max-width: 768px) {
  .video-modal-close { top: -35px; right: 10px; }
}

/* ═══════════════════════════════════════════
   APP SECTION REDESIGN
═══════════════════════════════════════════ */
.app-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.app-feature-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--gray-e);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.app-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.05);
  border-color: var(--blue-light);
}
.app-feature-icon {
  font-size: 1.5rem;
  background: var(--gray-f);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.app-feature-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-3);
  line-height: 1.3;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #111;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.btn-store:hover {
  background: black;
  transform: scale(1.02);
}
.btn-store svg {
  fill: currentColor;
}
.app-mockup-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}
.app-mockup-3d {
  position: relative;
  border-radius: 36px;
  transform: rotateY(-12deg) rotateX(4deg);
  box-shadow: -20px 30px 40px rgba(0,0,0,0.15), inset 0 0 0 8px #111;
  background: #111;
  overflow: hidden;
  transition: transform 0.5s ease;
  max-width: 250px;
}
.app-mockup-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
  box-shadow: 0 30px 40px rgba(0,0,0,0.15), inset 0 0 0 8px #111;
}
.app-mockup-3d img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}
.app-mockup-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 20px;
  background: #111;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
@media (max-width: 768px) {
  .app-feature-grid { grid-template-columns: 1fr; }
  .app-mockup-wrapper { margin-top: 2rem; perspective: none; }
  .app-mockup-3d { transform: none; box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 0 0 8px #111; }
}

/* Nuevas animaciones de reveal extendidas */
.reveal-scale { opacity: 0; transform: scale(0.93); transition: opacity .65s cubic-bezier(0.2, 0.8, 0.2, 1), transform .65s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .65s cubic-bezier(0.2, 0.8, 0.2, 1), transform .65s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .65s cubic-bezier(0.2, 0.8, 0.2, 1), transform .65s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════
   PULSE JUMP ANIMATION
═══════════════════════════════════════════ */
@keyframes pulseJump {
  0% { transform: translateY(0); }
  10% { transform: translateY(-6px); }
  20% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
  40% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

.attention-pulse {
  animation: pulseJump 3s infinite ease-in-out;
}
.attention-pulse:hover {
  animation: none;
  transform: scale(1.05);
  background: var(--green) !important;
  color: white !important;
}

/* ═══════════════════════════════════════════
   GREEN PILL BADGE / BUTTON
═══════════════════════════════════════════ */
.btn-green-pill {
  color: var(--green) !important;
  background: rgba(0, 169, 157, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(0, 169, 157, 0.2);
  text-decoration: none !important;
  transition: all 0.3s ease;
}
.btn-green-pill:hover {
  background: var(--green);
  color: white !important;
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE COMPLETO — Mobile First
   Todos los breakpoints: 900px | 768px | 480px | 390px
   IMPORTANTE: No afecta estilos desktop (> 900px)
═══════════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .section-title-centered h2 { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  div[style*="grid-template-columns:1fr 340px"] { display: block !important; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {

  /* Espaciado global */
  .section { padding: 2.25rem 0; }
  .page-container { padding: 0 1rem; }

  /* Header */
  .logo-row-inner { padding: 0.6rem 1rem; }
  .logo-img { max-height: 52px; }
  .logo-text-wrap .logo-name { font-size: 1.1rem; }
  .logo-text-wrap .logo-tagline { font-size: 0.72rem; }
  .search-form { display: none; }

  /* Quick access */
  .qa-item { padding: 0.9rem 1rem; min-width: 88px; font-size: 0.75rem; }
  .qa-item svg { width: 22px; height: 22px; }

  /* ── BANNER / HERO ── */
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image-side {
    min-height: 240px;
    height: 240px;
    overflow: hidden;
  }
  /* Sobreescribe el min-height del placeholder interno */
  .hero-image-placeholder {
    min-height: 240px !important;
    height: 240px;
    background-size: cover !important;
    background-position: center !important;
  }
  .hero-content-side {
    padding: 1.5rem 1.25rem 1.75rem;
    min-height: auto;
  }
  .hero-tag { font-size: 0.65rem; letter-spacing: 0.1em; }
  .hero-date { font-size: 0.8rem; margin-bottom: 0.75rem; }
  .hero-content-side h2,
  #hero-title { font-size: 1.2rem !important; line-height: 1.35 !important; margin-bottom: 0.75rem; }
  #hero-desc { font-size: 0.9rem; line-height: 1.55; margin-bottom: 1rem; }
  /* Dots y controles en una fila compacta */
  .hero-dots { gap: 0.4rem; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-control-btn { width: 26px; height: 26px; }

  /* Titles */
  .section-title-centered h2 { font-size: 2rem; letter-spacing: -0.02em; }
  .section-title-centered p { font-size: 0.95rem; }
  h2[style*="3.5rem"] { font-size: 2rem !important; }
  h2[style*="2.8rem"] { font-size: 1.85rem !important; }

  /* Categorías */
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
  .cat-card { height: 155px !important; }
  .cat-card-name { font-size: 0.78rem !important; }

  /* Stats */
  .stats-bar {
    background-attachment: scroll !important; /* Fix parallax en iOS/mobile */
    padding: 2.5rem 0 !important;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 2.4rem; }
  .stat-block { padding: 1.25rem 1rem; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-block:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1) !important; }
  .stat-block:nth-child(3), .stat-block:nth-child(4) { border-bottom: none; }
  /* Forzar visibilidad si reveal no dispara */
  .stats-bar .reveal { opacity: 1 !important; transform: none !important; }

  /* Carruseles */
  .carousel-track { grid-auto-columns: 80%; }
  #press-track { grid-auto-columns: 85%; }

  /* Noticias */
  .news-item { flex-direction: column; }
  .news-item-img { width: 100%; height: 175px; border-radius: 6px; }

  /* Beneficios */
  .benefit-grid { grid-template-columns: 1fr !important; }

  /* CTA */
  .cta-text h2 { font-size: 1.4rem; }
  .cta-btns { flex-direction: column; width: 100%; }
  .btn-white, .btn-outline-white { text-align: center; }

  /* About */
  .about-content h2 { font-size: 1.6rem !important; }

  /* App */
  .app-mockup-wrapper { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .nl-form { flex-direction: column; }
  .nl-form input { min-width: auto; width: 100%; }
  .nl-form button { width: 100%; }

  /* Social share cards */
  .social-footer { flex-direction: column; gap: 0.75rem; align-items: flex-start !important; }

  /* ── SOMOS CAMPETROL ── */
  .somos-grid {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
    gap: 2rem !important;
    border-radius: 16px !important;
  }
  .somos-content-area {
    position: static !important;
    min-height: auto !important;
    display: block !important;
  }
  .somos-pane {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    display: none;
  }
  .somos-pane.active { display: block !important; }
  .somos-pane h3 { font-size: 1.8rem !important; line-height: 1.2 !important; letter-spacing: -0.5px !important; }
  #somos-tabs-container { gap: 0.6rem !important; }
  #somos-tabs-container button { padding: 0.6rem 1rem !important; font-size: 0.85rem !important; }
  .somos-video-right { order: 2; }
  .somos-content-area { order: 1; }

  /* ── DIRECTORIO INTERACTIVO (Red B2B) ── */
  .network-container {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
    gap: 2rem !important;
    border-radius: 20px !important;
  }
  /* h2 inline 3.2rem → reducir */
  .network-container h2 { font-size: 2rem !important; letter-spacing: -0.5px !important; }
  /* Pills de features: stack vertical */
  .network-container div[style*="display: flex; gap: 1rem; margin-bottom"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  /* Imagen de directorio más baja */
  .network-container img[alt="Directorio B2B"] { height: 200px !important; }
  /* Columna derecha (imagen+texto) */
  .network-container .reveal-right { padding: 1rem !important; border-radius: 16px !important; }

  /* ── APP SECTION ── */
  #app > .page-container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  #app h2 { font-size: 2rem !important; }
  #app .app-feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE PEQUEÑO (≤ 480px) ── */
@media (max-width: 480px) {
  .section-title-centered h2 { font-size: 1.75rem; }
  .stat-num { font-size: 2rem; }

  /* Categorías: 1 columna */
  .cat-grid { grid-template-columns: 1fr !important; gap: 0.6rem !important; }
  .cat-card { height: 140px !important; }

  /* Hero */
  .hero-image-side { min-height: 170px; }
  .logo-img { max-height: 44px; }
  .logo-text-wrap { display: none; }

  /* Stats: 2 col pero compactas */
  .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

  /* Carruseles */
  #press-track { grid-auto-columns: 92%; }
  .carousel-track { grid-auto-columns: 90%; }
  .press-card .card-img-wrap { height: 155px; }

  /* CTA */
  .cta-text h2 { font-size: 1.2rem; }
  .cta-text p { font-size: 0.88rem; }

  /* Footer */
  .ft-desc { font-size: 0.875rem; }
}

/* ── MÓVIL MUY PEQUEÑO — iPhone SE, Galaxy S (≤ 390px) ── */
@media (max-width: 390px) {
  .section-title-centered h2 { font-size: 1.5rem; }
  .hero-content-side h2, #hero-title { font-size: 1.1rem !important; }
  .qa-item { min-width: 72px; padding: 0.7rem; font-size: 0.68rem; }
  .cat-card { height: 120px !important; }
  .cat-card-name { font-size: 0.7rem !important; }
  .stat-num { font-size: 1.75rem; }
  .stat-label { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════
   DIRECTORIO — CATEGORY GRID (Premium)
═══════════════════════════════════════════ */
.dir-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.dir-cat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #003e4d, #06b0b8);
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.6rem;
  transition: all 0.3s ease;
  text-align: center;
  overflow: hidden;
  min-height: 100px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Sin imágenes externas — fondo corporativo uniforme */

/* Overlay claro en reposo — deja ver la imagen pero el texto es legible */
.dir-cat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(235, 242, 250, 0.80);
  border-radius: 10px;
  transition: background 0.3s ease;
  z-index: 0;
}

/* Ícono badge circular resaltado (i = FA, img = PNG propio) */
.dir-cat-item i,
.dir-cat-item > img {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  color: #fff;
  background: var(--blue);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 62, 77, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 3px;
  object-fit: contain;
}

.dir-cat-item span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* === Hover: overlay oscuro, texto blanco, ícono teal === */
.dir-cat-item:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 62, 77, 0.25);
  color: #fff;
}

.dir-cat-item:hover::before {
  background: rgba(0, 43, 54, 0.68);
}

.dir-cat-item:hover i,
.dir-cat-item:hover > img {
  background: var(--green);
  box-shadow: 0 4px 16px rgba(6, 176, 184, 0.55);
  transform: scale(1.15);
}

.dir-cat-item:hover span {
  color: #ffffff;
}

/* ═══════════════════════════════════════════
   HERO BANNER — Estándar global (todas las páginas)
═══════════════════════════════════════════ */

/* Estructura base */
.mag-hero {
  background: var(--blue-dark, #0B1829) !important;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  margin-top: 0;
}
.mag-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

/* Eyebrow (etiqueta sobre el título) */
.mag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #00A99D;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.mag-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #00A99D;
}

/* Título principal — centrado, Playfair Display */
.mag-hero-title {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  font-weight: 800 !important;
  color: white !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
  text-align: center !important;
  max-width: 900px;
  width: 100%;
}

/* Subtítulo — izquierda, sin justificar */
.mag-hero-sub {
  font-size: 1.1rem !important;
  color: rgba(255,255,255,0.78) !important;
  max-width: 640px !important;
  line-height: 1.8 !important;
  font-weight: 300 !important;
  text-align: left !important;
}

/* Contenedor de botones */
.mag-ctas {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Botón primario (fondo sólido azul → hover teal) */
.mag-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--blue, #003e4d);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mag-btn-primary:hover {
  background: var(--green, #06b0b8) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(6,176,184,0.4) !important;
}

/* Botón outline (borde blanco → hover teal) */
.mag-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mag-btn-outline:hover {
  background: var(--green, #06b0b8) !important;
  color: white !important;
  border-color: var(--green, #06b0b8) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(6,176,184,0.4) !important;
}

/* Botón ghost (solo texto dorado) */
.mag-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #C9A84C;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.mag-btn-ghost:hover { color: #e0bf70; }

/* Stats bajo el hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  justify-content: center;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; align-items: center; }
.hero-stat strong {
  font-size: 1.8rem; font-weight: 800;
  color: #00A99D; line-height: 1;
}
.hero-stat span {
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .mag-hero-inner { padding: 3.5rem 1.5rem; }
  .mag-ctas { justify-content: flex-start; }
  .mag-hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem) !important; }
}
