/* === css/variables.css === */
/* ============================================
   SINERGIADS — DESIGN TOKENS
   variables.css
============================================ */
:root {
  /* Colores */
  --bg:        #ffffff;
  --bg-w:      #ffffff;
  --bg-c:      #f5f5f5;
  --txt:       #1a1a1c;
  --muted:     #6b6b6b;
  --white:     #ffffff;
  --blue:      #5f79ee;
  --blue-h:    #4a63d8;
  --dark:      #1a1a1c;
  --dark-2:    #0d0d0d;

  /* Bordes */
  --bdr:       rgba(47,47,47,0.10);
  --bdr-l:     rgba(47,47,47,0.06);
  --bdr-blue:  rgba(74,108,247,0.25);

  /* Sombras */
  --sh-s:      0 2px 12px rgba(47,47,47,0.06);
  --sh-m:      0 8px 32px rgba(47,47,47,0.10);
  --sh-l:      0 16px 48px rgba(47,47,47,0.13);

  /* Radios */
  --r:         8px;
  --rm:        14px;
  --rl:        24px;

  /* Tipografía */
  --f:         'Euclid Circular A', 'Inter', system-ui, sans-serif;

  /* Transiciones */
  --t:         0.25s ease;
  --t-slow:    0.4s ease;

  /* Espaciado de secciones */
  --sec:       5rem;
  --sec-sm:    3.2rem;
}

@media (max-width: 768px) {
  :root {
    --sec:     3.5rem;
    --sec-sm:  2.2rem;
  }
}


/* === css/base.css === */
/* ============================================
   SINERGIADS — BASE & RESET
   base.css
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--f);
  border: none;
  background: none;
}

/* Tipografía base */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
}

p {
  color: var(--muted);
  line-height: 1.75;
}

/* Animaciones reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }


/* === css/layout.css === */
/* ============================================
   SINERGIADS — LAYOUT CORREGIDO
   layout.css — v2.1
============================================ */

/* ---- HEADER — fondo desde el inicio, estable ---- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47,47,47,0.07);
  transition: box-shadow var(--t);
}
.hdr.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 rgba(47,47,47,0.08), 0 4px 20px rgba(47,47,47,0.05);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 2rem;
}

/* LOGO */
.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 58px;
  width: auto;
  max-width: 200px;
}
.logo-wrap:hover .logo-img { opacity: 0.75; }

/* Logo footer — más pequeño que el header */
.logo-footer .logo-img {
  height: 58px;
  max-width: 200px;
}
/* NAV desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
  padding-right: 2.5rem;
}
.nav-link {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--t);
  color: var(--txt);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-link:hover {
  background: transparent;
  color: var(--blue);
}
.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

/* HEADER ACTIONS */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-wa-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #25D366;
  color: white;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-wa-hdr:hover { background: #1EBA5A; transform: translateY(-1px); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  padding: 3px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE NAV */
.mob-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--bg-w);
  z-index: 99;
  padding: 1.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  border-top: 1px solid var(--bdr);
}
.mob-nav.open { display: flex; }
.mob-nav .nav-link {
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
}
.mob-nav .btn { margin-top: 1rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-w);
  padding: 2.5rem 0 1.4rem;
  color: var(--muted);
  border-top: 1px solid var(--bdr);
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.3fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  align-items: start;
}
.logo-footer {
  display: block;
  margin-bottom: 1rem;
}
.logo-footer .logo-img {
  height: 58px;
  max-width: 200px;
  width: auto;
  mix-blend-mode: multiply;
}
.logo-footer:hover .logo-img { opacity: 0.7; }
.ft-tagline {
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 240px;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.ft-social {
  display: flex;
  gap: 6px;
  margin-top: 0.6rem;
}
.ft-soc {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--bg-c);
  border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all var(--t);
}
.ft-soc:hover { background: var(--blue); color: white; border-color: var(--blue); }
.ft-soc svg { width: 13px; height: 13px; }
.ft-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.ft-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ft-link {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--t);
  text-decoration: none;
}
.ft-link:hover { color: var(--dark); }
.ft-country {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
}
.ft-country:first-child { margin-top: 0; }
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bdr);
  font-size: 0.72rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.8rem;
}
.ft-legal { display: flex; gap: 1.2rem; }


/* === css/responsive.css === */
/* ============================================
   SINERGIADS — RESPONSIVE CORREGIDO
   responsive.css — v2.1
============================================ */

/* 1100px — tablet landscape */
@media (max-width: 1100px) {
  .ft-grid       { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .svc-grid      { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr 1fr; }
}

/* 960px — tablet */
@media (max-width: 960px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-visual      { display: flex; justify-content: center; }
  .hero-gif         { max-width: 480px; }
  .value-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .value-cards-stack{ display: none; }
  .nosotros-grid    { grid-template-columns: 1fr; min-height: auto; }
  .nosotros-grid > div:first-child { padding: 3rem 0 2rem; }
  .nosotros-visual  { min-height: 300px; }
  .certs-inner      { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .sec-header-2col  { grid-template-columns: 1fr; gap: 1.2rem; }
  .casos-grid       { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* 768px — mobile */
@media (max-width: 768px) {
  /* Header */
  .nav, .hdr-actions { display: none; }
  .hamburger { display: flex; }

  /* Grids */
  .svc-grid         { grid-template-columns: 1fr; }
  .insights-grid    { grid-template-columns: 1fr; }
  .sec-header-split { grid-template-columns: 1fr; }

  /* Hero */
  .hero             { padding: 80px 0 40px; min-height: auto; }
  .hero-grid        { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-visual      { display: flex; justify-content: center; }
  .hero-gif         { max-width: 100%; }
  .hero-stats       { gap: 1.5rem; flex-wrap: wrap; }
  .hstat-n          { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-h1          { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-sub         { font-size: 0.95rem; max-width: 100%; }
  .hero-ctas        { gap: 10px; }
  .hero-cta-link    { padding: 9px 16px; font-size: 0.84rem; }

  /* Footer */
  .ft-grid      { grid-template-columns: 1fr; gap: 1.8rem; }
  .ft-bottom    { flex-direction: column; text-align: center; }
  .ft-legal     { justify-content: center; }
  .ft-tagline   { max-width: 100%; }
  .ft-social    { justify-content: flex-start; }

  /* Certs */
  .certs-inner { gap: 1rem; }
  .certs-grid  { gap: 0.6rem; }

  /* WA flotante */
  }

/* 520px — mobile pequeño */
@media (max-width: 520px) {
  .hero-ctas   { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-cta-link { width: 100%; justify-content: center; }
  .cta-acts    { flex-direction: column; align-items: center; gap: 10px; }
  .btn-cta-outline, .btn-cta-blue { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats  { gap: 1.2rem; }
  .casos-grid  { max-width: 100%; }
  .cert-badge  { min-width: 90px; padding: 0 12px; height: 48px; }
  .cert-badge img { height: 24px; }
  .nosotros-h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ---- FIXES MOBILE ESPECÍFICOS ---- */
@media (max-width: 768px) {
  /* GIF manos: fondo crema en mobile donde mix-blend-mode falla en Safari */
  .hero-visual {
    background-color: var(--bg);
    border-radius: 12px;
    overflow: hidden;
  }
  .hero-gif {
    mix-blend-mode: normal;
    /* El fondo crema del contenedor simula la transparencia */
  }

  /* Nosotros GIF: botón ver más full-width en mobile */
  .btn-nos-more {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  /* CTA section: botones apilados con borde visible */
  .btn-cta-outline {
    border-color: rgba(255,255,255,0.85) !important;
  }
}

/* Eliminar puntos de tags en todos los breakpoints — doble seguro */
.tag::before,
.tag-dark::before {
  display: none !important;
  content: none !important;
}

/* ── Flecha volver a Servicios (subpáginas de servicio) ─────── */
.srv-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--t);
  letter-spacing: 0.01em;
}
.srv-back-link:hover { color: var(--blue); }
.srv-back-link svg   { width:14px; height:14px; flex-shrink:0; }

/* ── "Hablemos." CTA final servicios ───────────────────────── */
.srv-hablemos {
  color: #0a0a0a;
  transition: background var(--t), color var(--t);
}
.srv-hablemos:hover {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}

/* ── WhatsApp flotante ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wa-btn {
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--t);
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
}
.wa-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
