/* =========================
   Variables (ajustables)
   ========================= */
:root {
  --bg: #f7f8f9;
  --surface: #ffffff;
  --text: #111317;
  --text-2: #2a2f36;
  --muted: #6b7380;

  /* menta® (usamos tu paleta corporativa como base) */
  --menta-soft: #eef7f0;
  --menta-bg: #c5eeb0;
  --menta-accent: #95d6a4;

  /* Oscuro técnico */
  --dark: #0f1217;
  --dark-2: #141a22;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;

  /* Tipografía */
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Header + snap */
  --header-h: 64px;
  --snap-h: calc(100svh - var(--header-h));
}

/* =========================
   Reset básico
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);

  /* Importante: como el header ahora es fixed */
  padding-top: var(--header-h);
}

/* =========================
   Contenedores y grid
   ========================= */
.container {
  max-width: var(--container);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin: 0 auto;
}
.narrow { max-width: 760px; }

.grid-2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* =========================
   Header fijo (NO desaparece)
   ========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 249, 0.86);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo { width: 26px; height: 26px; display: block; }
.brand-name { font-weight: 600; letter-spacing: 0.2px; }


.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .brand-tagline { display: none; }
}

.header-nav { display: flex; gap: 16px; }
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}
.nav-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .header-nav { display: none; }
}

/* =========================
   Tipografía (Inter) - ligeramente más grande
   ========================= */
.h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 16px 0;
}
.h2-compact { margin-bottom: 8px; }

.h3 {
  font-size: 24px;
  line-height: 1.28;
  font-weight: 500;
  margin: 0 0 10px 0;
}

.p {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 14px 0;
  color: var(--text-2);
}

.p-muted { color: rgba(255,255,255,0.72); }

.link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
}
.link:hover { color: #000; }

/* =========================
   Secciones y espaciadores
   ========================= */
.section { position: relative; }
.section-neutral { background: var(--bg); padding: 72px 0; }
.section-menta { background: var(--menta-soft); padding: 88px 0; }
.section-dark { background: var(--dark); padding: 72px 0; }

.spacer { width: 100%; background: var(--bg); }
.spacer-md { height: 48px; }
.spacer-lg { height: 80px; }
.spacer-xl { height: 120px; }

/* =========================
   HERO
   ========================= */
.hero {
  min-height: clamp(520px, 100vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../images/hero-lab.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(247,248,249,0.82),
    rgba(247,248,249,0.55),
    rgba(247,248,249,0.82)
  );
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 880px;
}

.hero-subtitle {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.5;
  margin: 0;
  color: var(--text-2);
}

.hero-logo {
  display: block;
  margin: 0 auto 28px auto;
  width: 150px;
  max-width: 40vw;
}

@media (max-width: 768px) {
  .hero-logo {
    width: 100px;
    margin-bottom: 20px;
  }
}


/* =========================
   menta® (logo en sección)
   ========================= */
.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-logo { width: 56px; height: 56px; display: block; }

.mockup-box {
  height: clamp(260px, 35vw, 420px);
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
}

/* =========================
   Servicios (legacy: por si queda en tu HTML)
   ========================= */
.services-hero {
  min-height: clamp(380px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services-bg {
  position: absolute; inset: 0;
  background-image: url("../images/services-it.png");
  background-size: cover;
  background-position: center;
}

.services-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,18,23,0.25),
    rgba(15,18,23,0.55),
    rgba(15,18,23,0.75)
  );
}

.services-hero-content { position: relative; }
.h2-invert, .p-invert { color: rgba(255,255,255,0.92); }

/* Cards base */
.card {
  border-radius: 14px;
  padding: 18px 18px;
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   Sección oscura: contraste correcto (si se usa section-dark)
   ========================= */
.section-dark .h3 { color: rgba(255,255,255,0.92); }
.section-dark .p  { color: rgba(255,255,255,0.78); }
.section-dark .p-muted { color: rgba(255,255,255,0.72); }

/* =========================
   Reveal on scroll (estilo Apple)
   ========================= */
.reveal {
  --reveal-y: 16px;
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: 0ms;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* =========================
   1 sección por pantalla (scroll-snap)
   ========================= */
html {
  scroll-snap-type: y proximity;
}

/* Cada sección encaja al inicio */
.section {
  scroll-snap-align: start;
  scroll-snap-stop: always;

  /* Visible por pantalla (sin header) */
  min-height: var(--snap-h);

  display: flex;
  align-items: center;
}

/* Secciones que ya tienen layout propio: mantenemos su lógica */
.hero,
.services-hero {
  min-height: var(--snap-h);
}

/* Las secciones con padding grande se adaptan a 1 pantalla */
.section-neutral,
.section-menta,
.section-dark {
  padding: 0;
}

/* Contenido interno: le damos aire sin romper la altura */
.section-neutral > .container,
.section-menta > .container,
.section-dark > .container {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* Spacers: con 1-sección-por-pantalla no tienen sentido */
.spacer { display: none; }

/* Anclas del menú: que no queden tapadas por el header */
#que-hacemos, #menta, #servicios, #contacto, #experiencia {
  scroll-margin-top: var(--header-h);
}

/* =========================
   Servicios (final): una sola pantalla (hero + cards)
   Requiere HTML: <section class="section section-services" ...>
   ========================= */
.section-services {
  background: var(--dark);
  min-height: var(--snap-h);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Imagen + overlay */
.section-services .services-bg,
.section-services .services-overlay {
  position: absolute;
  inset: 0;
}

/* Overlay: más oscuro abajo para legibilidad de cards */
.section-services .services-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15,18,23,0.25) 0%,
    rgba(15,18,23,0.60) 45%,
    rgba(15,18,23,0.92) 100%
  );
}

/* Layout del contenido dentro de la sección: centrado vertical */
.section-services .services-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-top: 56px;
  padding-bottom: 56px;
}

/* Separación clara entre texto y cards */
.section-services .services-top {
  max-width: 760px;
  margin-bottom: 72px;
}

/* Contraste correcto en Servicios */
.section-services .h2-invert,
.section-services .p-invert {
  color: rgba(255,255,255,0.92);
}

/* Cards más presentes en Servicios */
.section-services .card-dark {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.section-services .card-dark .h3 {
  color: rgba(255,255,255,0.95);
}

.section-services .card-dark .p {
  color: rgba(255,255,255,0.78);
}

.section-services .card-dark .p-muted {
  color: rgba(255,255,255,0.72);
}

/* Ajuste para pantallas bajas */
@media (max-height: 780px) {
  .section-services .services-stack {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-services .services-top {
    margin-bottom: 44px;
  }

  .p { font-size: 18px; }
  .h3 { font-size: 22px; }
}

/* =========================
   Qué hacemos: eco del hero (ampliado + blur)
   ========================= */
#que-hacemos {
  overflow: hidden;
}

/* Capa imagen */
#que-hacemos .q-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-lab.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(4px);
  opacity: 0.18;   /* ↓ menos “haze” */
  z-index: 0;
}

/* Capa velo para legibilidad */
#que-hacemos .q-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247,248,249,0.88); /* ↑ más opaco = texto nítido */
  z-index: 1;
}

/* Contenido SIEMPRE por encima del fondo */
#que-hacemos > .container {
  position: relative;
  z-index: 2;
}

/* =========================
   Qué hacemos – fichas (mismo ancho + misma altura + borde)
   ========================= */
.qa-cards {
  align-items: stretch;                 /* alturas iguales */
  grid-template-columns: 1fr 1fr;       /* anchos iguales (override de grid-2) */
}

.qa-cards .card {
  display: flex;
  flex-direction: column;
  height: 100%;                         /* misma altura real */
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
}

.qa-cards .card .p {
  margin-bottom: 0;
}

/* En móvil: una columna */
@media (max-width: 960px) {
  .qa-cards { grid-template-columns: 1fr; }
}



/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .footer-name {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-brand .footer-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 15px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-meta {
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-meta a {
  color: rgba(255,255,255,0.78);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 16px;

  border-top: 1px solid rgba(255,255,255,0.12);

  width: 100%;
  text-align: center;

  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

/* Responsive */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }
}

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.82);

  /* Footer como “pantalla” final sin centrado feo */
  min-height: var(--snap-h);
  display: block;

  padding: 72px 0 32px 0;
}

.section-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  margin: 0 0 28px 0;
  color: var(--muted);
  max-width: 620px;
}
/* =========================
   Experiencia y enfoque – fondo compuesto
   ========================= */
#experiencia {
  overflow: hidden;
}

/* Imagen de fondo */
#experiencia .exp-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/experiencia.png");
  background-size: cover;
  background-position: 65% center;

  /* ↓ antes: blur(3px) */
  filter: blur(0.1px);

  /* ↓ menos zoom */
  transform: scale(1);

  /* ↑ más presencia */
  opacity: 0.95;

  z-index: 0;
}

/* Overlay de transición (azul → gris claro) */
#experiencia .exp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(247,248,249,0.94) 0%,    /* izquierda (texto) muy legible */
    rgba(247,248,249,0.88) 42%,
    rgba(247,248,249,0.55) 72%,   /* soltamos para ver la derecha */
    rgba(247,248,249,0.28) 100%   /* derecha casi libre */
  );
  z-index: 1;
}

/* Contenido por encima del fondo */
#experiencia > .container {
  position: relative;
  z-index: 2;
}



/* =========================
   Mockup menta® (como mentabase)
   ========================= */
.mockup-box {
  position: relative;
  display: inline-block;

  background: #ffffff;
  border-radius: 18px;
  padding: 12px;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.12),
    0 6px 16px rgba(0,0,0,0.08);
}

/* La imagen manda: proporción natural */
.mockup-img {
  display: block;
  width: 100%;
  height: auto;          /* 👈 clave: respeta proporción */
  border-radius: 12px;
}
.col.mockup {
  align-self: start;      /* 👈 no estirar verticalmente */
  display: flex;
  justify-content: center;
}


/* =========================
   Selector de idioma
   ========================= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  font-size: 14px;
}

.lang-switch .lang {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.lang-switch .lang:hover {
  text-decoration: underline;
}

.lang-switch .lang.active {
  color: var(--text);
  cursor: default;
}

.lang-sep {
  color: var(--muted);
}

/* Ocultar idiomas en pantallas muy pequeñas (como el menú) */
@media (max-width: 820px) {
  .lang-switch {
    display: none;
  }
}


.contact-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--muted);
}


/* =========================
   Footer: enlaces limpios
   ========================= */
.site-footer a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}

.footer-legal-nav {
  font-size: 0.9rem;
}

.footer-legal-nav a {
  white-space: nowrap;
}

.legal-separator {
  margin: 0 8px;
  opacity: 0.6;
}



/* ==========================================================
   Aviso de privacidad (NO cookie banner – anti blockers)
   ========================================================== */

.privacy-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;

  z-index: 1000000;

  display: block;
  pointer-events: auto;
}

.privacy-notice-inner {
  max-width: 980px;
  margin: 0 auto;

  padding: 14px 16px;

  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.privacy-notice-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #111317;
}

.privacy-notice-text a {
  color: #111317;
  font-weight: 500;
  text-decoration: underline;
}

.privacy-notice-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.privacy-notice-actions .btn {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
  .privacy-notice-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .privacy-notice-actions {
    justify-content: flex-end;
  }
}

.legal-page {
  padding-top: 80px;
  padding-bottom: 80px;
}


/* ============================
   mentablog — hero específico
   ============================ */

body.mentablog .hero-bg {
  background-image: url('/images/mentablog.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* body.mentablog .hero-overlay {
  background: rgba(0, 0, 0, 0.35);
} */