/* ═══════════════════════════════════════════════════════
   CANCELERÍA APEX – styles.css
   Design System & Component Styles
═══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --c-bg:        hsl(215, 28%, 16%);
  --c-surface:   hsl(215, 25%, 21%);
  --c-surface2:  hsl(215, 22%, 26%);
  --c-border:    hsl(214, 22%, 32%);
  --c-text:      hsl(210, 33%, 96%);
  --c-muted:     hsl(213, 24%, 76%);
  --c-accent:    hsl(199, 92%, 62%);      /* sky blue */
  --c-accent2:   hsl(225, 76%, 72%);      /* indigo */
  --c-white:     hsl(0, 0%, 100%);
  --c-success:   hsl(142, 70%, 45%);

  --font-head:  'Rajdhani', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-disp:  'Bebas Neue', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-card: 0 20px 50px hsl(218, 35%, 8% / .45);
  --shadow-glow: 0 0 40px hsl(199, 90%, 60% / .2);

  --nav-h: 72px;
  --trans: cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
  max-width: 100vw;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; outline: none; }

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .25;
}

/* ══════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════ */
.cursor {
  position: fixed; z-index: 10000; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-accent);
  transform: translate(-50%, -50%);
  transition: transform .08s, width .2s var(--trans), height .2s var(--trans), background .2s;
}
.cursor-follower {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid hsl(199, 90%, 60% / .5);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--trans), width .3s var(--trans), height .3s var(--trans), opacity .3s;
}
body.cursor-hover .cursor { width: 16px; height: 16px; background: var(--c-accent2); }
body.cursor-hover .cursor-follower { width: 56px; height: 56px; border-color: hsl(230, 70%, 70% / .4); }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--trans), box-shadow .4s, backdrop-filter .4s;
}
.navbar.scrolled {
  background: hsl(215, 28%, 16% / .92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-container {
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 38px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
  transition: transform .25s var(--trans), filter .25s;
}
.nav-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 3px 14px rgba(56, 189, 248, 0.65));
}

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .06em;
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  transition: color .2s, background .2s;
  position: relative; display: flex; align-items: center; gap: .4rem;
}
.nav-link:hover, .nav-link.active { color: var(--c-white); }
.nav-link.nav-cta {
  background: var(--c-accent); color: var(--c-bg); font-weight: 700;
  padding: .5rem 1.2rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-link.nav-cta:hover {
  background: hsl(199, 90%, 70%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsl(199,90%,60%/.4);
}
.chevron {
  width: 12px;
  height: 8px;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron,
.nav-dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
}

/* Dropdown container desktop */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: hsl(215, 26%, 19% / .98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .5rem;
  min-width: 290px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  box-shadow: 0 20px 45px rgba(10, 16, 26, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 1005;
  margin-top: 0;
}

/* Invisible Hover Bridge:
   Prevents mouseleave when moving cursor from trigger link to the menu box */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

/* Open on hover, on .open (click/pinned), and on keyboard focus */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  transition: color .2s, background .2s, transform .2s;
  position: relative;
  z-index: 1002;
  cursor: pointer;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  color: var(--c-white);
  background: hsl(199, 90%, 60% / .15);
  transform: translateX(4px);
}

.dropdown-menu li a:hover .dm-icon {
  color: var(--c-accent);
  transform: scale(1.2);
}

.dm-icon {
  color: var(--c-accent);
  font-size: .75rem;
  transition: transform .2s, color .2s;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: .3rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 1.5rem) 0 3.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
  opacity: 0.96;
  filter: brightness(1.02) contrast(1.05);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(24, 34, 49, 0.80) 0%, rgba(24, 34, 49, 0.52) 48%, rgba(24, 34, 49, 0.22) 85%, rgba(24, 34, 49, 0.38) 100%),
    linear-gradient(to bottom, rgba(24, 34, 49, 0.32) 0%, transparent 42%, rgba(29, 39, 53, 0.78) 100%);
}

/* Grid lines deco */
.hero-grid-lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.vline, .hline { position: absolute; background: hsl(199,90%,60%/.08); }
.vline { width: 1px; top: 0; bottom: 0; }
.hline { height: 1px; left: 0; right: 0; }
.vl1 { left: 20%; animation: fadeGridLine 4s 0s ease-in-out infinite alternate; }
.vl2 { left: 50%; animation: fadeGridLine 4s .7s ease-in-out infinite alternate; }
.vl3 { left: 80%; animation: fadeGridLine 4s 1.4s ease-in-out infinite alternate; }
.hl1 { top: 33%; animation: fadeGridLine 4s .3s ease-in-out infinite alternate; }
.hl2 { top: 66%; animation: fadeGridLine 4s 1.1s ease-in-out infinite alternate; }
@keyframes fadeGridLine { from { opacity: .3; } to { opacity: 1; } }

.hero-container {
  max-width: 1260px; width: 100%; margin: 0 auto;
  padding: 0 2rem;
  position: relative; z-index: 2;
}

.hero-two-cols {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-col-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: .9rem; justify-content: flex-start;
  margin-bottom: 1.2rem;
  opacity: 0; animation: slideUp .8s .2s var(--trans) forwards;
}
.hero-eyebrow .eyebrow-line:last-child { display: none; }
.eyebrow-line { flex: 0 0 40px; height: 1px; background: var(--c-accent); }
.eyebrow-text { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; color: var(--c-accent); text-transform: uppercase; font-weight: 500; }

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(2.3rem, 3.8vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: .02em;
  color: var(--c-white);
  display: flex; flex-direction: column;
  margin-bottom: 1.15rem;
  text-align: left;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95);
}
.ht-line {
  display: block;
}
.ht-accent { color: var(--c-accent); text-shadow: 0 0 25px rgba(56, 189, 248, 0.5); }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  color: hsl(210, 30%, 94%);
  line-height: 1.6;
  font-weight: 400;
  max-width: 500px; margin: 0 0 1.75rem 0;
  text-shadow: 0 2px 14px hsl(220,20%,4%/.9), 0 1px 4px hsl(220,20%,4%/.8);
  text-align: left;
}

.hero-actions {
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}

.hero-stats {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 0;
  flex-wrap: nowrap;
  background: hsl(215, 28%, 14% / .78);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(199,90%,60%/.28);
  border-radius: 999px;
  padding: .5rem 1rem;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: 0 .75rem; }
.stat-num {
  font-family: var(--font-disp);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  color: var(--c-accent);
  line-height: 1;
  text-shadow: 0 0 16px hsl(199,90%,60%/.4);
}
.stat-suffix { font-family: var(--font-disp); font-size: 1.05rem; color: var(--c-accent); display: inline; }
.stat-label { font-size: .62rem; letter-spacing: .06em; color: hsl(210,25%,88%); text-transform: uppercase; white-space: nowrap; }
.stat-divider { width: 1px; height: 22px; background: hsl(199,90%,60%/.28); flex-shrink: 0; }

/* ── Hero Showcase (Columna Derecha) ── */
.hero-col-right {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.showcase-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: hsl(215, 26%, 18% / .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid hsl(199, 90%, 60% / .45);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 14, 24, .55), 0 0 35px hsl(199, 90%, 60% / .18);
  transition: transform .35s var(--trans), border-color .35s, box-shadow .35s;
}
.showcase-frame:hover {
  border-color: hsl(199, 90%, 60% / .55);
  box-shadow: 0 24px 60px rgba(8, 14, 24, .5), 0 0 45px hsl(199, 90%, 60% / .22);
}

.showcase-glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 75% 25%, hsl(199, 90%, 60% / .15), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.showcase-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(10, 16, 26, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #38bdf8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.showcase-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent);
  animation: showcasePulse 2s infinite ease-in-out;
}
@keyframes showcasePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

.showcase-image-wrapper {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: hsl(215, 26%, 16%);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.showcase-img.fade-out {
  opacity: .15;
  transform: scale(1.04);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 26, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

.showcase-bottom-bar {
  position: relative;
  z-index: 3;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(10, 16, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
}

.showcase-info {
  flex: 1;
  min-width: 0;
}

.showcase-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #38bdf8;
  display: block;
  margin-bottom: .2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  transition: opacity .3s;
}

.showcase-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  transition: opacity .3s;
}

.showcase-pills {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.showcase-dot {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: hsl(215, 20%, 36%);
  border: none;
  cursor: pointer;
  transition: background .3s, width .3s, box-shadow .3s;
  padding: 0;
}
.showcase-dot:hover {
  background: hsl(199, 90%, 60% / .6);
}
.showcase-dot.active {
  background: var(--c-accent);
  width: 32px;
  box-shadow: 0 0 10px hsl(199, 90%, 60% / .7);
}


.hero-scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .15em; color: var(--c-muted); text-transform: uppercase;
  opacity: 0; animation: fadeIn 1s 1.5s forwards;
}
.scroll-track {
  width: 1px; height: 48px; background: var(--c-border);
  position: relative; overflow: hidden;
}
.scroll-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 3px; height: 12px; background: var(--c-accent); border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ══════════════════════════════════
   TICKER BAND
══════════════════════════════════ */
.ticker-band {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent2) 100%);
  padding: .7rem 0;
}
.ticker-track {
  display: flex; gap: 2rem; align-items: center; white-space: nowrap;
  animation: ticker 28s linear infinite;
  width: max-content;
}
.ticker-track span {
  font-family: var(--font-head); font-size: .85rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-bg);
}
.ticker-sep { font-size: .5rem !important; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; letter-spacing: .07em;
  padding: .75rem 1.75rem; border-radius: var(--r-sm);
  border: none; cursor: none;
  transition: background .2s, transform .2s var(--trans), box-shadow .2s, color .2s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: hsl(0,0%,100%/.1);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--c-accent); color: var(--c-bg);
  box-shadow: 0 4px 20px hsl(199,90%,60%/.3);
}
.btn-primary:hover {
  background: hsl(199,90%,68%);
  box-shadow: 0 8px 32px hsl(199,90%,60%/.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--c-white);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }
.btn-whatsapp {
  background: hsl(142, 72%, 40%); color: var(--c-white);
  box-shadow: 0 4px 20px hsl(142,72%,40%/.3);
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover { background: hsl(142,72%,50%); transform: translateY(-2px); }
.btn-whatsapp svg { width: 22px; height: 22px; }
.btn-lg { font-size: 1.05rem; padding: .9rem 2.2rem; }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════
   SECTIONS COMMON
══════════════════════════════════ */
.section { padding: 7rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 5rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-body); font-size: .75rem;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
  letter-spacing: -.01em; color: var(--c-white); margin-bottom: 1rem;
}
.section-title em { font-style: normal; color: var(--c-accent); }
.section-desc { font-size: 1.05rem; color: var(--c-muted); line-height: 1.7; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--trans), transform .7s var(--trans); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
.services-section { background: var(--c-surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--trans), box-shadow .4s, border-color .3s;
  cursor: none;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: hsl(199,90%,60%/.3);
}
.sc-image { height: 220px; overflow: hidden; position: relative; flex-shrink: 0; }
.sc-image img { transition: transform .6s var(--trans); }
.service-card:hover .sc-image img { transform: scale(1.08); }
.sc-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--c-bg) 0%, transparent 60%);
}
.sc-body { padding: 1.5rem 1.75rem 2rem; }
.sc-icon {
  width: 44px; height: 44px; margin-bottom: 1rem;
  color: var(--c-accent);
  background: hsl(199,90%,60%/.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  transition: background .3s, transform .3s;
}
.service-card:hover .sc-icon { background: hsl(199,90%,60%/.2); transform: scale(1.1) rotate(5deg); }
.sc-body h2,
.sc-body h3,
.sc-title {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700;
  color: var(--c-white); margin-bottom: .6rem; letter-spacing: .02em;
  line-height: 1.25;
}
.sc-body p { color: var(--c-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 1rem; }
.sc-features { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.5rem; }
.sc-features li {
  font-size: .85rem; color: var(--c-muted);
  padding-left: 1.2rem; position: relative;
}
.sc-features li::before {
  content: '◈'; position: absolute; left: 0;
  color: var(--c-accent); font-size: .6rem; top: .1em;
}
.sc-link {
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  color: var(--c-accent); letter-spacing: .05em;
  display: flex; align-items: center; gap: .4rem;
  transition: gap .2s, color .2s;
}
.sc-link:hover { gap: .8rem; }
.sc-link span { transition: transform .2s; }
.sc-link:hover span { transform: translateX(4px); }

/* ══════════════════════════════════
   SECTORS
══════════════════════════════════ */
.sectors-section {
  position: relative;
  background: var(--c-bg);
  overflow: hidden;
}
.sectors-bg-strip {
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-accent) 50%, transparent 100%);
  opacity: .5;
}
.sectors-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
}
.sector-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: none;
  transition: transform .4s var(--trans), border-color .3s, box-shadow .4s;
}
.sector-card:hover {
  transform: translateY(-6px);
  border-color: hsl(199,90%,60%/.3);
  box-shadow: var(--shadow-card);
}
.sector-num {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: var(--font-disp); font-size: 3.5rem;
  color: hsl(199,90%,60%/.08); line-height: 1; z-index: 1;
  transition: color .3s;
}
.sector-card:hover .sector-num { color: hsl(199,90%,60%/.15); }
.sector-img-wrap { height: 200px; overflow: hidden; }
.sector-img-wrap img { transition: transform .6s var(--trans); }
.sector-card:hover .sector-img-wrap img { transform: scale(1.06); }
.sector-info { padding: 1.5rem; }
.sector-info h3 {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--c-white); margin-bottom: .6rem; letter-spacing: .02em;
}
.sector-info p { color: var(--c-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 1rem; }
.sector-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.sector-tags span {
  font-size: .73rem; letter-spacing: .08em; font-weight: 600;
  color: var(--c-accent); text-transform: uppercase;
  background: hsl(199,90%,60%/.1);
  padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid hsl(199,90%,60%/.2);
}

/* ══════════════════════════════════
   PROJECTS MASONRY
══════════════════════════════════ */
.projects-section { background: var(--c-surface); }
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 0 2rem;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.pm-item {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  cursor: pointer;
  transition: transform .4s var(--trans), border-color .3s, box-shadow .4s;
}
.pm-item:hover {
  transform: translateY(-6px);
  border-color: hsl(199,90%,60%/.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 25px hsl(199,90%,60%/.15);
}
.pm-item:nth-child(1) { grid-column: 1 / 8; height: 380px; }
.pm-item:nth-child(2) { grid-column: 8 / 13; height: 380px; }
.pm-item:nth-child(3) { grid-column: 1 / 5; height: 320px; }
.pm-item:nth-child(4) { grid-column: 5 / 9; height: 320px; }
.pm-item:nth-child(5) { grid-column: 9 / 13; height: 320px; }
.pm-item:nth-child(6) { grid-column: 1 / 13; height: 320px; }

.pm-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .4s;
}
.pm-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.pm-zoom-btn {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: hsl(215, 26%, 16% / .78);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(199, 90%, 60% / .3);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .3s var(--trans), background .2s;
  pointer-events: none;
  z-index: 2;
}
.pm-zoom-btn svg { width: 18px; height: 18px; }
.pm-item:hover .pm-zoom-btn { opacity: 1; transform: scale(1); }

.pm-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 4.5rem 1.5rem 1.35rem;
  background: linear-gradient(
    to top,
    rgba(8, 14, 24, 0.98) 0%,
    rgba(8, 14, 24, 0.92) 40%,
    rgba(8, 14, 24, 0.70) 70%,
    rgba(8, 14, 24, 0.25) 90%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(0); opacity: 1;
  transition: opacity .35s, transform .35s var(--trans), background .35s;
  z-index: 2;
}
.pm-item:hover .pm-caption {
  background: linear-gradient(
    to top,
    rgba(8, 14, 24, 1) 0%,
    rgba(8, 14, 24, 0.95) 45%,
    rgba(8, 14, 24, 0.78) 75%,
    rgba(8, 14, 24, 0.30) 92%,
    transparent 100%
  );
}
.pm-tag {
  display: inline-block;
  font-size: .72rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase;
  color: #07131e; background: #38bdf8;
  padding: .25rem .75rem; border-radius: 999px; margin-bottom: .45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.pm-caption h4 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: .3rem;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}
.pm-caption p {
  font-size: .9rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.about-badge-team {
  position: absolute; top: 1.25rem; left: 1.25rem;
  background: rgba(10, 16, 26, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  padding: .45rem .9rem;
  border-radius: 999px;
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.about-badge-team svg { color: #38bdf8; flex-shrink: 0; }

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
.about-section { background: var(--c-bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-visual { position: relative; }
.about-img-frame {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 4/3;
}
.about-img-frame img { width: 100%; height: 100%; }
.about-badge {
  position: absolute; bottom: 1.5rem; right: -1.5rem;
  background: var(--c-accent); color: var(--c-bg);
  border-radius: var(--r-md);
  padding: 1rem 1.4rem;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 10px 40px hsl(199,90%,60%/.4);
}
.ab-num { font-family: var(--font-disp); font-size: 2.8rem; line-height: 1; }
.ab-text { font-size: .72rem; letter-spacing: .06em; text-align: center; line-height: 1.4; }
.about-accent-block {
  position: absolute; top: -20px; left: -20px;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, hsl(199,90%,60%/.2), transparent);
  border-radius: var(--r-md);
  z-index: -1;
}
.about-content { display: flex; flex-direction: column; gap: 1.25rem; }
.about-content p { color: var(--c-muted); line-height: 1.75; font-size: .98rem; }
.about-content strong { color: var(--c-white); }
.about-pillars { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-icon { font-size: 1.2rem; color: var(--c-accent); flex-shrink: 0; margin-top: .1rem; }
.pillar div { display: flex; flex-direction: column; gap: .2rem; }
.pillar strong { font-family: var(--font-head); font-size: 1rem; color: var(--c-white); font-weight: 600; }
.pillar span { font-size: .88rem; color: var(--c-muted); }

/* ══════════════════════════════════
   CTA BAND
══════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, hsl(204, 48%, 22%) 0%, hsl(222, 42%, 24%) 100%);
  border-top: 1px solid hsl(199,90%,60%/.22);
  border-bottom: 1px solid hsl(199,90%,60%/.22);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--c-white); margin-bottom: .8rem; letter-spacing: -.01em;
}
.cta-band p { color: var(--c-muted); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.6; }
.cta-band p strong { color: var(--c-white); }
.cta-free-badge {
  display: inline-block;
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-bg);
  background: var(--c-accent);
  padding: .35rem 1.1rem; border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px hsl(199,90%,60%/.35);
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact-section { background: var(--c-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.ci-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: hsl(199,90%,60%/.12);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  padding: 8px;
}
.ci-item div { display: flex; flex-direction: column; gap: .2rem; }
.ci-item strong { font-family: var(--font-head); font-size: .95rem; color: var(--c-white); font-weight: 600; }
.ci-item span, .ci-item a { font-size: .9rem; color: var(--c-muted); transition: color .2s; }
.ci-item a:hover { color: var(--c-accent); }
.ci-whatsapp { margin-top: .5rem; }

/* Form */
.contact-form {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-size: .82rem; color: var(--c-muted); font-weight: 500; letter-spacing: .04em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--c-surface2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: .92rem;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  cursor: none;
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: hsl(214, 18%, 56%); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px hsl(199,90%,60%/.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; padding-right: 2.5rem; }
.sel-chevron { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 12px; height: 8px; pointer-events: none; color: var(--c-muted); }
.service-checkboxes { display: flex; flex-wrap: wrap; gap: .6rem; }
.check-label {
  display: flex; align-items: center; gap: .45rem;
  font-size: .87rem; color: var(--c-muted);
  background: var(--c-surface2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: .45rem .9rem;
  cursor: none;
  transition: border-color .2s, color .2s, background .2s;
}
.check-label:hover { border-color: hsl(199,90%,60%/.4); color: var(--c-accent); }
.check-label input { display: none; }
.check-label:has(input:checked) {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: hsl(199,90%,60%/.12);
}
.form-disclaimer { font-size: .75rem; color: hsl(214, 18%, 62%); text-align: center; }
.form-disclaimer a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .2s, text-decoration-color .2s;
}
.form-disclaimer a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

/* Contact Form Wrap & Success State */
.contact-form-wrap {
  position: relative;
  width: 100%;
}
.form-success {
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 3.5rem 2rem;
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  min-height: 380px;
}
.form-success.is-visible {
  display: flex !important;
  animation: fadeIn .4s var(--trans) forwards;
}
.form-success > svg { width: 56px; height: 56px; flex-shrink: 0; }
.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--c-white);
  font-weight: 700;
  margin: 0;
}
.form-success p {
  font-size: .95rem;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}
.success-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  max-width: 420px;
  margin-top: .5rem;
}
.success-actions .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.success-actions .btn-whatsapp svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
}
#nombre {
  text-transform: capitalize;
}
[hidden] {
  display: none !important;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer { background: hsl(216, 30%, 13%); border-top: 1px solid var(--c-border); }
.footer-top { padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-img {
  height: 38px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
}
.footer-brand p { font-size: .88rem; color: var(--c-muted); line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { color: var(--c-accent); border-color: hsl(199,90%,60%/.3); background: hsl(199,90%,60%/.08); }
.footer-links-col h4 {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: var(--c-white); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-links-col a { font-size: .88rem; color: var(--c-muted); transition: color .2s, padding-left .2s; }
.footer-links-col a:hover { color: var(--c-accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 1.2rem 0;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: hsl(214, 18%, 62%); }
.footer-bottom a { color: hsl(214, 18%, 62%); transition: color .2s; }
.footer-bottom a:hover { color: var(--c-accent); }

/* ══════════════════════════════════
   FLOATING WHATSAPP & BACK TO TOP
══════════════════════════════════ */
.floating-whatsapp {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 950;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25d366; color: #ffffff;
  padding: .75rem 1.3rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.3);
  font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .25s var(--trans), box-shadow .25s, background .2s;
  animation: whatsappPulse 3s infinite ease-in-out;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.floating-whatsapp svg { width: 24px; height: 24px; flex-shrink: 0; }
.floating-whatsapp:hover, .floating-whatsapp:active {
  background: #20ba59;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.18); }
}

.back-to-top {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 940;
  width: 44px; height: 44px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, background .2s, color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover, .back-to-top:active { background: var(--c-accent); color: var(--c-bg); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* Mobile nav overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: hsl(215, 28%, 12% / .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav-overlay.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════
   RESPONSIVE DESIGN (MOBILE & TABLET)
══════════════════════════════════ */

/* Touch / No Hover Devices */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor, .cursor-follower { display: none !important; }
  a, button, input, select, textarea, .service-card, .sector-card, .pm-item, .check-label {
    cursor: pointer !important;
  }
}

/* Tablets (1024px and down) */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .hero-two-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-title { font-size: clamp(2.1rem, 3.4vw, 3.2rem); }
  .showcase-image-wrapper { height: 260px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { right: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .projects-masonry { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pm-item:nth-child(1) { grid-column: 1 / 3; height: 320px; }
  .pm-item:nth-child(2) { grid-column: 1 / 2; height: 280px; }
  .pm-item:nth-child(3) { grid-column: 2 / 3; height: 280px; }
  .pm-item:nth-child(4) { grid-column: 1 / 2; height: 280px; }
  .pm-item:nth-child(5) { grid-column: 2 / 3; height: 280px; }
  .pm-item:nth-child(6) { grid-column: 1 / 3; height: 300px; }
}

/* Mobile & Tablet Portrait (900px and down) */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }

  /* Navbar */
  .nav-container { padding: 0 1.25rem; }
  .nav-logo-img { height: 32px; max-width: 110px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    background: hsl(215, 24%, 22%);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    z-index: 1001;
    cursor: pointer;
    touch-action: manipulation;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100svh - var(--nav-h));
    background: hsl(215, 28%, 16% / .98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    gap: .35rem;
    padding: 1.25rem 1.25rem 2.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .35s var(--trans);
    border-top: 1px solid var(--c-border);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link {
    font-size: 1.1rem;
    padding: .9rem 1.1rem;
    width: 100%;
    border-radius: var(--r-md);
    background: hsl(215, 24%, 22% / .75);
    border: 1px solid var(--c-border);
    justify-content: space-between;
    min-height: 48px;
  }
  .nav-link:active, .nav-link:hover {
    background: hsl(215, 24%, 26%);
    color: var(--c-white);
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    background: hsl(215, 26%, 19%);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: .5rem;
    margin: .35rem 0 .5rem;
    width: 100%;
    box-shadow: none;
    display: none;
  }
  .dropdown-menu::before {
    display: none !important;
  }
  .nav-dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: ddSlide .25s ease-out;
  }
  @keyframes ddSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .dropdown-menu li a {
    font-size: .95rem;
    padding: .8rem 1rem;
    border-radius: var(--r-sm);
    min-height: 44px;
  }
  .nav-link.nav-cta {
    margin-top: .75rem;
    text-align: center;
    justify-content: center;
    padding: .95rem 1.5rem;
    font-size: 1.05rem;
  }

  /* Hero Tablet Portrait */
  .hero {
    min-height: 100svh;
    padding: calc(var(--nav-h) + 1.25rem) 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-two-cols { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .hero-col-right { width: 100%; max-width: 440px; margin: 0 auto; }
  .showcase-image-wrapper { height: 250px; }
  .hero-container { padding: 0 1.25rem; width: 100%; }
  .hero-content { padding: 0; max-width: 100%; text-align: left; }
  .hero-eyebrow { justify-content: flex-start; }
  .hero-title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1rem; text-align: left; }
  .hero-subtitle { font-size: .98rem; line-height: 1.6; margin-bottom: 1.75rem; text-align: left; }
  .hero-actions { margin-bottom: 2rem; justify-content: flex-start; }
  .hero-actions .btn { width: auto; min-width: 200px; justify-content: center; }

  /* Hero Stats on Tablet */
  .hero-stats {
    display: inline-flex;
    padding: .6rem 1.1rem;
    gap: 0;
  }
  .stat-item { padding: 0 .75rem; }
  .stat-num { font-size: 1.45rem; }
  .stat-suffix { font-size: 1.1rem; }
  .stat-label { font-size: .62rem; }
  .stat-divider { display: block; height: 22px; }
}

/* Mobile Phones (768px and down) */
@media (max-width: 768px) {
  .hero-two-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-col-left {
    width: 100%;
  }
  .hero-col-right {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
  .showcase-image-wrapper { height: 230px; }
  .showcase-bottom-bar { padding: .75rem 1rem; }
  .showcase-title { font-size: .98rem; }
  .hero-title { font-size: clamp(2.1rem, 8.5vw, 3.2rem); }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  /* Hero Stats on Mobile Phone */
  .hero-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 1.75rem 0;
    border-radius: var(--r-md);
    padding: .75rem .4rem;
    background: hsl(215, 28%, 15% / .82);
  }
  .stat-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2px;
  }
  .stat-num { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
  .stat-suffix { font-size: .95rem; }
  .stat-label { font-size: .56rem; white-space: normal; text-align: center; line-height: 1.2; word-break: break-word; }
  .stat-divider { display: none !important; }

  .hero-scroll-cue { display: none; }

  /* Projects Masonry on Touch */
  .projects-masonry { padding: 0 1.25rem; }
  .pm-caption { opacity: 1; transform: translateY(0); }

  /* Services & Sectors Grid */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 1.5rem;
  }
  .sc-image { height: 210px; }

  /* Sectors */
  .sectors-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  /* Contact Form */
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .contact-form { padding: 1.75rem 1.25rem; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    min-height: 46px;
    padding: .75rem .9rem;
  }
  .service-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .check-label {
    min-height: 44px;
    padding: .6rem .8rem;
    justify-content: center;
    font-size: .85rem;
    text-align: center;
  }

  /* Floating WhatsApp */
  .floating-whatsapp {
    bottom: 1.25rem; right: 1.25rem;
    padding: .65rem 1rem;
    font-size: .85rem;
  }
  /* Responsive Specs Table */
  .page-specs-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-specs-table th,
  .page-specs-table td {
    padding: .85rem 1rem;
    font-size: .85rem;
    white-space: normal;
  }
}

/* Small Smart Phones (480px and down) */
@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
  .section-header { margin-bottom: 2.8rem; }
  .section-title { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .section-desc { font-size: .95rem; }

  /* Hero */
  .hero-eyebrow { gap: .5rem; }
  .eyebrow-line { flex: 0 0 20px; }
  .eyebrow-text { font-size: .7rem; letter-spacing: .12em; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-subtitle { font-size: .92rem; line-height: 1.6; }

  /* Hero Stats */
  .hero-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .3rem;
    gap: .2rem;
  }
  .stat-item { flex: 1 1 0; min-width: 0; padding: 0 2px; }
  .stat-num { font-size: 1.25rem; }
  .stat-suffix { font-size: .9rem; }
  .stat-label { font-size: .52rem; line-height: 1.2; text-align: center; }

  /* About */
  .about-img-frame { aspect-ratio: 16/10; }
  .about-badge {
    right: .75rem; bottom: .75rem;
    padding: .6rem .9rem;
  }
  .ab-num { font-size: 2rem; }
  .ab-text { font-size: .65rem; }

  /* CTA Band */
  .cta-band { padding: 3.5rem 1rem; }
  .cta-band h2 { font-size: 1.75rem; }
  .cta-band p { font-size: .95rem; }
  .cta-band-inner .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Projects */
  .projects-masonry { grid-template-columns: 1fr; padding: 0 1rem; gap: .85rem; }
  .pm-item { grid-column: 1 / -1 !important; height: 260px !important; }
  .pm-caption { padding: 3.2rem 1.15rem 1rem; }
  .pm-caption h4 { font-size: 1.08rem; margin-bottom: .2rem; }
  .pm-caption p { font-size: .84rem; line-height: 1.35; }

  /* Footer */
  .footer-top { padding: 3rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-social a { width: 44px; height: 44px; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: .5rem; }
}

/* Extra small devices (<= 360px: iPhone SE, Galaxy Fold cover, etc.) */
@media (max-width: 360px) {
  .hero-title { font-size: 2rem; }
  .hero-stats {
    padding: .5rem .25rem;
  }
  .stat-num { font-size: 1.15rem; }
  .stat-label { font-size: .5rem; }
  .service-checkboxes { grid-template-columns: 1fr; }
  .floating-whatsapp .floating-whatsapp-text { display: none; }
  .floating-whatsapp { padding: 0; width: 48px; height: 48px; justify-content: center; border-radius: 50%; }
  .floating-whatsapp svg { width: 26px; height: 26px; }
}

/* ══════════════════════════════════
   LIGHTBOX MODAL
══════════════════════════════════ */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox-modal.active {
  opacity: 1; pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(18, 26, 38, 0.85);
  backdrop-filter: blur(12px);
}
.lightbox-container {
  position: relative; z-index: 2;
  width: 100%; max-width: 1050px;
  max-height: 88vh;
  background: var(--c-surface);
  border: 1px solid hsl(199, 90%, 60% / .3);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 60px rgba(8, 14, 24, 0.7), 0 0 50px hsl(199, 90%, 60% / .15);
  overflow: hidden;
  transform: scale(.94) translateY(14px);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.lightbox-modal.active .lightbox-container {
  transform: scale(1) translateY(0);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: hsl(215, 26%, 18% / .88);
  border: 1px solid var(--c-border);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.lightbox-close:hover {
  background: var(--c-accent); color: var(--c-bg);
  transform: rotate(90deg);
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-dialog {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  max-height: 85vh;
  overflow: hidden;
}
.lightbox-media {
  background: hsl(215, 28%, 13%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  max-height: 85vh;
}
.lightbox-media img {
  width: 100%; height: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: hsl(215, 28%, 13%);
}
.lightbox-sidebar {
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  justify-content: center;
  background: var(--c-surface);
  overflow-y: auto;
}
.lightbox-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase;
  color: var(--c-accent); background: hsl(199, 90%, 60% / .12);
  border: 1px solid hsl(199, 90%, 60% / .25);
  padding: .3rem .8rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.lightbox-title {
  font-family: var(--font-head);
  font-size: 1.65rem; font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.lightbox-desc {
  font-size: .95rem; color: var(--c-muted);
  line-height: 1.75; margin-bottom: 2rem;
}
.lightbox-actions {
  display: flex; flex-direction: column; gap: .75rem;
}
@media (max-width: 900px) {
  .lightbox-dialog { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .lightbox-media { max-height: 44vh; }
  .lightbox-sidebar { padding: 1.5rem; }
  .lightbox-title { font-size: 1.3rem; }
}

/* ══════════════════════════════════
   INNER PAGES STYLES
══════════════════════════════════ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.5rem) 0 4rem;
  background: radial-gradient(circle at 50% 0%, hsl(199, 90%, 60% / .14) 0%, transparent 60%),
              linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.page-hero-grid:not(:has(.page-hero-img-wrap)) {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}
.breadcrumbs {
  display: none !important;
}
.breadcrumbs a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover {
  color: var(--c-accent);
}
.breadcrumbs .sep {
  color: hsl(214, 20%, 52%);
  font-size: .7rem;
}
.breadcrumbs .current {
  color: var(--c-accent);
  font-weight: 600;
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
.page-title em {
  font-style: normal;
  color: var(--c-accent);
  text-shadow: 0 0 25px hsl(199, 90%, 60% / .35);
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}
.page-hero-img-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid hsl(199, 90%, 60% / .28);
  box-shadow: 0 20px 45px rgba(8, 14, 24, 0.45), 0 0 35px hsl(199, 90%, 60% / .12);
  aspect-ratio: 4/3;
}
.page-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.page-specs-table th {
  background: hsl(215, 26%, 24%);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: .04em;
}
.page-specs-table td {
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--c-muted);
  border-bottom: 1px solid hsl(215, 20%, 27%);
  line-height: 1.6;
}
.page-specs-table tr:last-child td {
  border-bottom: none;
}
.page-specs-table tr:hover td {
  background: hsl(199, 90%, 60% / .06);
  color: var(--c-white);
}
.page-specs-table strong {
  color: var(--c-accent);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.faq-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.faq-card:hover {
  transform: translateY(-4px);
  border-color: hsl(199, 90%, 60% / .35);
  box-shadow: 0 10px 25px rgba(8, 14, 24, 0.35);
}
.faq-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.faq-card h3 svg {
  color: var(--c-accent);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq-card p {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}
.feature-split.reverse {
  direction: rtl;
}
.feature-split.reverse > * {
  direction: ltr;
}
.feature-split-img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-card);
}
.feature-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.policy-doc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.policy-doc h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-white);
  margin: 2.2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--c-border);
}
.policy-doc h2:first-of-type {
  margin-top: 0;
}
.policy-doc p,
.policy-doc li {
  font-size: .95rem;
  color: var(--c-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.policy-doc ul,
.policy-doc ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.policy-doc li {
  margin-bottom: .6rem;
  text-align: justify;
  text-justify: inter-word;
}
.policy-doc strong {
  color: var(--c-white);
}

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split.reverse { direction: ltr; }
  .policy-doc { padding: 1.75rem; }
}

/* ══════════════════════════════════
   SEO COMPONENTS: PROCESO, COBERTURA & PRECIOS
══════════════════════════════════ */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.process-step-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: transform .3s var(--trans), border-color .3s;
}
.process-step-card:hover {
  transform: translateY(-5px);
  border-color: hsl(199, 90%, 60% / .4);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: hsl(199, 90%, 60% / .25);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 700;
  transition: color .3s;
}
.process-step-card:hover .step-number {
  color: var(--c-accent);
}
.process-step-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--c-white);
  margin-bottom: .8rem;
}
.process-step-card p {
  font-size: .92rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.price-notice-box {
  background: linear-gradient(135deg, hsl(215, 26%, 23%), hsl(215, 28%, 19%));
  border: 1px solid hsl(199, 90%, 60% / .28);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}
.price-notice-box p {
  color: var(--c-white);
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
}

.coverage-regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.coverage-region-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
}
.coverage-region-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--c-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.coverage-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cov-pill {
  font-size: .82rem;
  background: hsl(215, 22%, 25%);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  padding: .35rem .75rem;
  border-radius: var(--r-sm);
  transition: all .2s;
  display: inline-block;
}
.cov-pill:hover {
  background: hsl(199, 90%, 60% / .15);
  color: var(--c-accent);
  border-color: hsl(199, 90%, 60% / .35);
}

/* ══════════════════════════════════
   GALLERY OF REAL APEX MOCKUPS & WORKS
══════════════════════════════════ */
.mockup-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.mockup-gallery-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transition: transform .3s var(--trans), border-color .3s, box-shadow .3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.mockup-gallery-card:hover {
  transform: translateY(-6px);
  border-color: hsl(199, 90%, 60% / .45);
  box-shadow: 0 20px 40px rgba(8, 14, 24, 0.4), 0 0 25px hsl(199, 90%, 60% / .15);
}
.mockup-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: hsl(215, 26%, 16%);
}
.mockup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--trans);
}
.mockup-gallery-card:hover .mockup-img-wrap img {
  transform: scale(1.05);
}
.mockup-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 16, 26, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: var(--r-full);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.mockup-badge.badge-uniform {
  border-color: rgba(74, 222, 128, 0.6);
  color: #4ade80;
  background: rgba(10, 24, 18, 0.94);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.mockup-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mockup-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: .5rem;
}
.mockup-card-body p {
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.mockup-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--c-border);
  padding-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-accent);
}
@media (max-width: 1024px) {
  .mockup-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mockup-gallery-grid { grid-template-columns: 1fr; }
}



/* ══════════════════════════════════
   MOBILE HARDENING (v5.1)
   Garantiza que ningún bloque exceda el ancho del celular
══════════════════════════════════ */
img, video, svg, iframe { max-width: 100%; }
body { overflow-x: hidden; }

/* Los hijos de grid/flex no deben imponer su ancho mínimo de contenido */
.hero-container,
.hero-two-cols > *,
.contact-grid > *,
.footer-grid > *,
.page-hero-grid > *,
.services-grid > *,
.sectors-grid > * { min-width: 0; }

@media (max-width: 768px) {
  .hero { align-items: flex-start; }
  .hero-two-cols { grid-template-columns: minmax(0, 1fr); }
  .hero-col-left,
  .hero-col-right,
  .hero-subtitle,
  .hero-stats,
  .showcase-frame { max-width: 100%; }
  .hero-col-right { max-width: 100%; }
  .showcase-frame { margin: 0 auto; }

  /* Textos largos (correos, URLs) no deben desbordar */
  p, li, a, h1, h2, h3, h4, td, th { overflow-wrap: anywhere; word-break: normal; }
  h1, h2, h3 { hyphens: auto; }

  /* Legibilidad mínima en celulares */
  .stat-label { font-size: .62rem !important; letter-spacing: .03em; }
  .eyebrow-text { font-size: .72rem; }

  /* Botones a todo el ancho y cómodos al tacto */
  .hero-actions { width: 100%; }
  .hero-actions .btn { max-width: 100%; }
  .btn { min-height: 46px; }

  /* Tablas con scroll horizontal propio */
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Lightbox ocupa la pantalla correctamente */
  .lightbox-modal { padding: .75rem; }
  .lightbox-container { max-height: 92svh; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .hero-stats { padding: .7rem .4rem; }
  .stat-num { font-size: 1.35rem; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.95rem; }
  .stat-label { font-size: .56rem !important; }
}

/* ── Menú móvil: apilar elementos a todo el ancho ── */
@media (max-width: 900px) {
  .nav-links { align-items: stretch; justify-content: flex-start; }
  .nav-links > li { width: 100%; list-style: none; }
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    width: 100%;
  }
  .nav-dropdown > .nav-link { width: 100%; }
  .dropdown-menu { min-width: 0; left: auto; top: auto; }
  /* En táctil sólo abre con toque (.open), no por hover/focus */
  .nav-dropdown:hover:not(.open) .dropdown-menu,
  .nav-dropdown:focus-within:not(.open) .dropdown-menu { display: none; }
  .nav-dropdown:not(.open) .chevron { transform: none; }
}
