/* ================================================
   SERCOM — Modern Industrial Website
   style.css  v2 — Light Design System
   ================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-dark:    #004050;
  --brand-teal:    #006080;
  --brand-mid:     #70A0B0;
  --brand-light:   #90B0C0;
  --brand-gray:    #E0E0E0;
  --brand-white:   #F0F0F0;

  --accent:        #006080;
  --accent2:       #004050;
  --accent-glow:   rgba(0,96,128,0.2);

  --surface:       #ffffff;
  --surface-2:     #F0F4F6;
  --surface-3:     #E4EEF2;

  --text-head:     #004050;
  --text-body:     #2d5060;
  --text-soft:     #5a8090;

  --text-inv:      #F0F0F0;
  --text-inv-soft: rgba(240,240,240,0.7);

  --border-light:  rgba(0,64,80,0.1);
  --border-mid:    rgba(0,96,128,0.15);

  --card-shadow:       0 2px 20px rgba(0,64,80,0.08);
  --card-shadow-hover: 0 8px 40px rgba(0,64,80,0.14);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --font:         'Inter', system-ui, sans-serif;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --transition:   0.35s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.loading { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section      { padding: 100px 0; background: var(--surface); }
.section-alt  { padding: 100px 0; background: var(--surface-2); }
.section-teal { padding: 100px 0; background: var(--brand-teal); }
.section-dark { padding: 100px 0; background: var(--brand-dark); }

.accent-text { color: var(--accent); }

/* ================================================
   LOADER
   ================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 48px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  animation: loaderFadeUp 0.6s ease forwards;
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loader-logo-img-wrap { display: flex; align-items: center; justify-content: center; }
.loader-logo-img-wrap img { width: 260px; height: auto; object-fit: contain; }

.loader-tagline {
  font-family: var(--font);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-light);
}
.loader-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 220px; }
.loader-bar { width: 100%; height: 2px; background: rgba(0,64,80,0.1); border-radius: 99px; overflow: hidden; }
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-mid));
  border-radius: 99px; width: 0%;
  animation: loaderAnim 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loaderAnim { 0%{width:0%} 60%{width:75%} 100%{width:100%} }
.loader-percent {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--brand-teal);
  align-self: flex-end;
}

/* ================================================
   CURSOR
   ================================================ */
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid var(--accent);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.5;
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ================================================
   TOPBAR
   ================================================ */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: var(--brand-dark); height: 38px;
  transition: height 0.4s ease, opacity 0.4s ease; overflow: hidden;
}
#topbar.hidden { height: 0; opacity: 0; }

.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 4px; }
.topbar-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 4px 8px; border-radius: 6px;
  transition: color var(--transition), background var(--transition); white-space: nowrap;
}
.topbar-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-location:hover { background: none; color: rgba(255,255,255,0.75); }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.15); margin: 0 2px; }
.topbar-right { display: flex; align-items: center; gap: 2px; }
.topbar-social {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.topbar-social:hover { color: #fff; background: rgba(255,255,255,0.1); }
.topbar-social svg { width: 14px; height: 14px; }

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 100;
  padding: 0 24px; background: #fff;
  box-shadow: 0 1px 0 var(--border-light);
  transition: background 0.4s, box-shadow 0.4s, top 0.4s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(0,64,80,0.1); top: 0;
}
#navbar.scrolled .nav-inner   { height: 68px; }
#navbar.scrolled .nav-logo-img { height: 48px; }

.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height var(--transition);
}
.nav-logo { transition: opacity var(--transition); }
.nav-logo:hover { opacity: 0.85; }
.nav-logo-wrap { display: flex; align-items: center; }
.nav-logo-img { width: auto; height: 80px; object-fit: contain; transition: height var(--transition); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px; font-size: 0.875rem; font-weight: 500;
  color: var(--brand-dark); border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--accent); background: rgba(0,96,128,0.06); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff;
  font-weight: 700; padding: 8px 20px; border-radius: 99px;
}
.nav-links .nav-cta:hover { background: var(--accent2); color: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--brand-dark); border-radius: 99px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

.mobile-menu {
  max-width: 1200px; margin: 0 auto;
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 0 16px; background: #fff;
}
.mobile-menu.open { display: flex; }
.mob-link {
  padding: 12px 16px; font-size: 1rem; font-weight: 500;
  color: var(--brand-dark); border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mob-link:hover { background: rgba(0,96,128,0.06); color: var(--accent); }
.accent-link { color: var(--accent); }

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 0.9rem;
  padding: 14px 30px; border-radius: 99px; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--accent2); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--brand-dark);
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  padding: 13px 30px; border-radius: 99px; border: 1.5px solid var(--brand-dark);
  transition: all var(--transition);
}
.btn-outline-dark:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  padding: 13px 30px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-dark);
  font-family: var(--font); font-weight: 700; font-size: 0.9rem;
  padding: 14px 30px; border-radius: 99px; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-white:hover { background: var(--brand-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow,
.btn-white:hover .btn-arrow { transform: translateX(4px); }
.mt-btn { margin-top: 28px; }
.pd-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
}

/* ================================================
   SECTION HELPERS
   ================================================ */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 99px; }
.section-tag--white { color: rgba(255,255,255,0.8); }
.section-tag--white::before { background: rgba(255,255,255,0.6); }

.section-title {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem);
  font-weight: 800; line-height: 1.12; color: var(--text-head); margin-bottom: 20px;
}
.section-title--white { color: #fff; }
.section-title em { font-style: normal; color: var(--accent); }
.section-title--white em { color: rgba(255,255,255,0.65); }

.section-desc { font-size: 1.05rem; color: var(--text-soft); line-height: 1.75; max-width: 560px; }
.section-desc--white { color: rgba(255,255,255,0.75); }

.section-header { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.section-header .section-tag { justify-content: center; }
.section-header .section-desc { margin: 0 auto; }

/* ================================================
   ANIMATIONS
   ================================================ */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { animation: revealAnim 0.7s ease forwards; }
@keyframes revealAnim { to { opacity: 1; transform: translateY(0); } }

/* ================================================
   HERO
   ================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img  { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,20,32,0.95) 0%, rgba(0,40,60,0.82) 55%, rgba(0,60,80,0.55) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,96,128,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,96,128,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPan 24s linear infinite;
}
@keyframes gridPan { to { background-position: 60px 60px; } }

/* Layout */
.hero-body {
  position: relative; z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  padding: calc(138px + 40px) 0 40px;
}
.hero-body > .container {
  width: 100%;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 700px;
  gap: 0;
  align-items: center;
}

/* Left */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(144,176,192,0.22);
  background: rgba(255,255,255,0.06);
  padding: 8px 18px; border-radius: 99px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(112,160,176,0.25);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title span { color: var(--brand-mid); }
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-btns .btn-outline-white { font-size: 0.85rem; padding: 10px 20px; }

/* Scroll indicator */
.scroll-down {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.scroll-down span {
  display: block; width: 1.5px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35));
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero-layout { max-width: 100%; }
}
@media (max-width: 700px) {
  .hero-body { padding: calc(138px + 40px) 0 40px; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-btns { flex-direction: column; }
}

/* ================================================
   STATS BAND
   ================================================ */
.stats-band {
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(144,176,192,0.12);
  padding: 0;
}
.stats-band-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.stats-band-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  text-align: center;
  gap: 6px;
}
.stats-band-item .stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats-band-num {
  display: flex;
  align-items: center;
  line-height: 1;
}
.stats-band-suffix {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-mid);
  margin-left: 2px;
}
.stats-band-item p {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.stats-band-divider {
  width: 1px;
  background: rgba(144,176,192,0.15);
  align-self: stretch;
  margin: 20px 0;
}
@media (max-width: 700px) {
  .stats-band-grid { flex-wrap: wrap; }
  .stats-band-item { flex: 0 0 50%; padding: 28px 16px; }
  .stats-band-divider { display: none; }
  .stats-band-item .stat-num { font-size: 2rem; }
}

/* ================================================
   ABOUT (white)
   ================================================ */
#about { background: var(--surface); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 72px; }

.about-visual { position: relative; height: 520px; }
.about-img-wrap { position: absolute; top: 0; left: 0; width: 75%; height: 80%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,64,80,0.15); }
.about-img-secondary { position: absolute; bottom: 0; right: 0; width: 55%; height: 45%; border-radius: var(--radius); overflow: hidden; border: 4px solid #fff; box-shadow: 0 12px 40px rgba(0,64,80,0.12); }
.about-badge-float {
  position: absolute;
  bottom: 62px;
  left: calc(75% - 80px);
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  z-index: 10;
  box-shadow: 0 8px 32px var(--accent-glow);
  min-width: 90px;
}
.badge-year { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.badge-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.about-text p { color: var(--text-soft); line-height: 1.8; font-size: 0.97rem; margin-bottom: 16px; }
.about-text strong { color: var(--text-head); }

.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { padding: 7px 16px; background: var(--surface-3); border: 1px solid var(--border-mid); border-radius: 99px; font-size: 0.8rem; font-weight: 600; color: var(--brand-teal); transition: all var(--transition); }
.pill:hover { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 40px; transition: all var(--transition); }
.mv-card:hover { border-color: var(--brand-mid); background: var(--surface-3); transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.mv-icon { width: 52px; height: 52px; background: rgba(0,96,128,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; }
.mv-icon svg { width: 24px; height: 24px; }
.mv-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text-head); margin-bottom: 12px; }
.mv-card p { color: var(--text-soft); line-height: 1.75; font-size: 0.95rem; }

/* ================================================
   TRAYECTORIA (dark)
   ================================================ */
#trayectoria .section-title--white em { color: var(--brand-mid); }

.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(144,176,192,0.5), transparent);
  transform: translateX(-50%);
  transform-origin: top center;
  scale: 1 0;
  transition: scale 1.2s cubic-bezier(0.22,1,0.36,1);
}
.timeline.tl-animated .timeline-line { scale: 1 1; }
.timeline-item {
  display: flex; justify-content: flex-end;
  padding-right: calc(50% + 40px); margin-bottom: 40px; position: relative;
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.timeline-item[data-side="right"] {
  justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 40px);
  transform: translateX(48px);
}
.timeline-item.tl-visible {
  opacity: 1;
  transform: translateX(0);
}
.tl-dot {
  position: absolute; left: 50%; top: 20px;
  width: 14px; height: 14px;
  background: var(--brand-mid); border-radius: 50%;
  transform: translateX(-50%) scale(0);
  box-shadow: 0 0 0 4px var(--brand-dark), 0 0 16px rgba(112,160,176,0.4);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s;
}
.timeline-item.tl-visible .tl-dot { transform: translateX(-50%) scale(1); }
.tl-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(144,176,192,0.15); border-radius: var(--radius-sm); padding: 18px 22px; max-width: 300px; transition: all var(--transition); }
.tl-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(144,176,192,0.3); transform: translateY(-2px); }
.tl-card--active { background: rgba(0,96,128,0.25); border-color: rgba(112,160,176,0.4); }
.tl-year { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--brand-mid); margin-bottom: 4px; }
.tl-card p { color: var(--text-inv-soft); font-size: 0.9rem; line-height: 1.5; }
.tl-card strong { color: var(--text-inv); }
.tl-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tl-card-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,96,128,0.35); border: 1.5px solid rgba(112,160,176,0.35); display: flex; align-items: center; justify-content: center; color: var(--brand-mid); }
.tl-card--active .tl-card-icon { background: rgba(0,96,128,0.55); border-color: rgba(112,160,176,0.6); color: #90d8f0; }
.tl-card-icon svg { width: 18px; height: 18px; }

/* ── Timeline horizontal (nueva versión) ─────── */
.tl-horiz { width: 100%; overflow-x: auto; padding-bottom: 8px; }
.tl-horiz::-webkit-scrollbar { height: 4px; }
.tl-horiz::-webkit-scrollbar-track { background: transparent; }
.tl-horiz::-webkit-scrollbar-thumb { background: rgba(112,160,176,0.3); border-radius: 2px; }

.tl-row {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  min-width: 900px;
}
.tl-row--top .tl-cell { padding: 0 8px 24px; text-align: center; }
.tl-row--bottom .tl-cell { padding: 24px 8px 0; text-align: center; }

.tl-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Línea del eje + dots */
.tl-axis { position: relative; min-width: 900px; padding: 0; margin: 0; height: 24px; display: flex; align-items: center; }
.tl-axis-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(144,176,192,0.5) 8%, rgba(144,176,192,0.5) 92%, transparent 100%);
}
.tl-dot-row {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  width: 100%;
  position: relative;
  z-index: 1;
}
.tl-dot-row .tl-dot {
  display: block; width: 8px; height: 8px;
  background: var(--brand-mid);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 0 3px rgba(0,40,60,1), 0 0 10px rgba(112,160,176,0.5);
  position: relative;
}
/* Conector vertical top */
.tl-row--top .tl-cell:not(:empty)::after {
  content: '';
  display: block;
  width: 1px; height: 24px;
  background: rgba(144,176,192,0.4);
  margin-top: auto;
}
/* Conector vertical bottom */
.tl-row--bottom .tl-cell:not(:empty)::before {
  content: '';
  display: block;
  width: 1px; height: 24px;
  background: rgba(144,176,192,0.4);
  margin-bottom: auto;
  order: -1;
}

/* Icono */
.tl-icon {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(112,160,176,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,60,90,0.4);
  flex-shrink: 0;
  margin-bottom: 2px;
}
.tl-icon svg { width: 18px; height: 18px; stroke: var(--brand-mid); }

/* Año */
.tl-yr {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
  font-style: italic;
  color: #ffffff;
  line-height: 1;
}

/* Texto */
.tl-row .tl-cell p {
  color: rgba(200,220,230,0.75);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  max-width: 110px;
}
.tl-row .tl-cell p strong { color: #fff; }

/* Celda vacía no muestra nada */
.tl-cell:empty { pointer-events: none; }

/* ================================================
   SECTORES (surface-2)
   ================================================ */
#sectores { background: var(--surface-2); }

.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector-card { border-radius: var(--radius); overflow: hidden; position: relative; height: 380px; cursor: pointer; }
.sector-img { position: absolute; inset: 0; transition: transform 0.5s ease; }
.sector-card:hover .sector-img { transform: scale(1.07); }
.sector-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,28,40,0.92) 30%, rgba(0,28,40,0.1) 100%); transition: background 0.3s; }
.sector-card:hover .sector-overlay { background: linear-gradient(to top, rgba(0,40,60,0.96) 40%, rgba(0,28,40,0.15) 100%); }
.sector-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 2; }
.sector-info h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; transform: translateY(8px); transition: transform 0.3s; }
.sector-card:hover .sector-info h3 { transform: translateY(0); }
.sector-info p { color: rgba(255,255,255,0.65); font-size: 0.83rem; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity 0.3s 0.05s, transform 0.3s 0.05s; }
.sector-card:hover .sector-info p { opacity: 1; transform: translateY(0); }
.sector-info::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--brand-mid); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; }
.sector-card:hover .sector-info::before { transform: scaleX(1); }

/* ================================================
   PRODUCTOS (white)
   ================================================ */
#productos { background: var(--surface); }

.products-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; justify-content: center; }
.tab-btn { padding: 10px 20px; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: 99px; color: var(--text-soft); font-family: var(--font); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.tab-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-3); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

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

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pd-text h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-head); margin-bottom: 16px; }
.pd-text p { color: var(--text-soft); line-height: 1.75; margin-bottom: 12px; font-size: 0.95rem; }
.pd-text strong { color: var(--text-head); }

.prod-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.prod-list li { display: flex; align-items: center; gap: 10px; color: var(--text-body); font-size: 0.9rem; }
.prod-list li::before { content: ''; display: block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

.prod-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.prod-two-col p { font-size: 0.85rem; font-weight: 700; color: var(--text-head); margin-bottom: 8px; }

.diam-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.diam-pills span { padding: 5px 12px; background: var(--surface-3); border: 1px solid var(--border-mid); border-radius: 99px; font-size: 0.78rem; color: var(--brand-teal); font-weight: 700; }

.pd-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--card-shadow-hover); }
.mt-16 { margin-top: 16px; }
.small-text { font-size: 0.82rem !important; color: var(--text-soft); }

/* ================================================
   VALOR AGREGADO (teal)
   ================================================ */
#valor { background: var(--brand-dark); }
#valor .section-title--white em { color: rgba(255,255,255,0.6); }

.valor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valor-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 32px; transition: all var(--transition); }
.valor-card:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); transform: translateY(-4px); }
.valor-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 20px; }
.valor-icon svg { width: 22px; height: 22px; }
.valor-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.valor-card p { font-size: 0.87rem; color: rgba(255,255,255,0.72); line-height: 1.65; }

/* ================================================
   DISTRIBUCION (surface-2)
   ================================================ */
#distribucion { background: var(--surface-2); }

.dist-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.dist-text { text-align: center; max-width: 680px; margin: 0 auto; }
.dist-text > p { color: var(--text-soft); line-height: 1.75; margin-bottom: 32px; font-size: 0.97rem; }

.cedis-list { display: flex; flex-direction: column; gap: 14px; }
.cedis-item { display: flex; align-items: center; gap: 14px; }
.cedis-dot { width: 10px; height: 10px; flex-shrink: 0; background: var(--brand-light); border-radius: 50%; }
.cedis-dot.main { background: var(--accent); box-shadow: 0 0 0 3px rgba(0,96,128,0.15); }
.cedis-dot.usa  { background: #4a90b8; box-shadow: 0 0 0 3px rgba(74,144,184,0.15); }
.cedis-item strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-head); }
.cedis-item span { font-size: 0.78rem; color: var(--text-soft); }

.dist-map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--card-shadow-hover); background: transparent; }
@media (max-width: 600px) {
  .dist-map { aspect-ratio: unset; height: 380px; min-height: 380px; width: 333px; max-width: 100%; margin: 0 auto; }
}
#globe-canvas { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }
.map-overlay-card { position: absolute; bottom: 20px; right: 20px; background: rgba(0,40,60,0.88); backdrop-filter: blur(12px); border: 1px solid rgba(144,176,192,0.15); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; gap: 24px; }
.map-stat span { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--brand-mid); display: block; line-height: 1; }
.map-stat p { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ================================================
   CONTACTO (white)
   ================================================ */
#contacto { background: var(--surface); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card { background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px; transition: all var(--transition); }
.contact-card:hover { border-color: var(--brand-mid); transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.cc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.cc-country-icon { width: 36px; height: 36px; flex-shrink: 0; background: rgba(0,96,128,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.cc-country-icon svg { width: 18px; height: 18px; }
.cc-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-head); }

.cc-info-list { display: flex; flex-direction: column; gap: 12px; }
.cc-info-item { display: flex; align-items: flex-start; gap: 10px; }
.cc-info-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.cc-info-item p { font-size: 0.87rem; color: var(--text-body); line-height: 1.5; }
.cc-info-item a { font-size: 0.87rem; color: var(--brand-teal); line-height: 1.5; transition: color var(--transition); }
.cc-info-item a:hover { color: var(--brand-dark); }

.contact-form { background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.contact-form > .btn-primary,
.contact-form > .form-note { grid-column: 1 / -1; }

label { font-size: 0.78rem; font-weight: 700; color: var(--text-head); text-transform: uppercase; letter-spacing: 0.07em; }
input, select, textarea { background: #fff; border: 1.5px solid var(--border-light); border-radius: var(--radius-xs); color: var(--text-head); font-family: var(--font); font-size: 0.9rem; padding: 12px 16px; transition: border-color var(--transition), box-shadow var(--transition); outline: none; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--brand-light); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,96,128,0.1); }
select option { background: #fff; color: var(--text-head); }
textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }

.page-hero--about {
  background: url('assets/fachada_sercom_2.JPEG') center 60% / cover no-repeat !important;
  padding-top: 220px;
  padding-bottom: 140px;
}
.page-hero--about .page-hero-overlay {
  background: linear-gradient(120deg, rgba(0,10,20,0.72) 0%, rgba(0,30,50,0.50) 100%);
}
.page-hero--about .container { z-index: 3; }
.page-hero-content { max-width: 680px; }
.page-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; }

/* Nosotros CTA section */
.nos-cta-section { padding: 100px 0; }
.nos-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.nos-cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 240px; }
@media (max-width: 800px) {
  .nos-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .nos-cta-action { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

/* mv-grid 3 col override for nosotros */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }

/* ================================================
   PAGE HERO (subpages)
   ================================================ */
.page-hero {
  position: relative;
  background: var(--brand-dark);
  padding: calc(138px + 80px) 0 80px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,96,128,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,96,128,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,20,32,0.6) 0%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-tag { margin-bottom: 14px; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 540px;
}
.nav-active { color: var(--accent) !important; }

/* ================================================
   FOOTER
   ================================================ */
#footer { background: #fff; }
.footer-top { padding: 64px 0; border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }

.footer-logo-wrap { display: inline-flex; margin-bottom: 18px; }
.footer-logo-img  { width: 160px; height: auto; object-fit: contain; }
.footer-brand p   { font-size: 0.87rem; color: var(--text-soft); line-height: 1.7; max-width: 260px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; background: var(--surface-3); border: 1px solid var(--border-mid); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--brand-teal); transition: all var(--transition); }
.footer-social a:hover { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }
.footer-social svg { width: 16px; height: 16px; }

.footer-links h5, .footer-contact h5 { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-head); margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.87rem; color: var(--text-soft); transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-teal); }

.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand-teal); }
.footer-contact-item p  { font-size: 0.85rem; color: var(--text-body); line-height: 1.4; }
.footer-contact-item a  { font-size: 0.85rem; color: var(--brand-teal); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--brand-dark); }
.footer-contact-divider { height: 1px; background: var(--border-light); margin: 14px 0; }

.footer-bottom { padding: 20px 0; background: var(--brand-dark); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-sep { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-dev { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-dev a { color: #fff; font-weight: 600; transition: color var(--transition); }
.footer-dev a:hover { color: var(--brand-light); }

/* ================================================
   FLOATING ACTION BUTTON (FAB)
   ================================================ */
/* ================================================
   FLOATING ACTION BUTTON (FAB)
   ================================================ */
.fab-wrap {
  position: fixed;
  bottom: 32px; right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fab-wrap.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Panel/Lengueta ── */
.fab-menu {
  background: #002c3a;
  border: 1px solid rgba(0,150,200,0.22);
  border-radius: 18px 18px 4px 18px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  margin-right: 7px; /* alinea con borde del botón */
  /* estado cerrado */
  transform-origin: bottom right;
  transform: scale(0.85) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.34,1.38,0.64,1),
    opacity 0.22s ease;
  box-shadow:
    0 8px 32px rgba(0,20,32,0.45),
    0 0 0 1px rgba(0,150,200,0.10);
  min-width: 200px;
}
.fab-wrap.open .fab-menu,
.fab-wrap:hover .fab-menu {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Rows inside the panel */
.fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.fab-item:hover {
  background: rgba(0,150,200,0.18);
  color: #fff;
  transform: translateX(-3px);
}
.fab-item-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(0,96,128,0.35);
  border: 1px solid rgba(0,150,200,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(144,200,220,0.9);
  transition: background 0.18s, border-color 0.18s;
}
.fab-item:hover .fab-item-icon {
  background: rgba(0,96,128,0.55);
  border-color: rgba(0,150,200,0.5);
}
.fab-item-icon svg { width: 17px; height: 17px; }

/* Divider */
.fab-divider {
  height: 1px;
  background: rgba(0,150,200,0.12);
  margin: 3px 8px;
}

/* ── Main bubble ── */
.fab-main {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 2.5px rgba(0,96,128,0.18),
    0 0 18px 5px rgba(0,150,200,0.22),
    0 4px 22px rgba(0,64,80,0.18);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.fab-wrap:hover .fab-main,
.fab-wrap.open .fab-main {
  box-shadow:
    0 0 0 2.5px rgba(0,96,128,0.28),
    0 0 32px 10px rgba(0,150,200,0.40),
    0 6px 28px rgba(0,64,80,0.22);
  transform: scale(1.05);
}
.fab-icon-img {
  width: 42px; height: 42px;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.fab-close-icon {
  position: absolute;
  width: 20px; height: 20px;
  color: var(--brand-dark);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.fab-wrap.open .fab-icon-img {
  opacity: 0;
  transform: scale(0.4) rotate(90deg);
}
.fab-wrap.open .fab-close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ================================================
   UTILITIES
   ================================================ */
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

/* ================================================
   NAV CTA COTIZAR
   ================================================ */
.nav-cta--cotizar {
  display: inline-flex !important; align-items: center; gap: 7px;
  background: var(--accent) !important; color: #fff !important;
  font-weight: 700 !important; padding: 10px 22px !important;
  border-radius: 99px; font-size: 0.875rem !important;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: all var(--transition) !important;
}
.nav-cta--cotizar:hover {
  background: var(--accent2) !important; color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px var(--accent-glow) !important;
}

/* Mobile CTA */
.mob-cta {
  display: flex !important; align-items: center; gap: 10px;
  background: var(--accent); color: #fff !important;
  font-weight: 700; padding: 14px 16px !important;
  border-radius: var(--radius-sm); margin-top: 4px;
}
.mob-cta:hover { background: var(--accent2) !important; color: #fff !important; }

/* Hero primary CTA */
.btn-hero-cta {
  font-size: 0.85rem !important; padding: 11px 22px !important;
  box-shadow: 0 4px 18px var(--accent-glow);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}
.btn-hero-cta svg { width: 15px; height: 15px; }
.btn-hero-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 26px var(--accent-glow) !important; }

/* Submit button */
.btn-submit-cta {
  font-size: 1rem !important; padding: 16px 24px !important;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-submit-cta:hover { box-shadow: 0 10px 32px var(--accent-glow) !important; }

/* ================================================
   CTA BANNER
   ================================================ */
#cta-banner { background: var(--brand-dark); position: relative; overflow: hidden; }
#cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,96,128,0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,96,128,0.08) 1px, transparent 1px);
  background-size: 50px 50px; pointer-events: none;
}

.cta-banner-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 64px; align-items: center;
}

.cta-banner-text .section-title--white { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.cta-banner-text .section-desc--white  { margin-bottom: 32px; }

.cta-checklist { display: flex; flex-direction: column; gap: 10px; }
.cta-checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.93rem; color: rgba(255,255,255,0.8); font-weight: 500;
}
.cta-checklist li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-mid); }

.cta-banner-action { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 280px; }

.btn-cta-big {
  display: flex; align-items: center; gap: 16px;
  background: #fff; color: var(--brand-dark);
  font-family: var(--font); font-weight: 700;
  padding: 22px 32px; border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-cta-big:hover {
  background: var(--brand-white);
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(0,0,0,0.28);
  border-color: var(--brand-mid);
}
.btn-cta-big strong { display: block; font-size: 1.1rem; font-family: var(--font-display); }
.btn-cta-big small  { display: block; font-size: 0.78rem; color: var(--brand-teal); font-weight: 600; margin-top: 2px; }
.btn-cta-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.btn-cta-icon svg { width: 22px; height: 22px; }
.btn-cta-big:hover .btn-arrow { transform: translateX(4px); }

.cta-trust {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.cta-trust svg { color: var(--brand-mid); flex-shrink: 0; }

@media (max-width: 900px) {
  .cta-banner-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner-action { width: 100%; }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .valor-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { height: 320px; }
  .mv-grid    { grid-template-columns: 1fr; }
  .timeline-item { padding-right: 0; padding-left: 48px; justify-content: flex-start; }
  .timeline-item[data-side="right"] { padding-left: 48px; }
  .timeline-line { left: 20px; }
  .tl-dot     { left: 20px; }
  .tl-card    { max-width: 100%; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-img     { order: -1; }
  .dist-grid  { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { grid-template-columns: 1fr; padding: 28px; }
  .form-group.full { grid-column: 1; }
  .contact-form > .btn-primary,
  .contact-form > .form-note { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section, .section-alt, .section-teal, .section-dark { padding: 70px 0; }
  .sectors-grid { grid-template-columns: 1fr; }
  .valor-grid   { grid-template-columns: 1fr; }
  .prod-two-col { grid-template-columns: 1fr; }
  .two-col-list { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .about-img-secondary { display: none; }
}

/* ══════════════════════════════════════════════════
   PÁGINA PRODUCTOS
══════════════════════════════════════════════════ */

/* Hero productos */
.page-hero--productos {
  background: url('assets/productos_hero.JPEG') center center / cover no-repeat !important;
  padding-top: 220px;
  padding-bottom: 140px;
}
.page-hero--productos .page-hero-overlay {
  background: linear-gradient(120deg, rgba(0,10,20,0.78) 0%, rgba(0,30,50,0.55) 100%);
}

/* Grid de productos */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.prod-card {
  background: #fff;
  border: 1px solid rgba(0,64,80,0.10);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(0,64,80,0.06);
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,64,80,0.14);
  border-color: rgba(0,96,128,0.25);
}

.prod-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(0,64,80,0.06);
  border: 1.5px solid rgba(0,96,128,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  margin-bottom: 4px;
}
.prod-card-icon svg { width: 38px; height: 38px; }

.prod-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}

.prod-card-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.prod-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
  text-decoration: none;
  margin-top: 4px;
  transition: gap var(--transition);
}
.prod-card-link:hover { gap: 10px; }
.prod-card-link svg { width: 14px; height: 14px; }

/* Valor agregado */
.va-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.va-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(144,176,192,0.18);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.va-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(144,176,192,0.35);
  transform: translateY(-3px);
}

.va-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,96,128,0.3);
  border: 1.5px solid rgba(112,160,176,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mid);
  margin: 0 auto 18px;
}
.va-icon svg { width: 26px; height: 26px; }

.va-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-inv);
  margin-bottom: 10px;
}
.va-card p {
  font-size: 0.85rem;
  color: var(--text-inv-soft);
  line-height: 1.6;
}

/* CTA section */
.section-cta { background: var(--brand-dark); }
.cta-box {
  text-align: center;
  padding: 60px 40px;
  background: rgba(0,96,128,0.18);
  border: 1px solid rgba(112,160,176,0.2);
  border-radius: var(--radius);
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-inv);
  margin-bottom: 14px;
}
.cta-box p {
  color: var(--text-inv-soft);
  font-size: 1rem;
  margin-bottom: 32px;
}
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* Responsive productos */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .va-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .prod-grid { grid-template-columns: 1fr; }
  .va-grid   { grid-template-columns: 1fr; }
  .cta-box   { padding: 40px 20px; }
  .cta-box h2 { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE GLOBAL — TABLET & MOBILE
══════════════════════════════════════════════════ */

/* ── Tablet (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {
  /* Topbar: ocultar items secundarios, solo mostrar redes */
  .topbar-left  { display: none; }
  .topbar-inner { justify-content: flex-end; }

  /* Navbar sube al top ya que topbar está colapsado visualmente */
  #navbar { top: 38px; }

  /* Nav logo más pequeño */
  .nav-logo-img { height: 60px; }
  .nav-inner    { height: 80px; }

  /* Hero de subpáginas */
  .page-hero--about,
  .page-hero--productos { padding-top: 160px; padding-bottom: 80px; }

  /* Sector cards menos altas */
  .sector-card { height: 300px; }

  /* Timeline horizontal: texto más pequeño */
  .tl-yr   { font-size: 0.9rem; }
  .tl-icon { width: 34px; height: 34px; }
  .tl-icon svg { width: 15px; height: 15px; }
  .tl-row .tl-cell p { font-size: 0.72rem; max-width: 90px; }

  /* Products tabs: scroll horizontal en lugar de wrap */
  .products-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .products-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; }

  /* Contact form */
  .contact-form { padding: 24px 20px; }

  /* Footer grid 2 col */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* CTA banner */
  .cta-banner-inner  { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner-action { width: 100%; }

  /* Productos page hero */
  .page-hero--productos { padding-top: 160px; padding-bottom: 80px; }

  /* Modal productos */
  .prod-modal-header { padding: 20px 20px 16px; gap: 12px; }
  .prod-modal-body   { padding: 20px 20px 28px; }
  .pmd-list          { grid-template-columns: 1fr; }
}

/* ── Mobile (≤ 480px) ────────────────────────── */
@media (max-width: 480px) {
  /* Topbar oculto completamente */
  #topbar { height: 0; opacity: 0; pointer-events: none; }
  #navbar { top: 0; }
  .nav-inner { height: 68px; }
  .nav-logo-img { height: 50px; }

  /* Hero homepage */
  .hero-body  { padding: calc(68px + 32px) 0 32px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-btns  { flex-direction: column; gap: 12px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline-white { width: 100%; justify-content: center; }

  /* Stats band */
  .stats-band-item { flex: 0 0 50%; padding: 20px 12px; }
  .stats-band-item .stat-num { font-size: 1.8rem; }

  /* Secciones más compactas */
  .section, .section-alt, .section-teal, .section-dark { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }

  /* Sector cards */
  .sector-card { height: 260px; }

  /* Tabs */
  .products-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 0.8rem; }

  /* Product detail */
  .pd-text h3    { font-size: 1.4rem; }
  .pd-cta-row    { flex-direction: column; gap: 10px; }
  .pd-cta-row .btn-primary,
  .pd-cta-row .btn-outline-light { width: 100%; justify-content: center; text-align: center; }

  /* About section */
  .about-visual  { height: 240px; }
  .about-img-wrap { width: 100%; height: 100%; position: relative; }
  .about-badge-float { display: none; }

  /* Timeline vertical (nosotros) */
  .timeline-item { padding-right: 0; padding-left: 40px; justify-content: flex-start; }
  .timeline-item[data-side="right"] { padding-left: 40px; }
  .timeline-line { left: 16px; }
  .tl-dot        { left: 16px; }
  .tl-card       { max-width: 100%; }

  /* Page hero subpáginas */
  .page-hero { padding: calc(68px + 48px) 0 48px; }
  .page-hero--about,
  .page-hero--productos { padding-top: 120px; padding-bottom: 60px; }
  .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Contact */
  .contact-form  { padding: 20px 16px; gap: 16px; }
  .contact-grid  { gap: 32px; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-top    { padding: 48px 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom-links { justify-content: center; }

  /* CTA banner */
  .btn-cta-big   { padding: 16px 20px; }
  .btn-cta-big strong { font-size: 0.95rem; }

  /* Valor grid */
  .valor-grid    { grid-template-columns: 1fr; }
  .valor-card    { padding: 24px; }

  /* Modal */
  .prod-modal    { max-height: 92vh; border-radius: 12px; }
  .prod-modal-header { padding: 16px 16px 14px; flex-wrap: wrap; }
  .prod-modal-header-icon { width: 44px; height: 44px; }
  .prod-modal-header-text h2 { font-size: 1.1rem; }
  .prod-modal-body { padding: 16px 16px 24px; }
  .pmd-list      { grid-template-columns: 1fr; }
  .pmd-cta       { flex-direction: column; }
  .pmd-cta a, .pmd-cta button { width: 100%; text-align: center; justify-content: center; }
  .pmd-header-cta { width: 100%; justify-content: center; }

  /* Legal pages */
  .legal-body h2 { font-size: 1.1rem; }
  .legal-body    { padding-bottom: 60px; }

  /* Nosotros CTA */
  .nos-cta-section { padding: 64px 0; }
  .nos-cta-inner   { grid-template-columns: 1fr; gap: 28px; }
  .nos-cta-action  { flex-direction: column; gap: 12px; }
  .nos-cta-action .btn-primary,
  .nos-cta-action .btn-outline-dark { width: 100%; justify-content: center; }
}
