/* =========================================
   RAMAG — INTEGRACIÓN E INGENIERÍA
   Custom Stylesheet
========================================= */

/* ── Variables ── */
:root {
  --primary:       #0C3B52;
  --primary-dark:  #082A3A;
  --primary-light: #175D8A;
  --accent:        #00B9D8;
  --accent-dark:   #009DB8;
  --dark:          #0A0F14;
  --dark-2:        #111827;
  --dark-3:        #1E2D3D;
  --surface:       #F0F5F9;
  --text:          #2D3748;
  --text-light:    #64748B;
  --text-muted:    #94A3B8;
  --white:         #FFFFFF;
  --border:        #E2E8F0;

  --font: 'Poppins', sans-serif;
  --trans: all 0.3s ease;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow:    0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography helpers ── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.section-heading--white { color: var(--white); }
.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}
.section-heading--center::after { margin-inline: auto; }
.section-sub {
  color: var(--text-light);
  max-width: 56ch;
  font-size: 1rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}
.section-sub--white { color: rgba(255,255,255,.72); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,185,216,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wa:hover {
  background: #1DB954;
  border-color: #1DB954;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

/* ── Top Bar ── */
#top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  font-size: 0.78rem;
  padding: 0.4rem 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-inner a { color: rgba(255,255,255,.8); transition: color .2s; }
.topbar-inner a:hover { color: var(--accent); }

/* ── Navbar ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  transition: background .3s ease, box-shadow .3s ease;
}
#navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-logo img { height: 5.1rem; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: 0.375rem;
  transition: var(--trans);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(255,255,255,.07);
}
.nav-cta { margin-left: 0.5rem; }
#menu-btn { cursor: pointer; background: none; border: none; color: white; font-size: 1.3rem; padding: 0.25rem; display: none; }

/* Mobile menu */
#mobile-menu {
  background: var(--primary-dark);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
}
#mobile-menu.open { max-height: 400px; opacity: 1; }
#mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
#mobile-menu a:hover, #mobile-menu a.active { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(12,59,82,.7) 0%, transparent 65%),
    radial-gradient(ellipse 40% 80% at 10% 20%, rgba(0,185,216,.08) 0%, transparent 55%),
    var(--dark);
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-badge i { color: var(--accent); }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-box {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  position: relative;
}
/* ── Atom Hero Visual ── */
.atom-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,185,216,.2);
  pointer-events: none;
}
.atom-ring.r1 { inset: 9%;  transform: rotateZ(10deg)  scaleY(0.24); }
.atom-ring.r2 { inset: 13%; transform: rotateZ(68deg)  scaleY(0.37); }
.atom-ring.r3 { inset: 8%;  transform: rotateZ(128deg) scaleY(0.26); }
.atom-ring.r4 { inset: 16%; transform: rotateZ(22deg)  scaleY(0.43); }

.atom-glow {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,185,216,.35) 0%, transparent 70%);
  pointer-events: none;
  animation: atom-pulse 3s ease-in-out infinite;
}
@keyframes atom-pulse {
  0%, 100% { transform: scale(1);   opacity: .5; }
  50%       { transform: scale(2);   opacity: .9; }
}

.atom-nucleus {
  position: absolute;
  inset: 41%;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.7rem;
  box-shadow: 0 0 28px rgba(0,185,216,.6), 0 0 60px rgba(0,185,216,.25);
  z-index: 4;
}
#atom-gear { display: flex; align-items: center; justify-content: center; }

.atom-el {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  pointer-events: none;
}
.ae-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: aeTwinkle 2.4s ease-in-out infinite;
}
/* Cada punto en un tono dorado distinto + delay propio para destellos desfasados */
#ae0 .ae-dot { background: #FFD700; box-shadow: 0 0 8px #FFD700, 0 0 18px rgba(255,215,0,.55); animation-delay: 0s;   }
#ae1 .ae-dot { background: #FFB347; box-shadow: 0 0 8px #FFB347, 0 0 18px rgba(255,179,71,.55); animation-delay: .4s;  }
#ae2 .ae-dot { background: #FFEC8B; box-shadow: 0 0 8px #FFEC8B, 0 0 18px rgba(255,236,139,.55); animation-delay: .8s; }
#ae3 .ae-dot { background: #DAA520; box-shadow: 0 0 8px #DAA520, 0 0 18px rgba(218,165,32,.55); animation-delay: 1.2s; }
#ae4 .ae-dot { background: #FFA500; box-shadow: 0 0 8px #FFA500, 0 0 18px rgba(255,165,0,.55); animation-delay: 1.6s;  }
@keyframes aeTwinkle {
  0%, 100% { transform: scale(1);   filter: brightness(1); }
  20%       { transform: scale(1.6); filter: brightness(1.7); }
  40%       { transform: scale(1);   filter: brightness(1); }
}

/* Eyebrow con destello dorado animado tipo "shimmer" */
.eyebrow-shimmer {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 30%,
    #FFD700 45%,
    #FFFACD 50%,
    #FFD700 55%,
    var(--accent) 70%,
    var(--accent) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: eyebrowShimmer 4.5s linear infinite;
}
@keyframes eyebrowShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.ae-word {
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0,185,216,.8);
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--primary);
  margin-top: -3px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.65);
}

/* ── Section Containers ── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section--dark { background: var(--dark-2); }
.section--primary { background: var(--primary); }
.section--surface { background: var(--surface); }
.section--darker { background: var(--dark); }

/* ── Intro / What we do ── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.intro-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.intro-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.intro-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1rem;
}
.intro-item-title { font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; }
.intro-item-text { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }
.intro-visual-badge {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.intro-visual-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0,185,216,.2), transparent 60%);
}
.ivb-mro {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ivb-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}
.ivb-desc { font-size: 0.9rem; color: rgba(255,255,255,.8); line-height: 1.7; position: relative; z-index: 1; }
.ivb-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; position: relative; z-index: 1; }
.ivb-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.05em;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(8,42,58,.06), 0 0 0 1px rgba(8,42,58,.04);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
/* Stripe superior con gradiente accent — aparece al hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .45s ease;
}
/* Watermark del número en esquina */
.service-card::after {
  content: attr(data-num);
  position: absolute;
  top: -1rem;
  right: 0.85rem;
  font-size: 6.5rem;
  font-weight: 900;
  color: rgba(12,59,82,.045);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
  transition: color .35s ease, transform .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(8,42,58,.14), 0 0 0 1px rgba(0,185,216,.2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { color: rgba(0,185,216,.10); transform: scale(1.05); }

.svc-num {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}
.svc-num::before {
  content: '';
  width: 1.3rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Icono con gradiente vibrante + highlight interno */
.svc-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  transition: transform .4s cubic-bezier(.4,.1,.3,1.4), box-shadow .35s ease;
  box-shadow: 0 8px 22px rgba(0,185,216,.28), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
  z-index: 1;
}
.svc-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 55%);
  pointer-events: none;
}
.service-card:hover .svc-icon {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 14px 30px rgba(0,185,216,.45), inset 0 1px 0 rgba(255,255,255,.3);
}

.svc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.svc-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.svc-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
  position: relative;
  transition: color .25s ease, gap .25s ease;
  z-index: 1;
}
.svc-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .35s ease;
}
.service-card:hover .svc-link {
  color: var(--accent);
  gap: 0.65rem;
}
.service-card:hover .svc-link::after { width: 100%; }

/* ════════════════════════════════════════════════════════
   MRO Deep Dive
   ════════════════════════════════════════════════════════ */
.mro-deep {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-2) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.mro-deep::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(0,185,216,.14), transparent 50%),
    radial-gradient(circle at 88% 82%, rgba(12,59,82,.5),  transparent 55%);
  pointer-events: none;
}
.mro-deep .section-inner { position: relative; z-index: 1; }

/* ── Las 3 letras ── */
.mro-letters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.mro-letter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 2rem 1.85rem 1.85rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.mro-letter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s ease;
}
.mro-letter:hover {
  transform: translateY(-6px);
  border-color: rgba(0,185,216,.4);
  box-shadow: 0 18px 40px rgba(0,185,216,.18);
}
.mro-letter:hover::before { transform: scaleX(1); }
.ml-head {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ml-big {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(0,185,216,.5);
}
.ml-word {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}
.ml-desc {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  margin-bottom: 1.25rem;
}
.ml-desc strong { color: var(--accent); font-weight: 700; }
.ml-desc em     { font-style: italic; color: rgba(255,255,255,.92); }
.ml-list {
  display: flex; flex-direction: column;
  gap: .55rem;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}
.ml-list li {
  display: flex; align-items: flex-start; gap: .6rem;
}
.ml-list li i {
  color: var(--accent);
  font-size: .65rem;
  margin-top: .35rem;
  flex-shrink: 0;
}

/* ── Header de subsecciones (estrategias / áreas) ── */
.mro-strategies, .mro-areas { margin-top: 3.5rem; }
.ms-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ms-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.ms-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Estrategias ── */
.ms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ms-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  padding: 1.75rem 1.4rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.ms-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,185,216,.4);
}
.ms-card--featured {
  background: linear-gradient(135deg, rgba(0,185,216,.18), rgba(12,59,82,.5));
  border-color: rgba(0,185,216,.4);
  box-shadow: 0 12px 28px rgba(0,185,216,.18);
}
.ms-badge {
  position: absolute;
  top: -.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--dark);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .25rem .7rem;
  border-radius: 1rem;
  text-transform: uppercase;
}
.ms-icon {
  width: 3rem; height: 3rem;
  background: rgba(0,185,216,.16);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  margin: 0 auto 1rem;
}
.ms-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
}
.ms-card p {
  font-size: .8rem;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}

/* ── 4 áreas ── */
.ma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.ma-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .65rem;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color .25s ease, background .25s ease;
}
.ma-item:hover {
  border-color: rgba(0,185,216,.35);
  background: rgba(0,185,216,.06);
}
.ma-item > i {
  width: 2.5rem; height: 2.5rem;
  background: rgba(0,185,216,.18);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.ma-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: white;
  margin-bottom: .15rem;
}
.ma-item span {
  font-size: .76rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}

/* ── Bloque cierre RAMAG ── */
.mro-impact {
  margin-top: 3.5rem;
  background: linear-gradient(120deg, rgba(0,185,216,.18) 0%, rgba(12,59,82,.6) 100%);
  border: 1.5px solid rgba(0,185,216,.4);
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 14px 40px rgba(0,185,216,.18);
}
.mi-content {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.mi-icon {
  width: 3.2rem; height: 3.2rem;
  background: rgba(0,185,216,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0,185,216,.35);
}
.mi-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin: .3rem 0 .55rem;
}
.mi-content p {
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
}
.mi-content p strong { color: var(--accent); font-weight: 700; }
.mi-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
.mi-stats > div {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .5rem;
  padding: .9rem .75rem;
  text-align: center;
}
.mi-stats > div strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}
.mi-stats > div span {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Responsive */
@media (max-width: 900px) {
  .mro-letters,
  .ms-grid,
  .ma-grid       { grid-template-columns: 1fr; }
  .mro-impact    { grid-template-columns: 1fr; gap: 1.5rem; }
  .mi-stats      { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .mi-stats { grid-template-columns: repeat(2, 1fr); }
  .ml-big   { font-size: 4rem; }
  .ml-word  { font-size: 1.15rem; }
}

/* ── Brands Section ── */
.brands-section { background: var(--dark-2); }
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.brand-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  transition: var(--trans);
  cursor: default;
}
.brand-badge:hover {
  background: rgba(0,185,216,.12);
  border-color: rgba(0,185,216,.4);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Industries ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.industry-card {
  perspective: 1200px;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 150px;
  cursor: default;
  outline: none;
}
.ind-flip {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 150px;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,.1,.3,1);
}
.industry-card:hover .ind-flip,
.industry-card:focus-within .ind-flip,
.industry-card.flipped .ind-flip {
  transform: rotateY(180deg);
}
.ind-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}
.ind-face-front {
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.industry-card:hover .ind-face-front {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.ind-face-back {
  transform: rotateY(180deg);
  color: white;
  padding: .9rem .85rem 1.85rem;
  position: relative;
}
.ind-face-back::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.2), transparent 60%);
  pointer-events: none;
}

.industry-icon-bg {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .35s ease;
}
.industry-card:hover .industry-icon-bg {
  transform: scale(1.08) rotate(-6deg);
}
.industry-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ind-back-icon {
  font-size: 1.55rem;
  margin-bottom: .4rem;
  opacity: .92;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}
.ind-back-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
}
.ind-back-text {
  font-size: .68rem;
  line-height: 1.45;
  color: rgba(255,255,255,.95);
}
.ind-back-tag {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  background: rgba(255,255,255,.2);
  padding: .25rem .65rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  backdrop-filter: blur(4px);
}
.ind-back-tag i { font-size: .55rem; }

/* ── Value Props / Why (con flip 3D) ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.why-item {
  perspective: 1400px;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 200px;
  outline: none;
  cursor: pointer;
}
.why-flip {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.4, .1, .3, 1);
}
.why-item:hover .why-flip,
.why-item:focus-within .why-flip,
.why-item.flipped .why-flip {
  transform: rotateY(180deg);
}
.why-face {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.why-face-front {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
}
.why-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(140deg, rgba(0,185,216,.18) 0%, rgba(8,42,58,.7) 100%);
  border-color: rgba(0,185,216,.45);
  box-shadow: 0 12px 32px rgba(0,185,216,.18);
  display: flex;
  flex-direction: column;
}
.why-item:hover .why-face-front {
  border-color: rgba(0,185,216,.3);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.why-flip-hint {
  position: absolute;
  top: .9rem;
  right: 1rem;
  color: rgba(0,185,216,.4);
  font-size: .7rem;
  transition: transform .4s ease, color .3s ease;
}
.why-item:hover .why-flip-hint { color: var(--accent); transform: rotate(180deg); }

.why-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}
.why-title { font-size: 0.92rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.why-desc  { font-size: 0.82rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* Back face */
.why-back-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid rgba(0,185,216,.25);
}
.why-back-icon {
  width: 2.4rem; height: 2.4rem;
  background: rgba(0,185,216,.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: .95rem;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,185,216,.25);
}
.why-back-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: white;
}
.why-back-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.why-back-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.why-back-list li i {
  color: var(--accent);
  font-size: .65rem;
  margin-top: .35rem;
  flex-shrink: 0;
}
.why-back-list li strong { color: white; font-weight: 700; }

/* ── Comparativa Otros vs RAMAG ── */
.vs-block {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.vs-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(0,185,216,.1), transparent 55%);
  pointer-events: none;
}
.vs-header { text-align: center; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.vs-title  {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: white;
  margin: .5rem 0;
  line-height: 1.25;
}
.vs-sub {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  max-width: 56ch;
  margin: 0 auto;
}
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.vs-col {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .85rem;
  padding: 2rem 1.75rem;
  position: relative;
}
.vs-col--ramag {
  background: linear-gradient(155deg, rgba(0,185,216,.18) 0%, rgba(12,59,82,.55) 100%);
  border: 1.5px solid rgba(0,185,216,.5);
  box-shadow: 0 14px 36px rgba(0,185,216,.18);
}
.vs-badge {
  position: absolute;
  top: -1.1rem;
  right: 1.25rem;
  background: linear-gradient(
    90deg,
    #B8860B 0%,
    #FFD700 25%,
    #FFFACD 50%,
    #FFD700 75%,
    #FFA500 100%
  );
  background-size: 250% auto;
  color: #2a1f00;
  font-size: 0.98rem;          /* +50% sobre .65rem */
  font-weight: 800;
  padding: .55rem 1.3rem;      /* +50% sobre .35 .85 */
  border-radius: 1.5rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  box-shadow: 0 6px 18px rgba(255,215,0,.5), 0 0 24px 2px rgba(255,215,0,.25);
  animation: vsBadgeShimmer 2.4s ease-in-out infinite, vsBadgePulse 2.4s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  z-index: 2;
}
.vs-badge i {
  animation: vsStarTwinkle 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.6));
}
@keyframes vsBadgeShimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}
@keyframes vsBadgePulse {
  0%, 100% {
    box-shadow: 0 6px 16px rgba(255,215,0,.4), 0 0 18px 0 rgba(255,215,0,.2);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 10px 28px rgba(255,215,0,.7), 0 0 36px 6px rgba(255,215,0,.45);
    transform: translateY(-2px) scale(1.04);
  }
}
@keyframes vsStarTwinkle {
  0%, 100% { transform: scale(1)   rotate(0deg);  filter: drop-shadow(0 0 2px rgba(255,255,255,.5)) brightness(1); }
  50%       { transform: scale(1.4) rotate(20deg); filter: drop-shadow(0 0 8px rgba(255,255,255,1))  brightness(1.5); }
}
.vs-col-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.vs-col-head > i {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.vs-col--others .vs-col-head > i { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
/* Badge contenedor del par de engranes (lado RAMAG) */
.vs-col--ramag .vs-col-head > .vs-gear-badge {
  position: relative;
  width: 2.88rem;          /* +20% sobre 2.4rem */
  height: 2.88rem;
  flex-shrink: 0;
  background: rgba(0,185,216,.25);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0,185,216,.3);
  display: inline-block;
}
/* Engranes individuales: cada uno gira en su propio eje, en sentidos opuestos */
.vs-gear {
  position: absolute;
  color: var(--accent);
  line-height: 1;
  transform-origin: center center;
}
.vs-gear--big {
  font-size: 1.45rem;
  top: 16%;
  left: 14%;
  animation: vsGearCW 6s linear infinite;
}
.vs-gear--small {
  font-size: 0.85rem;
  bottom: 12%;
  right: 12%;
  animation: vsGearCCW 4.5s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0,185,216,.6));
}
@keyframes vsGearCW  { to { transform: rotate(360deg);  } }
@keyframes vsGearCCW { to { transform: rotate(-360deg); } }
.vs-col ul {
  display: flex; flex-direction: column;
  gap: .9rem;
  font-size: .85rem;
  line-height: 1.55;
}
.vs-col li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}
.vs-col li > i:first-child {
  font-size: .85rem;
  margin-top: .15rem;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}
.vs-col--others li             { color: rgba(255,255,255,.55); }
.vs-col--others li span        { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.vs-col--others li > i:first-child { color: rgba(248,113,113,.85); }
.vs-col--ramag  li             { color: rgba(255,255,255,.92); }
.vs-col--ramag  li > i:first-child { color: #34d399; }
.vs-col--ramag  li strong      { color: white; font-weight: 700; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--dark-3) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,185,216,.12), transparent 60%);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-band p { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 2rem; max-width: 52ch; margin-inline: auto; }
.cta-band-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: white;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: 3rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--trans);
  text-decoration: none;
}
.wa-float i { font-size: 1.3rem; }
.wa-float:hover {
  background: #1DB954;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float span { display: inline; } }

/* ── Scroll To Top ── */
#scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 999;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid rgba(0,185,216,.4);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .25s ease, box-shadow .25s ease;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 6px 22px rgba(0,185,216,.4);
}

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo { height: 2.8rem; width: auto; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 28ch; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 0.75rem;
}
.footer-contact-item i { color: var(--accent); margin-top: 0.15rem; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: var(--accent); transition: color .2s; }
.footer-bottom a:hover { color: white; }

/* Crédito de autoría (sutil) */
.footer-credit {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.18);
  padding: 0.45rem 1rem 1rem;
}
.footer-credit a {
  color: rgba(255,255,255,.32);
  text-decoration: none;
  transition: color .25s ease;
}
.footer-credit a:hover { color: var(--accent); }

/* ── Animations ── */
.animate-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-left.visible { opacity: 1; transform: translateX(0); }
.animate-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 52ch;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Service Detail Cards (servicios page) ── */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 1.5rem;
}
.svc-detail:nth-child(even) { direction: rtl; }
.svc-detail:nth-child(even) > * { direction: ltr; }
.svc-detail-visual {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.svc-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0,185,216,.18), transparent 55%);
}
.svc-big-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 5rem;
  color: rgba(255,255,255,.06);
}
.svc-detail-tag {
  background: rgba(0,185,216,.2);
  border: 1px solid rgba(0,185,216,.4);
  border-radius: 2rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.svc-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}
.svc-feature-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.svc-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
}
.svc-feature i { color: var(--accent); flex-shrink: 0; }
.svc-brand-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.svc-brand-note i { color: var(--accent); }

/* ── Product Cards ── */
.product-section { border-bottom: 1px solid var(--border); }
.product-section:last-child { border-bottom: none; }
.prod-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.prod-brand-badge {
  background: var(--primary);
  color: white;
  border-radius: 0.375rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--trans);
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.prod-card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.prod-card-title { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 0.35rem; }
.prod-card-sub { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

/* ── Nosotros ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -1.7rem;
  top: 0.2rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(0,185,216,.3);
}
.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.timeline-text { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--accent);
  transition: var(--trans);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.value-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.value-text { font-size: 0.84rem; color: var(--text-light); line-height: 1.65; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,185,216,.15);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 120px; }
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0,185,216,.15), transparent 55%);
}
.cic-inner { position: relative; z-index: 1; }
.cic-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cic-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,.1);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.cic-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.5); margin-bottom: 0.2rem; }
.cic-value { font-size: 0.88rem; color: rgba(255,255,255,.9); line-height: 1.5; }
.cic-value a { color: rgba(255,255,255,.9); text-decoration: none; transition: color .2s; }
.cic-value a:hover { color: var(--accent); }
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrapper iframe { display: block; width: 100%; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; gap: 2rem; direction: ltr !important; }
}
@media (max-width: 768px) {
  #menu-btn { display: block; }
  .nav-links, .nav-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .intro-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .vs-grid  { grid-template-columns: 1fr; }
  .vs-block { padding: 2rem 1.25rem; }
  /* En táctil: el flip solo ocurre con .flipped (tap), no con :hover */
  @media (hover: none) {
    .why-item:hover .why-flip { transform: none; }
  }
  .footer-top { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
