/* ============================================================
   QUARTZ SRL — styles.css
   Stack: HTML + CSS + JS vanilla. Sin frameworks.
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy-950: #031426;
  --navy-900: #061b33;
  --navy-800: #082744;
  --blue-600: #1464b4;
  --blue-500: #1d7ed0;
  --blue-400: #4a9de0;
  --blue-300: #7fb6e8;
  --steel:    #8da2b8;
  --surface:  #f5f7fa;
  --white:    #ffffff;
  --text:     #102033;
  --muted:    #5d6b7a;
  --border:   rgba(8,39,68,.14);

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --gutter:      clamp(1.25rem, 4vw, 2rem);
  --max-width:   1240px;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-premium: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── SKIP LINK ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue-500);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── FOCUS VISIBLE ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── SCROLL PROGRESS ────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  z-index: 9998;
  transition: width .05s linear;
  pointer-events: none;
}

/* ── PAGE LOADER ────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity .55s var(--ease-out), visibility .55s var(--ease-out);
}
#page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { opacity: .9; }
.loader-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  animation: loaderFill 1.3s var(--ease-out) forwards;
}
@keyframes loaderFill { from { width: 0; } to { width: 100%; } }

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--blue-500);
  flex-shrink: 0;
}
.eyebrow--light { color: var(--blue-300); }
.eyebrow--light::before { background: var(--blue-300); }

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.section-title--light { color: var(--white); }

.section-label {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.01em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header--light .section-intro { color: var(--steel); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-lg { padding: .85rem 2rem; font-size: .95rem; }

/* Ripple al hacer click */
.btn-ripple {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transform: translate(-50%, -50%) scale(0);
  animation: btn-ripple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes btn-ripple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,126,208,.35);
}
.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 28px rgba(29,126,208,.45);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.07);
}

.btn-ghost {
  background: transparent;
  color: var(--steel);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-500); }

.btn-block { width: 100%; justify-content: center; }

/* Arrow animation on hover */
.btn-arrow { transition: transform .25s var(--ease-out); flex-shrink: 0; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── SECTION BASE ───────────────────────────────────────────── */
.section { padding-block: var(--section-pad); }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 72px;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s var(--ease-out);
}
.site-header .container { height: 100%; }
.header-inner { height: 100%; }
.site-header.scrolled {
  background: rgba(6,27,51,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(3,20,38,.4);
}
.header-inner {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}
.header-logo,
.header-actions { align-self: center; }
.header-logo img { height: 38px; width: auto; }
.main-nav { display: none; margin-left: auto; align-self: stretch; }
.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
}
.nav-list li {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: color .2s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.nav-link::after { display: none; }
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--blue-400);
  background: rgba(255,255,255,.05);
}

.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header-cta { display: none; }

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.2);
  transition: border-color .2s;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: rgba(255,255,255,.5); }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-premium), opacity .2s;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,20,38,.72);
  backdrop-filter: blur(5px);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.menu-overlay.is-visible { opacity: 1; pointer-events: all; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 82%;
  max-width: 360px;
  background: var(--navy-900);
  border-left: 1px solid rgba(255,255,255,.06);
  z-index: 700;
  transform: translateX(100%);
  transition: transform .38s var(--ease-premium);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.mobile-menu-header img { height: 32px; width: auto; }

.menu-close {
  color: var(--steel);
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.menu-close:hover { color: var(--white); background: rgba(255,255,255,.08); }

.mobile-nav { flex: 1; padding: 1.5rem 0; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: block;
  padding: .95rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s, padding-left .2s, background .2s;
  letter-spacing: .01em;
}
.mobile-nav-link:hover {
  color: var(--white);
  padding-left: 2.25rem;
  background: rgba(255,255,255,.04);
}

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.mobile-menu-foot {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.mobile-claim {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--steel);
  text-transform: uppercase;
}

body.menu-open { overflow: hidden; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  position: relative;
  z-index: 1;
}
/* Canvas de grilla técnica — sobre el overlay del hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    var(--navy-950) 0%,
    rgba(6,27,51,.97) 35%,
    rgba(6,27,51,.82) 55%,
    rgba(8,39,68,.55) 75%,
    rgba(8,39,68,.25) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(3rem, 6vh, 5rem);
  width: 100%;
}
.hero-content { max-width: 62ch; }

.hero-eyebrow { color: var(--blue-300); }
.hero-eyebrow::before { background: var(--blue-300); }

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero-desc {
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 56ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
  font-size: .78rem;
  color: var(--steel);
  letter-spacing: .03em;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-services .sep { color: var(--blue-500); opacity: .7; }

.hero-visual {
  display: none;
  align-items: center;
  justify-content: flex-end;
}
.hero-crystal {
  width: min(420px, 40vw);
  height: auto;
  animation: crystalPulse 6s ease-in-out infinite;
}
@keyframes crystalPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 1.5px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  margin: 0 auto;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ── SECTION VALOR ──────────────────────────────────────────── */
.section-valor {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.valor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.valor-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.valor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--blue-500);
  transition: height .35s var(--ease-out);
}
.valor-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(8,39,68,.12); border-color: rgba(29,126,208,.2); }
.valor-card:hover::before { height: 100%; }
.valor-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,126,208,.08);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  color: var(--blue-500);
}
.valor-icon img { width: 26px; height: 26px; filter: invert(38%) sepia(89%) saturate(500%) hue-rotate(189deg) brightness(90%) contrast(95%); }
.valor-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.valor-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── SECTION NOSOTROS ───────────────────────────────────────── */
.section-nosotros { background: var(--surface); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.nosotros-body { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.nosotros-body p { font-size: 1rem; color: var(--muted); line-height: 1.75; }

.nosotros-claim {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-600);
  border-left: 3px solid var(--blue-500);
  padding-left: 1rem;
  line-height: 1.5;
}

/* Nosotros image */
.nosotros-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  z-index: 0;
}
.nosotros-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.nosotros-crystal-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nosotros-crystal-overlay svg {
  width: 55%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(29,126,208,.25));
}

/* ── SECTION SERVICIOS ──────────────────────────────────────── */
.section-servicios { background: var(--navy-900); }
.section-servicios .eyebrow       { color: var(--blue-300); }
.section-servicios .eyebrow::before { background: var(--blue-300); }
.section-servicios .section-title  { color: var(--white); }
.section-servicios .section-intro  { color: var(--steel); }
.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.servicio-card {
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.servicio-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transition: transform .35s var(--ease-premium);
  transform-origin: left;
}
.servicio-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(3,20,38,.45); }
.servicio-card:hover::after { transform: scaleX(1); }

/* Card head — zona oscura: icono + título */
.servicio-card-head {
  background: var(--navy-800);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .28s var(--ease-out);
}
.servicio-card:hover .servicio-card-head { background: #0a3058; }

/* Card body — zona clara: descripción + lista */
.servicio-card-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  flex: 1;
}

/* mobile: 1 por fila */
.servicio-card { flex: 0 0 100%; }

/* tablet: 2 por fila */
@media (min-width: 540px) {
  .servicio-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}

/* desktop: 3 por fila, los últimos 2 quedan centrados por justify-content: center */
@media (min-width: 900px) {
  .servicio-card { flex: 0 0 calc((100% - 3rem) / 3); }
}

.servicio-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  transition: background .25s;
}
.servicio-card:hover .servicio-icon { background: rgba(74,157,224,.18); }
.servicio-icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); opacity: .9; }

.servicio-title { font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.servicio-desc { font-size: .9rem; color: var(--muted); line-height: 1.65; flex: 1; }

.servicio-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.servicio-list li {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.servicio-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── SECTION PROCESO ────────────────────────────────────────── */
.section-proceso { background: var(--surface); }

.proceso-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  padding-top: 1rem;
}

.proceso-step {
  padding: 2rem 0 2rem 5rem;
  position: relative;
  border-left: 1.5px solid var(--border);
  transition: border-color .3s;
}
.proceso-step:last-child { border-left-color: transparent; }
.proceso-step:hover { border-left-color: var(--blue-400); }

.paso-num {
  position: absolute;
  left: -1.5rem;
  top: 1.85rem;
  width: 3rem; height: 3rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--blue-500);
  letter-spacing: .05em;
  transition: background .25s, border-color .25s, color .25s;
  z-index: 1;
}
.proceso-step:hover .paso-num {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--white);
}

.paso-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .45rem; }
.paso-desc { font-size: .9rem; color: var(--muted); line-height: 1.65; max-width: 42ch; }

/* ── SECTION INDUSTRIAS ─────────────────────────────────────── */
.section-industrias { background: var(--white); }
.industrias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.industria-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.industria-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(8,39,68,.1); border-color: rgba(29,126,208,.22); }

.industria-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,126,208,.07);
  border-radius: var(--radius-sm);
  color: var(--blue-500);
  transition: background .25s;
}
.industria-card:hover .industria-icon { background: rgba(29,126,208,.14); }
.industria-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.industria-desc { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ── SECTION POR QUÉ QUARTZ ─────────────────────────────────── */
.section-porque {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.porque-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 38vw, 520px);
  color: rgba(255,255,255,.045);
  pointer-events: none;
  z-index: 0;
}
.porque-watermark svg { width: 100%; height: auto; }
.section-porque .container { position: relative; z-index: 1; }

.porque-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.porque-card {
  padding: 1.75rem 1.5rem;
  background: rgba(8,39,68,.6);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.porque-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--blue-400);
  transition: height .35s var(--ease-out);
}
.porque-card:hover { transform: translateY(-3px); border-color: rgba(29,126,208,.35); background: rgba(8,39,68,.85); }
.porque-card:hover::before { height: 100%; }

.porque-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,126,208,.12);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.porque-icon img { width: 24px; height: 24px; filter: invert(1) brightness(2); }
.porque-card-title { font-size: .95rem; font-weight: 700; color: var(--white); }
.porque-card-desc { font-size: .875rem; color: var(--steel); line-height: 1.65; }

/* ── SECTION BROCHURE ──────────────────────────────────────── */
.section-brochure {
  background: var(--surface);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brochure-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
}
.brochure-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.brochure-content {
  flex: 1;
  min-width: 200px;
}
.eyebrow--dark {
  color: var(--blue-600);
}
.brochure-title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .5rem;
}
.brochure-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}
@media (max-width: 599px) {
  .brochure-inner { flex-direction: column; align-items: flex-start; }
  .section-brochure .btn { width: 100%; justify-content: center; }
}

/* ── SECTION CTA ────────────────────────────────────────────── */
.section-cta {
  background: var(--navy-950);
  padding-block: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.section-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.section-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3,20,38,.52) 0%,
    rgba(6,27,51,.58) 50%,
    rgba(3,20,38,.62) 100%
  );
}
.section-cta .container { position: relative; z-index: 1; }
.section-cta::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-600), transparent);
  z-index: 2;
}
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-title {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.cta-desc {
  font-size: 1rem;
  color: var(--steel);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ── PRE-FOOTER CTA ─────────────────────────────────────────── */
.section-pre-footer {
  background: var(--navy-800);
  padding-block: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.section-pre-footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-pre-footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.section-pre-footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3,20,38,.55) 0%,
    rgba(6,27,51,.6) 50%,
    rgba(3,20,38,.62) 100%
  );
}
.section-pre-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
}
.pre-footer-watermark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 28vw, 380px);
  color: rgba(255,255,255,.035);
  pointer-events: none;
}
.pre-footer-watermark svg { width: 100%; height: auto; }
.section-pre-footer .container { position: relative; z-index: 1; }
.section-pre-footer .footer-contact {
  padding-block: 0;
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}
.section-pre-footer .footer-contact-ctas { justify-content: center; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-watermark {
  position: absolute;
  left: -4%;
  bottom: 3rem;
  width: clamp(200px, 28vw, 380px);
  color: rgba(255,255,255,.035);
  pointer-events: none;
}
.footer-watermark svg { width: 100%; height: auto; }

.site-footer .container { position: relative; z-index: 1; }

.footer-contact {
  padding-block: clamp(3rem, 6vw, 5rem);
  max-width: 680px;
}
.footer-contact-title {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.footer-contact-desc { font-size: 1rem; color: var(--steel); line-height: 1.75; margin-bottom: 2rem; }
.footer-contact-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 36px; width: auto; }
.footer-brand-desc { font-size: .875rem; color: var(--steel); line-height: 1.7; margin-bottom: 1.5rem; max-width: 32ch; }

.footer-address { display: flex; flex-direction: column; gap: .6rem; }
.footer-address p {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--steel);
}
.footer-address a { color: var(--steel); transition: color .2s; display: flex; align-items: center; gap: .5rem; }
.footer-address a:hover { color: var(--blue-300); }
.footer-address svg { flex-shrink: 0; color: var(--blue-500); }

.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav-list a {
  font-size: .875rem;
  color: var(--steel);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer-nav-list a:hover { color: var(--white); padding-left: .35rem; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-claim {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: .7;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-copy a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-copy a:hover { color: rgba(255,255,255,.7); }

/* Firma Duclos */
.footer-firma-wrap { display: flex; }
.firma-duclos {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  opacity: .45;
  transition: opacity .25s;
}
.firma-duclos:hover { opacity: .85; }
.firma-duclos span { font-size: .72rem; color: var(--steel); white-space: nowrap; }
.firma-duclos img { height: 14px; width: auto; }

/* ── WHATSAPP FLOAT ─────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  animation: waEntrance .6s .8s var(--ease-premium) both;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.3);
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waEntrance { from { opacity: 0; transform: scale(.6) translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 400;
  width: 40px; height: 40px;
  background: rgba(6,27,51,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, color .2s, border-color .2s, transform .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--white); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(29,126,208,.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease-out), height .2s var(--ease-out), opacity .3s, border-color .2s;
  mix-blend-mode: normal;
}
.custom-cursor.visible { opacity: 1; }
.custom-cursor.hover { width: 48px; height: 48px; border-color: var(--blue-400); }
@media (hover: none) { .custom-cursor { display: none !important; } }

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }

[data-stagger-item] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
[data-stagger-item].revealed { opacity: 1; transform: none; }

/* ── IMG PLACEHOLDERS ───────────────────────────────────────── */
.img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #1c2d3e;
  border: 2px dashed rgba(255,255,255,.15);
  color: rgba(255,255,255,.45);
  pointer-events: none;
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder svg { opacity: .5; margin-bottom: .25rem; }
.img-placeholder b {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.img-placeholder span {
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  font-family: monospace;
  letter-spacing: .05em;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* 480px — narrow mobile (Z Fold etc.) */
@media (max-width: 479px) {
  .hero-title { font-size: 1.75rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .valor-grid, .industrias-grid, .porque-grid { grid-template-columns: 1fr; }
  .footer-contact-ctas { flex-direction: column; }
  .footer-contact-ctas .btn { width: 100%; justify-content: center; }
  .mobile-menu { width: 90%; }
}

/* 768px — tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: clamp(2.1rem, 4.5vw, 2.6rem); }
}

@media (min-width: 768px) {
  .mobile-menu { max-width: 420px; width: 55%; }
  .valor-grid { grid-template-columns: repeat(4, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .industrias-grid { grid-template-columns: repeat(3, 1fr); }
  .porque-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
  .proceso-step { padding: 2rem 2rem 2rem 5rem; }
}

@media (min-width: 900px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 1024px — desktop */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .header-actions { margin-left: 1.5rem; }
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-visual { display: flex; }
  .proceso-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding-top: 0;
  }
  .proceso-step {
    padding: 5rem 1.25rem 1.5rem;
    border-left: none;
    border-top: 1.5px solid var(--border);
    text-align: left;
  }
  .proceso-step:hover { border-top-color: var(--blue-400); border-left: none; }
  .paso-num {
    position: absolute;
    left: 1.25rem;
    top: -1.5rem;
    transform: none;
  }
  .paso-desc { max-width: none; }
  .industrias-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 1280px — wide desktop */
@media (min-width: 1280px) {
  .valor-card { padding: 2rem 1.75rem; }
}

/* Fix: btn inside mobile-menu-ctas overrides mobile-nav-link display:block */
.mobile-menu-ctas .btn { display: flex; justify-content: center; }

/* Footer bottom padding on mobile/tablet so WA bubble and back-to-top don't cover firm signature */
@media (max-width: 1023px) {
  .site-footer { padding-bottom: 5rem; }
}

/* ── PREFERS-REDUCED-MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #page-loader { display: none; }
  [data-reveal], [data-stagger-item] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .custom-cursor { display: none; }
  .hero-crystal { animation: none; }
  .hero-scroll-hint { display: none; }
  .wa-float::after { animation: none; }
  .wa-float { animation: none; }
}
