/* =============================================
   HumiX · Control de Humedades en Deià
   style.css — Hoja de estilos principal
   ============================================= */

/* ── VARIABLES (HUMIX) ── */
:root{
  /* Marca HUMIX */
  --hx-blue:  #9dbbe5;   /* azul pastel Humix */
  --hx-red:   #fa1f02;   /* rojo Humix */
  --hx-gold:  #efce8c;   /* dorado Humix */
  --hx-ink:   #0e0f12;   /* texto oscuro */
  --hx-navy:  #122235;   /* azul oscuro (fondos serios) */
  --hx-slate: #1b2f46;   /* apoyo */

  /* Acento (turquesa SOLO para detalles pequeños) */
  --hx-teal:  #0d9488;

  /* Neutros */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Sistema */
  --max-w: 1400px;
  --radius: 16px;

  /* Sombras */
  --shadow-soft: 0 4px 32px rgba(18,34,53,0.10);
  --shadow-card: 0 10px 40px rgba(18,34,53,0.16);

  /* Compatibilidad con nombres antiguos (para no romper estilos) */
  --brand-blue: var(--hx-navy);
  --brand-blue-light: #1f3a58;
  --brand-teal: var(--hx-teal);                 /* solo acentos */
  --brand-teal-light: rgba(13,148,136,.18);
  --accent-gold: var(--hx-gold);
  --accent-sky: rgba(157,187,229,.22);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  color: var(--gray-900);
  line-height: 1.15;
}

/* ── NAV (HUMIX) ── */
#main-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 0 24px;
  background: transparent;                 /* inicio flotante */
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

/* Solo cuando scrolled */
#main-nav.scrolled{
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(157,187,229,.35);
  box-shadow: 0 2px 24px rgba(26,79,138,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Contenedor */
#main-nav .nav-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  height: 76px;                            /* único valor */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
#main-nav .nav-logo{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}

#main-nav .nav-logo img.logo-img{
  height: 36px !important;                 /* 34–40 */
  width: auto !important;
  max-width: 180px !important;
  max-height: 36px !important;
  display: block !important;
  object-fit: contain !important;
}

/* Menú */
#main-nav .nav-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Links: sobre hero (inicio) */
#main-nav .nav-links a{
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 10px 0;
  transition: color .2s ease, opacity .2s ease;
}
#main-nav .nav-links a:hover{
  color: rgba(239,206,140,.95);            /* dorado */
}

/* Links: en scroll (barra blanca) */
#main-nav.scrolled .nav-links a{
  color: rgba(14,15,18,.84);
}
#main-nav.scrolled .nav-links a:hover{
  color: #fa1f02;                          /* rojo */
}

/* CTA: inicio (glass oscuro) */
#main-nav .nav-cta{
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(14,15,18,.26);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#main-nav .nav-cta:hover{
  filter: brightness(1.05);
}

/* CTA: scrolled (rojo Humix) */
#main-nav.scrolled .nav-cta{
  background: linear-gradient(135deg, #fa1f02, rgba(250,31,2,.75));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(250,31,2,.18);
}

/* Encoge el nav al hacer scroll (premium) */
#main-nav.scrolled .nav-inner{
  height: 70px;
}

#main-nav.scrolled .nav-logo img.logo-img{
  height: 34px !important;
  max-height: 34px !important;
}

/* ── NAV MÓVIL ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
nav.scrolled .nav-hamburger span { background: var(--gray-900); }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 99;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-menu a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid var(--gray-100);
}

/* ── HERO ── */
#inicio {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{
  position:absolute;
  inset:0;

  background:
    linear-gradient(135deg, rgba(10,47,92,.70) 0%, rgba(26,79,138,.55) 40%, rgba(13,148,136,.35) 100%),
    url("img/hero_deia.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* Blobs animados */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: var(--brand-teal); top: -200px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #60a5fa; bottom: 50px; left: 10%; animation-delay: 3s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent-gold); top: 30%; right: 20%; animation-delay: 5s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}
.hero-badge span {
  width: 6px; height: 6px;
  background: var(--brand-teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: white;
  font-weight: 300;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title strong { font-weight: 700; display: block; }
.hero-title em { font-style: italic; color: var(--brand-teal-light); }
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-title{
  text-shadow:
    0 10px 30px rgba(0,0,0,.55),
    0 2px 10px rgba(0,0,0,.40);
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}
.btn-primary {
  background: white;
  color: var(--brand-blue);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-outline {
  background: transparent;
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: all 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 2rem;
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-card-title {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}
.process-steps { list-style: none; }
.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.step-text strong { color: white; display: block; font-size: 0.95rem; margin-bottom: 2px; }
.step-text span { color: rgba(255,255,255,0.65); font-size: 0.82rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TRUST BAR (HUMIX) ── */
.trust-bar{
  background: #122235;                 /* azul oscuro HUMIX */
  padding: 1.15rem 2rem;
  border-top: 1px solid rgba(157,187,229,.20);
  border-bottom: 1px solid rgba(157,187,229,.20);
}

.trust-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display:flex;
  gap: 2.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.88);
  font-size: 0.86rem;
  font-weight: 600;
}

.trust-icon{
  width: 32px;
  height: 32px;
  background: rgba(157,187,229,.16);  /* azul pastel Humix, suave */
  border: 1px solid rgba(157,187,229,.22);
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1rem;
}

/* micro-acento dorado al hover (opcional) */
.trust-item:hover .trust-icon{
  background: rgba(239,206,140,.18);
  border-color: rgba(239,206,140,.30);
}

/* ── SECCIONES COMUNES ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 1rem;
}
.section-title strong { font-weight: 700; }
.section-desc {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 700px;
}

/* ── QUIÉNES SOMOS ── */
#quienes { background: var(--gray-50); }
.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.quienes-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.quienes-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.feat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  box-shadow: var(--shadow-soft);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-teal-light);
}
.feat-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-sky), #bae6fd);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.feat-card strong { display: block; font-size: 0.9rem; color: var(--gray-900); margin-bottom: 4px; }
.feat-card span { font-size: 0.82rem; color: var(--gray-600); }

.quienes-visual { position: relative; }
.visual-main {
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-teal));
  border-radius: 24px;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.visual-main::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.visual-main::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  display: block;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.visual-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
}
.floating-badge {
  position: absolute;
  bottom: -1.5rem; right: 2rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-badge .icon { font-size: 1.4rem; }
.floating-badge strong { display: block; font-size: 0.9rem; color: var(--gray-900); }
.floating-badge span { font-size: 0.78rem; color: var(--brand-teal); font-weight: 500; }

/* ── TIPOS ── */
#tipos { background: white; }
.tipos-header { text-align: center; margin-bottom: 3.5rem; }
.tipos-header .section-desc { margin: 0 auto; }
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tipo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  height: 420px;
}
.tipo-front, .tipo-back {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  border-radius: 20px;
}
.tipo-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tipo-1 .tipo-front { background: linear-gradient(180deg,#f0f9ff 0%,#bae6fd 40%,#0369a1 100%); }
.tipo-2 .tipo-front { background: linear-gradient(180deg,#f0fdf4 0%,#bbf7d0 40%,#047857 100%); }
.tipo-3 .tipo-front { background: linear-gradient(180deg,#fffbeb 0%,#fde68a 40%,#b45309 100%); }
.tipo-emoji { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.tipo-front h3 { font-size: 1.4rem; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.tipo-front p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-top: 0.5rem; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.tipo-back {
  background: var(--brand-blue);
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tipo-card:hover .tipo-back { opacity: 1; transform: translateY(0); }
.tipo-card:hover .tipo-front { opacity: 0; }
.tipo-back h3 { color: white; font-size: 1.3rem; margin-bottom: 1.25rem; }
.sintoma-list { list-style: none; margin-bottom: 1.5rem; }
.sintoma-list li {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sintoma-list li::before { content: '→'; color: var(--brand-teal-light); flex-shrink: 0; }
.tipo-tag {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-light));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

/* ── EQUIPOS ── */
#equipos { background: var(--gray-50); }
.equipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.equipo-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
  box-shadow: var(--shadow-soft);
}
.equipo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.equipo-card.capil::before { background: linear-gradient(90deg,#0369a1,#38bdf8); }
.equipo-card.cond::before  { background: linear-gradient(90deg,#047857,#34d399); }
.equipo-card.filtr::before { background: linear-gradient(90deg,#b45309,#fbbf24); }
.equipo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.equipo-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.equipo-card.capil .equipo-icon { background: #e0f2fe; }
.equipo-card.cond  .equipo-icon { background: #dcfce7; }
.equipo-card.filtr .equipo-icon { background: #fef3c7; }
.equipo-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.equipo-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.equipo-features { list-style: none; margin-bottom: 1.75rem; }
.equipo-features li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 0.35rem 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.equipo-features li::before { content: '✓'; color: var(--brand-teal); font-weight: 700; flex-shrink: 0; }
.btn-card {
  display: inline-block;
  background: var(--brand-blue);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-card:hover { background: var(--brand-teal); transform: translateX(4px); }

#equipos a.btn-card:hover{
  background: #fa1f02;
  transform: translateX(4px);
  filter: brightness(1.02);
}
/* ── DIAGNÓSTICO IA (HUMIX) ── */
#diagnostico{
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(157,187,229,.22), transparent 55%),
    linear-gradient(135deg, #122235 0%, #1b2f46 55%, #122235 100%);
  position: relative;
  overflow: hidden;
}

#diagnostico::before{
  content:'';
  position:absolute;
  inset:0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}

.diagnostico-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items:center;
  position:relative;
  z-index:1;
}

.diag-text{ color:#fff; }

.diag-label{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(157,187,229,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
  display:inline-block;
  margin-bottom: 1.5rem;
}

.diag-text h2{
  font-size: clamp(2rem,3vw,2.8rem);
  color:#fff;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

/* strong: dorado HUMIX (no turquesa) */
.diag-text h2 strong{
  display:block;
  font-weight: 800;
  color: #efce8c;
}

.diag-text p{
  color: rgba(255,255,255,.82);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.diag-perks{
  display:flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.diag-perk{
  display:flex;
  align-items:center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(157,187,229,.20);
  padding: .45rem 1rem;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-size: .82rem;
  font-weight: 600;
}

/* Botón: rojo HUMIX */
.btn-ia{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  background: linear-gradient(135deg, #fa1f02, rgba(250,31,2,.78));
  color:#fff;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration:none;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(250,31,2,.18);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-ia:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(250,31,2,.22);
}
.btn-ia svg{ width: 18px; height: 18px; }

/* Mockup chat */
.ia-mockup{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(157,187,229,.22);
  border-radius: 24px;
  padding: 1.75rem;
}

.mockup-header{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(157,187,229,.18);
}
.mockup-header .dot{ width:10px; height:10px; border-radius:50%; }
.mockup-header span:not(.dot){
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  flex:1;
}

.chat-bubble{
  padding: .85rem 1.1rem;
  border-radius: 16px;
  margin-bottom: .75rem;
  font-size: .875rem;
  line-height: 1.55;
  max-width: 90%;
  animation: slideIn .5s ease both;
}

.chat-user{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(157,187,229,.18);
  color: rgba(255,255,255,.92);
  margin-left:auto;
  text-align:right;
  border-bottom-right-radius: 4px;
}

.chat-bot{
  background: rgba(255,255,255,.95);
  color: #334155;
  border-bottom-left-radius: 4px;
}
.chat-bot strong{ color: #122235; }

.chat-bubble:nth-child(1){ animation-delay: .2s; }
.chat-bubble:nth-child(2){ animation-delay: .5s; }
.chat-bubble:nth-child(3){ animation-delay: .9s; }
.chat-bubble:nth-child(4){ animation-delay: 1.3s; }

@keyframes slideIn{
  from{ opacity:0; transform: translateX(-10px); }
  to  { opacity:1; transform: translateX(0); }
}

/* ── ZONAS ── */
#zonas { background: white; }
.zonas-header { text-align: center; margin-bottom: 3rem; }
.zonas-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.zona-pill {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.25s;
}
.zona-pill:hover, .zona-pill.active {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}
.zona-pill.active { background: var(--brand-teal); border-color: var(--brand-teal); }

/* ── CONTACTO ── */
#contacto { background: var(--gray-50); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contacto-info h2 { margin-bottom: 1rem; }
.contacto-info p { color: var(--gray-600); line-height: 1.8; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg,var(--accent-sky),#bae6fd);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; color: var(--gray-900); }
.contact-item span { font-size: 0.82rem; color: var(--gray-600); }
.contact-form {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.contact-form > p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
input, textarea, select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-900);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--gray-50);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
  background: white;
}
textarea { resize: vertical; min-height: 120px; }
.form-privacy {
  font-size: 0.78rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  grid-column: 1 / -1;
}
.form-privacy input[type="checkbox"] { width: auto; margin-top: 2px; }
.btn-submit {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,var(--brand-blue),var(--brand-teal));
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(26,79,138,0.25);
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26,79,138,0.35); }

/* ── CTA FINAL ── */
#cta-final {
  background: linear-gradient(135deg,#f0f9ff,#e0f2fe,#ccfbf1);
  text-align: center;
}
#cta-final .section-inner { max-width: 800px; }
#cta-final h2 { font-size: clamp(2rem,3vw,3rem); margin-bottom: 1rem; }
#cta-final p { color: var(--gray-600); margin-bottom: 2.5rem; line-height: 1.8; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-main {
  background: linear-gradient(135deg,var(--brand-blue),var(--brand-teal));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(26,79,138,0.25);
}
.btn-cta-main:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26,79,138,0.35); }
.btn-cta-sec {
  background: white;
  color: var(--brand-blue);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid var(--brand-blue);
  transition: all 0.3s;
}
.btn-cta-sec:hover { background: var(--brand-blue); color: white; }

/* ── FOOTER ── */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo .logo-text { color: white; }
.footer-about { font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 1.25rem; font-family: 'DM Sans',sans-serif; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand-teal-light); }
.footer-zonas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-zona {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-zona:hover { background: var(--brand-teal); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-legal a:hover { color: white; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-card { display: none; }
  .quienes-grid,
  .contacto-grid,
  .diagnostico-inner { grid-template-columns: 1fr; gap: 3rem; }
  .tipos-grid,
  .equipos-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .quienes-features { grid-template-columns: 1fr; }
  .floating-badge { position: static; margin-top: 1.5rem; }
  .trust-inner { gap: 1.5rem; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-btns { flex-direction: column; align-items: center; }
}
/* FIX CTA: que el botón envuelva bien el texto */
#main-nav .nav-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;        /* igual que links */
  font-weight: 700;
  line-height: 1;
  padding: 12px 18px;        /* un poco más alto/ancho */
  min-height: 40px;          /* asegura “pastilla” */
  white-space: nowrap;       /* evita saltos */
}
#main-nav .nav-cta{ font-size: 1rem; padding: 12px 20px; min-height: 42px; }

/* FIX: CTA "Pedir visita" con altura correcta */
#main-nav .nav-cta{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 0.95rem !important;   /* igual que los links */
  font-weight: 700 !important;
  line-height: 1 !important;

  padding: 12px 18px !important;   /* más alto */
  min-height: 42px !important;     /* asegura pastilla */
  white-space: nowrap !important;
}
/* ===== FIX H1 HERO (contraste real) ===== */
#inicio .hero-title{
  color: #fff !important;
  text-shadow: 0 10px 30px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.40);
}

#inicio .hero-title em{
  color: var(--hx-gold, #efce8c) !important;   /* dorado Humix */
  font-style: italic;
  opacity: .95;
}

#inicio .hero-title strong{
  color: #fff !important;
}
/* más contraste en la foto del hero */
#inicio .hero-bg{
  background:
    linear-gradient(135deg, rgba(14,15,18,.72) 0%, rgba(14,15,18,.52) 55%, rgba(14,15,18,.38) 100%),
    url("img/hero_deia.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
/* ===== FIX HAMBURGUESA (porque ahora el nav es #main-nav) ===== */
#main-nav .nav-hamburger span{
  background: rgba(255,255,255,.92); /* visible sobre el hero */
}

/* cuando haces scroll y el nav se vuelve blanco */
#main-nav.scrolled .nav-hamburger span{
  background: var(--gray-900);
}

/* menú móvil por encima del contenido */
#main-nav .nav-mobile-menu{
  z-index: 10000;
}
/* Mostrar hamburguesa en móvil y ocultar links */
@media (max-width: 980px){
  #main-nav .nav-hamburger{ display:flex; }
  #main-nav .nav-links{ display:none; }
}
/* =========================================================
   HUMIX OVERRIDES (pegar al FINAL del CSS)
   - Fondo sobrio (azul oscuro)
   - Acentos: azul HUMIX + dorado + rojo
   - Sin verdes/turquesas grandes
========================================================= */

/* 1) Variables: re-mapeo de tu sistema actual a HUMIX */
:root{
  --hx-blue:  #9dbbe5;
  --hx-red:   #fa1f02;
  --hx-gold:  #efce8c;
  --hx-ink:   #0e0f12;
  --hx-navy:  #122235;
  --hx-slate: #1b2f46;

  /* mapea tus variables existentes */
  --brand-blue: var(--hx-navy);
  --brand-blue-light: var(--hx-slate);

  /* “teal” pasa a ser azul HUMIX (NO verde) */
  --brand-teal: var(--hx-blue);
  --brand-teal-light: rgba(157,187,229,.22);

  --accent-gold: var(--hx-gold);
  --accent-sky: rgba(157,187,229,.18);

  --shadow-soft: 0 4px 32px rgba(18,34,53,0.10);
  --shadow-card: 0 10px 40px rgba(18,34,53,0.16);
}

/* 2) Etiquetas y micro-accentos */
.section-label{ color: var(--hx-navy) !important; }
.section-title strong{ color: var(--hx-navy); }

/* 3) Tarjeta stats (visual-main) SIN turquesa */
.visual-main{
  background: linear-gradient(145deg, rgba(18,34,53,.96), rgba(27,47,70,.86)) !important;
  border: 1px solid rgba(157,187,229,.22) !important;
}
.visual-main::before,
.visual-main::after{
  background: rgba(157,187,229,.10) !important;
}

/* 4) “chips” y detalles: azul HUMIX suave */
.feat-icon{
  background: linear-gradient(135deg, rgba(157,187,229,.22), rgba(239,206,140,.18)) !important;
}
.feat-card:hover{ border-color: rgba(157,187,229,.35) !important; }

/* 5) TIPOS: quita el verde (tipo-2) y deja HUMIX */
.tipo-1 .tipo-front{
  background: linear-gradient(180deg, rgba(157,187,229,.22) 0%, rgba(157,187,229,.45) 45%, rgba(18,34,53,.92) 100%) !important;
}
.tipo-2 .tipo-front{
  /* antes era verde -> ahora azul/gris HUMIX */
  background: linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(157,187,229,.30) 45%, rgba(18,34,53,.92) 100%) !important;
}
.tipo-3 .tipo-front{
  /* este puede ser dorado (ok) */
  background: linear-gradient(180deg, rgba(255,251,235,1) 0%, rgba(239,206,140,.55) 45%, rgba(125,75,10,.92) 100%) !important;
}

.tipo-back{ background: var(--hx-navy) !important; }
.sintoma-list li::before{ color: var(--hx-gold) !important; }

/* Tag del tipo: antes teal -> ahora dorado/azul */
.tipo-tag{
  background: linear-gradient(135deg, rgba(239,206,140,.95), rgba(157,187,229,.35)) !important;
  color: var(--hx-ink) !important;
  border: 1px solid rgba(239,206,140,.45) !important;
}


.wa-float:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 36px rgba(0,0,0,.26);
}

.wa-float svg{
  width: 28px;
  height: 28px;
  display:block;
}

/* En móvil, un poco más arriba por si hay barra inferior */
@media (max-width: 600px){
  .wa-float{ right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
.wa-float{ opacity: 0; pointer-events: none; transform: translateY(8px); }
.wa-float.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== WhatsApp flotante (FIX definitivo) ===== */
a.wa-float{
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 999999 !important;

  width: 56px !important;
  height: 56px !important;
  border-radius: 999px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #25D366 !important;
  color: #fff !important;
  text-decoration: none !important;

  box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease !important;
}

a.wa-float:hover{
  transform: translateY(-2px) !important;
  filter: brightness(1.03) !important;
  box-shadow: 0 18px 36px rgba(0,0,0,.26) !important;
}

a.wa-float svg{
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

@media (max-width: 600px){
  a.wa-float{
    right: 14px !important;
    bottom: 14px !important;
    width: 54px !important;
    height: 54px !important;
  }
}
.footer-logo{ gap:12px; }
.footer-logo-text .logo-sub{ color: rgba(255,255,255,.75); font-weight:600; font-size:.85rem; }
