/* =========================
   NOVAWORKFLOWS — STYLES
   ========================= */

/* ---------- Variables ---------- */
:root{
  --bg:#ffffff;
  --text:#111318;
  --dark:#2b2f36;
  --muted:#68707b;
  --border:#e9eef2;
  --brand:#05AEAF;
  --radius:18px;
  --shadow:0 28px 60px rgba(0,0,0,.06);
  --maxw:1140px;
}
:root[data-theme='dark']{
  --bg:#0b0f14;
  --text:#eaf2ff;
  --dark:#eaf2ff;
  --muted:#9fb1c2;
  --border:rgba(255,255,255,.12);
  --shadow:0 30px 80px rgba(0,0,0,.45);
}

/* ---------- Reset & base ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
  padding-top: clamp(64px, 9vw, 88px);
}
img,picture,svg{ max-width:100%; height:auto; display:block; }

/* Utilitarios */
.wrap,.container{ width:min(94%,var(--maxw)); margin-inline:auto; }
.section{ padding:64px 0; opacity:0; transform:translateY(22px); transition:opacity .55s ease, transform .55s ease; }
.section.visible{ opacity:1; transform:translateY(0); }
.block{ display:flex; flex-direction:column; gap:2rem; }

/* ---------- Header / Nav ---------- */
header.glass{
  position: fixed;      /* fijo en la parte superior */
  top: 0; left: 0; right: 0;
  z-index: 1200;        /* más alto para que quede encima de todo */
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  transition: background-color .4s ease, backdrop-filter .4s ease, box-shadow .4s ease, transform .4s ease;
}
header.glass.is-scrolled{
  background: color-mix(in oklab, var(--bg) 92%, #000 6%);
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}
header.glass.hide-mobile{ transform:translateY(-100%); }

header .container.nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 0;
  transition:padding .35s ease;
}
header.glass.is-scrolled .container.nav{ padding-top:10px; padding-bottom:10px; }

/* Marca */
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brandmark img{ height:42px; width:auto; }
.brand-text{
  display:none;
  font-weight:800;
  letter-spacing:-0.02em;
  font-size:18px;
  color:var(--text);
}
@media (min-width:992px){ .brand-text{ display:inline-block; } }

/* Menú */
nav.menu{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
nav.menu a{ text-decoration:none; }
nav.menu a.nav-link{
  position:relative;
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  font-weight:500;
  transition: color .2s ease, transform .18s ease;
}
nav.menu a.nav-link::after{
  content:"";
  position:absolute;
  left:10px; right:10px; bottom:6px;
  height:2px;
  background:var(--brand);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .25s ease;
  opacity:.9;
}
nav.menu a.nav-link:hover{ color:var(--brand); }
nav.menu a.nav-link:hover::after{ transform:scaleX(1); }
nav.menu a.nav-link.clicked{ animation:clickPulse .28s ease; }
@keyframes clickPulse{ 0%{transform:scale(1);} 50%{transform:scale(.96);} 100%{transform:scale(1);} }
nav.menu a.nav-link.active{ color:var(--brand); }
nav.menu a.nav-link.active::after{ transform:scaleX(1); }

/* ---------- Botones ---------- */
.btn{
  display:inline-block;
  font-weight:600;
  text-decoration:none;
  border-radius:12px;
  padding:10px 16px;
  transition: transform .18s ease, box-shadow .25s ease, background-position .45s ease, border-color .25s ease, color .25s ease, background-color .25s ease;
  will-change: transform, box-shadow;
}
.btn-primary{
  --brand-a: color-mix(in oklab, var(--brand) 100%, #fff 0%);
  --brand-b: color-mix(in oklab, var(--brand) 85%, #000 12%);
  color:#fff;
  background-image: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  background-size:200% 100%;
  background-position:0% 0%;
  box-shadow:0 6px 18px color-mix(in oklab, var(--brand) 25%, transparent);
  border:none;
}
.btn-primary:hover{
  transform: translateY(-2px);
  background-position:100% 0%;
  box-shadow:0 16px 36px color-mix(in oklab, var(--brand) 38%, transparent);
}
.btn-primary:active{
  transform: translateY(0) scale(.98);
  box-shadow:0 4px 12px color-mix(in oklab, var(--brand) 28%, transparent),
             inset 0 0 0 100vmax color-mix(in oklab, #000 6%, transparent);
}
.btn-ghost{
  color:var(--text);
  background:transparent;
  border:1px solid var(--border);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  color:var(--brand);
  border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  box-shadow:0 12px 28px rgba(0,0,0,.06);
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:92px 0 64px;
  overflow:hidden;
}
.hero .wrap{
  display:grid; grid-template-columns:1.2fr .8fr;
  gap:28px; align-items:center;
}
.hero h1{ font-size: clamp(28px, 4.5vw, 42px); line-height:1.15; margin:0 0 8px; }
.hero .lead{ color:var(--muted); font-size:clamp(15px, 2vw, 17px); max-width:680px; }
.hero .accent{ color:var(--brand); }

.glow{
  position:absolute; inset:-10% -10% auto -10%;
  height:460px;
  background: radial-gradient(60% 60% at 40% 40%, color-mix(in oklab, var(--brand) 85%, #00f 5%) 0%, transparent 60%);
  filter: blur(42px);
  opacity:.25; pointer-events:none;
}

/* ---------- Métricas ---------- */
.metrics{
  display:grid; grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap:14px; margin-top:22px;
}
.metric{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg);
  box-shadow:0 20px 50px rgba(0,0,0,.05);
  text-align:center;
}
.metric .num{ font-weight:800; font-size: clamp(22px, 3.6vw, 28px); color: var(--brand); }
.metric .txt{ color:var(--muted); font-size:14px; margin-top:6px; }

/* ---------- Grids / Cards / Listas ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; }
.card{
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--bg);
  box-shadow: var(--shadow);
  padding:20px;
  transition: transform .25s ease;
}
.card:hover{ transform: translateY(-3px); }
.muted{ color:var(--muted); }

.list{ list-style:none; padding:0; margin:12px 0 0; }
.list li{ display:flex; align-items:center; gap:.6rem; margin:.4rem 0; }
.list .dot{
  width:.55rem; height:.55rem; border-radius:999px; background:var(--brand);
  display:inline-block; transform:translateY(-.08em);
}

/* ---------- Proceso / Reseñas ---------- */
.step{ text-align:center; font-weight:700; }
.step span{ display:block; color:var(--muted); font-weight:500; margin-top:.25rem; }
.reviews .stars{ color:#f6b800; font-size:1.2rem; margin-bottom:.4rem; }
.reviewer{ font-size:.9rem; color:var(--muted); margin-top:.6rem; }

/* ---------- Contacto (centrado) ---------- */
#contacto{
  display:flex; justify-content:center; align-items:center; text-align:center;
}
#contacto .container{ width:100%; display:flex; justify-content:center; }
#contacto .block{ display:flex; justify-content:center; width:100%; }
#contacto .contact{
  width:min(100%,760px);
  margin:0 auto;
  text-align:center;
  padding:24px 20px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  box-shadow: var(--shadow);
}
#contacto .muted{ margin:0 0 12px; }

/* Lista organizada y centrada (etiqueta + valor) */
#contacto .contact-list{
  display:grid;
  grid-template-columns:auto 1fr;
  justify-content:center;
  align-items:start;
  gap:6px 14px;
  text-align:left;
  max-width:480px;
  margin:0 auto 20px;
  padding:0;
}
#contacto .contact-list li{ list-style:none; display:contents; }
#contacto .contact-list strong{
  text-align:right;
  color:var(--text);
  font-weight:600;
  white-space:nowrap;
}
#contacto .contact-list a{
  text-decoration:none;
  color:var(--brand);
  border-bottom:1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
#contacto .contact-list a:hover{ border-bottom-color: currentColor; }

#contacto .hero-cta{
  display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center;
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border);
  color:var(--muted);
  padding:24px 0 36px;
}
.foot{
  width:min(94%,var(--maxw));
  margin:0 auto;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}

/* ---------- Transiciones generales ---------- */
html[data-theme='dark'], html[data-theme='light']{ transition: background-color .4s ease, color .4s ease; }
body, header, .card, .btn{ transition: background-color .4s ease, color .4s ease, border-color .4s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 992px){
  .hero .wrap{ grid-template-columns:1fr; gap:22px; }
  .metrics{ grid-template-columns: repeat(2, minmax(120px,1fr)); }
  .brand-text{ display:inline-block; }
}
@media (max-width: 640px){
  header .container.nav{ flex-direction:column; gap:.8rem; }
  nav.menu{ justify-content:center; }
  .metrics{ grid-template-columns: 1fr 1fr; }
  #contacto .contact-list{
    grid-template-columns: 1fr; text-align:center;
  }
  #contacto .contact-list strong{ text-align:center; }
  .btn{ width:100%; text-align:center; }
}
/* ===== Iconos en Contacto ===== */
#contacto .contact-list .label{
  display:flex;
  align-items:center;
  justify-content:flex-end;   /* respeta tu alineación a la derecha en la 1ª columna */
  gap:8px;
  color:var(--text);
}

#contacto .contact-list .icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  opacity:.95;
}

/* Sutilezas por canal (opcional): tinte del label para reforzar identidad */
#contacto .contact-list li.wa .label { color: color-mix(in oklab, var(--brand) 92%, #0a0 0%); }
#contacto .contact-list li.ig .label { color: color-mix(in oklab, var(--brand) 85%, #ff3 5%); }
#contacto .contact-list li.fb .label { color: color-mix(in oklab, var(--brand) 75%, #06f 12%); }
#contacto .contact-list li.mail .label { color: var(--text); }

/* En hover, armoniza icono + enlace */
#contacto .contact-list li a{
  text-decoration:none;
  color:var(--brand);
  border-bottom:1px solid transparent;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
#contacto .contact-list li:hover a{
  border-bottom-color: currentColor;
  opacity: .98;
}

/* Responsivo: en pantallas estrechas centramos también la etiqueta */
@media (max-width: 640px){
  #contacto .contact-list .label{
    justify-content:center;
  }
}

/* =========================
   CONTACTO — Esquema de color uniforme
   ========================= */

/* Variables locales del bloque de contacto */
#contacto .contact{
  --contact-label: color-mix(in oklab, var(--text) 85%, transparent); /* etiquetas e íconos */
  --contact-link: var(--brand);                                       /* enlaces */
}

/* Etiqueta + ícono: mismo tono atenuado */
#contacto .contact-list .label{
  color: var(--contact-label) !important;
}
#contacto .contact-list .icon{
  color: currentColor;  /* hereda del label */
  opacity: .95;
}

/* Enlaces: todos con el mismo color de marca y mismo hover */
#contacto .contact-list a{
  color: var(--contact-link) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
#contacto .contact-list li:hover a{
  border-bottom-color: currentColor;
  opacity: .98;
}

/* Anula cualquier tinte por canal previamente definido */
#contacto .contact-list li.wa .label,
#contacto .contact-list li.ig .label,
#contacto .contact-list li.fb .label,
#contacto .contact-list li.mail .label{
  color: var(--contact-label) !important;
}

/* =====================================================
   MOBILE POLISH PATCH — NovaWorkflows
   (añadir al FINAL del archivo)
   ===================================================== */

/* Pequeños fixes globales en móvil */
@media (max-width: 768px){
  html { scroll-behavior: smooth; }
  body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
  .wrap,.container { width: min(92%, var(--maxw)); }
  header .container.nav { padding: 12px 0; }
  nav.menu { row-gap: 4px; }
  nav.menu a.nav-link { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; }
}

/* Hero: 1 columna, espacios más compactos */
@media (max-width: 768px){
  .hero { padding: 88px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .hero .lead { max-width: 42ch; }
}
/* Oculta el logo lateral decorativo en pantallas chicas (si existe) */
@media (max-width: 768px){
  .brandmark-right { display: none; }
}

/* Métricas: 2 → 1 columna si es necesario */
@media (max-width: 992px){
  .metrics { grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
}
@media (max-width: 420px){
  .metrics { grid-template-columns: 1fr; }
}

/* Cards: padding fluido para que no “aprieten” */
@media (max-width: 768px){
  .card { padding: clamp(16px, 4vw, 20px); }
}

/* Grid de servicios/beneficios: 1 col en móvil, 2 en tablets */
@media (max-width: 768px){
  .grid-3 { grid-template-columns: 1fr; gap: 18px; }
}
@media (min-width: 768px) and (max-width: 991.98px){
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* CONTACTO: apilar limpio, iconos centrados, botones full-width en móviles estrechos */
@media (max-width: 640px){
  #contacto .contact {
    padding: clamp(18px, 5vw, 24px) clamp(16px, 5vw, 20px);
  }
  /* Lista apilada */
  #contacto .contact-list {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px 14px;
    max-width: 520px;
    margin-bottom: 18px;
  }
  /* Etiqueta (con icono) centrada */
  #contacto .contact-list .label {
    justify-content: center !important;
    font-weight: 700;
  }
  /* Links con buen target táctil */
  #contacto .contact-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Botones abajo: ancho completo */
  #contacto .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Footer: respeta safe area en iOS/Android y da aire */
@media (max-width: 640px){
  footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0)); }
}

/* Desactiva “efectos hover” invasivos en pantallas táctiles; 
   los mantenemos solo cuando existe hover real */
@media (hover: none){
  .btn-primary:hover,
  .btn-ghost:hover,
  nav.menu a.nav-link:hover::after,
  nav.menu a.nav-link:hover {
    transform: none !important;
    box-shadow: none !important;
    background-position: 0 0 !important;
  }
}
/* =========================
   MOBILE FIXES — 2025-10-29
   ========================= */
:root{
  --radius:18px;
}

/* Base: evitar scroll horizontal en móvil */
html, body {
  overflow-x: hidden;
}

/* Tipografía fluida para pantallas pequeñas */
h1{ font-size: clamp(28px, 6vw, 56px); line-height: 1.15; }
h2{ font-size: clamp(22px, 4.8vw, 40px); line-height: 1.2; }
h3{ font-size: clamp(18px, 4vw, 28px); line-height: 1.25; }
.lead{ font-size: clamp(16px, 4.2vw, 20px); }

/* Botones: tamaño táctil + full width en móviles estrechos */
.btn, .btn-primary, .btn-secondary {
  min-height: 44px;
}
@media (max-width: 480px){
  .btn, .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* Imágenes fluidas */
img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Hero: apilar y centrar en móvil */
@media (max-width: 992px){
  .hero .wrap{ 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  .hero, .hero .txt {
    text-align: center;
  }
  .hero-cta{ 
    display:flex; 
    gap:12px; 
    justify-content:center; 
    flex-wrap:wrap; 
  }
}

/* Grids: asegurar 1 columna en pantallas pequeñas */
@media (max-width: 768px){
  .grid-3, .grid-2, .metrics {
    display:grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
}

/* Cards: padding más compacto en móvil */
@media (max-width: 640px){
  .card{ padding: clamp(14px, 4.2vw, 18px); border-radius: var(--radius); }
}

/* Navegación: evitar saltos raros del logo/menú */
@media (max-width: 640px){
  header .container.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: .75rem;
    flex-wrap: wrap;
  }
  header .brandmark, header .brandmark-right{
    max-width: 56%;
  }
  header nav{
    width:100%;
    display:flex;
    justify-content:center;
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* Contacto: centrar bloque y alinear lista */
#contacto{
  display:flex; 
  justify-content:center; 
  align-items:center; 
  text-align:center;
}
.contact{
  width:min(100%,720px);
  margin: 0 auto;
}
.contact .contact-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px){
  .contact .contact-list{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px){
  #contacto .contact-list .label{ justify-content:center; }
}

/* Footer: respiro en móvil */
@media (max-width: 640px){
  footer{ padding: 18px 0; }
}

/* Evitar problemas con backgrounds grandes/parallax en móvil */
@media (max-width: 480px){
  .hero, .section, .glass{ background-attachment: scroll !important; }
}
