/* ============================================================
   sistemarg — diseño y desarrollo web para empresas
   ============================================================ */

:root {
  /* type system: unified on Geist across headings, body, and brand/data */
  --font-heading: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-tech: 'Geist', system-ui, -apple-system, sans-serif;

  /* warm editorial canvas */
  --bg: #E8E6D8;
  --bg-alt: #FFFFFF;
  --surface: rgba(46, 46, 46, 0.035);
  --surface-strong: rgba(46, 46, 46, 0.07);
  --border: rgba(46, 46, 46, 0.14);
  --text: #2E2E2E;
  --text-dim: #64645c;
  --text-dimmer: #918f83;

  /* brand blues: energetic + formal */
  --accent: #3E77AB;
  --accent-2: #315469;
  --accent-light: #7FB0DA;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --gradient-soft: linear-gradient(135deg, rgba(62, 119, 171, 0.14), rgba(49, 84, 105, 0.10));

  /* black + cream: the premium "frame" zones (header, hero, footer) */
  --noir: #111111;
  --cream: #F4F2E8;
  --cream-dim: rgba(244, 242, 232, 0.68);
  --cream-dimmer: rgba(244, 242, 232, 0.42);
  --noir-border: rgba(244, 242, 232, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 0 1px rgba(46,46,46,0.05), 0 20px 50px -20px rgba(62, 119, 171, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- text helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 720px;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient);
  color: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(62, 119, 171, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(62, 119, 171, 0.6); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--text);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--noir);
  border-color: var(--noir);
  color: var(--cream);
  transform: translateY(-2px);
}

/* header CTA — lives on the black zone */
.btn-ghost {
  background: transparent;
  color: var(--cream-dim);
}
.btn-ghost:hover { color: var(--cream); }

.lang-switch {
  color: var(--cream-dim);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border: 1px solid var(--noir-border);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-switch:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(17, 17, 17, 0.82);
  border-bottom: 1px solid var(--noir-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.brand-name-system { color: var(--cream); }
.brand-name-arg { color: var(--accent); }

.brand-mark {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.96rem;
  color: var(--cream-dim);
}
.main-nav a:hover { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.58), rgba(17,17,17,0.68)),
    url('assets/img/bg-hero.jpg?v=20260720b') center/cover no-repeat;
}

.hero {
  --mx: 50%;
  --my: 32%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 420px at var(--mx) var(--my), rgba(127, 176, 218, 0.20), transparent 70%);
}

.blob { display: none; }
.grid-lines { display: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}
.blob-1 {
  width: 480px; height: 480px;
  background: var(--accent);
  top: -160px; left: -120px;
  animation: float1 16s ease-in-out infinite;
}
.blob-2 {
  width: 420px; height: 420px;
  background: var(--accent-2);
  top: 60px; right: -140px;
  animation: float2 18s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 60px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 40px); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 40%, transparent 80%);
}

.hero-inner { text-align: center; }

.hero .eyebrow { color: var(--accent-light); }

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 22px;
  color: var(--cream);
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.15rem;
  color: var(--cream-dim);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero .btn-outline {
  border-color: var(--noir-border);
  color: var(--cream);
}
.hero .btn-outline:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--noir);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num, .stat-suffix {
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
}
.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--cream-dimmer);
  margin-top: 4px;
}

.stats-band {
  background: var(--noir);
  padding: 56px 0;
}
.stats-band .hero-stats { margin-bottom: 0; }

/* ---------- sections shared ---------- */
.section { padding: 96px 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-alt); }

/* ---------- internal page hero (non-home pages) ---------- */
.page-hero {
  padding: 76px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 720px;
  margin: 0 auto 16px;
}
.page-hero-sub {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- internal page hero with photo background ---------- */
.page-hero-photo {
  color: var(--cream);
  border-bottom: none;
}
.page-hero-photo .eyebrow { color: var(--accent-light); }
.page-hero-photo .page-hero-sub { color: var(--cream-dim); }

.page-hero-automatizacion {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.58), rgba(17,17,17,0.68)),
    url('assets/img/bg-automatizacion.jpg?v=20260720a') center/cover no-repeat;
}
.page-hero-paginasweb {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.58), rgba(17,17,17,0.68)),
    url('assets/img/bg-paginasweb.jpg?v=20260720a') center/cover no-repeat;
}

/* ---------- help / decision cards ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.help-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--accent-2); }
.help-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- case study pages ---------- */
.case-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.case-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 36px 0 8px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-meta-item .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dimmer);
  margin-bottom: 5px;
}
.case-meta-item .value { font-weight: 600; color: var(--text); }
.case-block { max-width: 760px; margin: 44px auto 0; }
.case-block h2 { font-size: 1.5rem; margin-bottom: 14px; }
.case-block p { color: var(--text-dim); font-size: 1.03rem; }
.case-block + .case-block { margin-top: 36px; }

/* ---------- problems ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46,46,46,0.28);
  background: var(--surface-strong);
}
.problem-icon { display: block; margin-bottom: 14px; color: var(--accent-2); }
.problem-icon svg { width: 26px; height: 26px; }
.problem-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.problem-card p { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- services ---------- */
.services.section {
  background:
    linear-gradient(rgba(255,255,255,0.76), rgba(255,255,255,0.76)),
    url('assets/img/bg-servicios.jpg?v=20260718h') center/cover no-repeat;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.2s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  border-color: rgba(62, 119, 171, 0.45);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- service pillars (home) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.pillar-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 119, 171, 0.45);
  box-shadow: var(--shadow-glow);
}
.pillar-card .service-icon { width: 60px; height: 60px; margin-bottom: 22px; }
.pillar-card .service-icon svg { width: 30px; height: 30px; }
.pillar-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.pillar-card p { color: var(--text-dim); font-size: 1rem; margin-bottom: 22px; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-2);
}
.pillar-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.pillar-card:hover .pillar-link svg { transform: translateX(4px); }

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.process-card {
  position: relative;
  padding: 28px 22px;
  border-left: 2px solid var(--border);
}
.process-num {
  display: block;
  font-family: var(--font-tech);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.process-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- showcase ---------- */
.showcase.section {
  background:
    linear-gradient(rgba(255,255,255,0.74), rgba(255,255,255,0.74)),
    url('assets/img/bg-trabajos.jpg?v=20260718g') center/cover no-repeat;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.showcase-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.35s var(--ease);
}
.showcase-card:hover { transform: translateY(-6px); }
.see-all { display: block; width: max-content; margin: 36px auto 0; }
.showcase-thumb {
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
}
.showcase-thumb span {
  font-family: var(--font-tech);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  z-index: 1;
}
.showcase-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.thumb-1 {
  background:
    linear-gradient(160deg, rgba(16,33,59,0.25), rgba(16,33,59,0.65)),
    url('assets/img/work-legal.jpg?v=20260719a') center/cover no-repeat;
}
.thumb-2 {
  background:
    linear-gradient(160deg, rgba(58,46,39,0.15), rgba(58,46,39,0.55)),
    url('assets/img/work-deco.jpg?v=20260719a') center/cover no-repeat;
}
.thumb-3 {
  background:
    linear-gradient(160deg, rgba(46,110,105,0.2), rgba(46,110,105,0.6)),
    url('assets/img/work-salud.jpg?v=20260719a') center/cover no-repeat;
}
.showcase-info { padding: 22px; }
.showcase-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.showcase-info p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 44px;
  align-items: stretch;
}
.pricing-grid-compact .price-desc { flex: 1; min-height: 0; }
.pricing-grid-compact .price-addon-title { margin-bottom: 18px; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s var(--ease), border-color 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); }
.price-featured {
  border-color: rgba(62, 119, 171, 0.5);
  background: linear-gradient(180deg, rgba(62,119,171,0.10), rgba(46,46,46,0.02));
}
.price-badge {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--gradient);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-desc { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 20px; min-height: 70px; }
.price-tag {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.price-currency { color: var(--accent-2); margin-right: 4px; }
.price-period { font-size: 0.92rem; font-weight: 500; color: var(--text-dim); }
.price-features { margin-bottom: 26px; flex: 1; }
.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}
.price-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.price-features li:last-child { border-bottom: none; }

.price-addon {
  border-top: 1px solid var(--border);
  margin-bottom: 22px;
  padding-top: 16px;
}
.price-addon-title {
  font-size: 0.85rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.price-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.price-addon-item:last-child { border-bottom: none; }
.price-addon-item span { color: var(--text-dim); }
.price-addon-item strong { color: var(--text); white-space: nowrap; font-weight: 600; }

/* ---------- testimonials ---------- */
.testimonials.section {
  background:
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)),
    url('assets/img/bg-testimonios.jpg?v=20260719a') center/cover no-repeat;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.testimonial-card p { font-size: 1.02rem; margin-bottom: 16px; color: var(--text); }
.testimonial-card footer { color: var(--text-dimmer); font-size: 0.9rem; }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin-top: 36px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-2);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dim); margin-top: 12px; font-size: 0.98rem; }

/* ---------- cta final ---------- */
.cta-final { padding: 90px 0; }
.cta-final-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  --mx: 50%;
  --my: 50%;
  background:
    linear-gradient(160deg, rgba(17,17,17,0.32), rgba(17,17,17,0.62)),
    url('assets/img/bg-cta.jpg?v=20260718g') center/cover no-repeat;
  border: 1px solid var(--noir-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta-final-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 320px at var(--mx) var(--my), rgba(127, 176, 218, 0.28), transparent 70%);
}
.cta-final-inner h2,
.cta-final-inner p,
.cta-final-inner .btn {
  position: relative;
  z-index: 1;
}
.cta-final-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; color: var(--cream); }
.cta-final-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-final-inner .btn-outline { border-color: var(--noir-border); color: var(--cream); }
.cta-final-inner .btn-outline:hover { background: var(--cream); border-color: var(--cream); color: var(--noir); }
.cta-final-inner p { color: var(--cream-dim); margin-bottom: 28px; }

/* ---------- contact ---------- */
.contact.section {
  background:
    linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
    url('assets/img/bg-contacto.jpg?v=20260718g') center/cover no-repeat;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: 0.96rem; }
.contact-list span { color: var(--text-dim); font-size: 0.96rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.9rem; color: var(--text-dim); }
.form-row input, .form-row textarea {
  background: rgba(46,46,46,0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(46,46,46,0.06);
}
.form-note { font-size: 0.9rem; color: var(--accent-2); min-height: 1em; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--noir-border);
  padding: 50px 0 34px;
  background: var(--noir);
}
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-tag { color: var(--cream-dim); font-size: 0.96rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 0.93rem; color: var(--cream-dim); }
.footer-nav a:hover { color: var(--accent-light); }
.footer-copy { color: var(--cream-dimmer); font-size: 0.85rem; margin-top: 8px; }

/* ---------- floating whatsapp ---------- */
.wpp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  color: var(--cream);
  box-shadow: 0 12px 30px -8px rgba(62, 119, 171, 0.55);
  z-index: 40;
  transition: transform 0.3s var(--ease);
}
.wpp-float svg { width: 26px; height: 26px; }
.wpp-float:hover { transform: scale(1.08); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }

  .site-header.nav-open {
    position: fixed;
    inset: 0 0 auto 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--noir);
  }
  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    min-height: 76px;
  }
  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding-top: 8px;
  }
  .site-header.nav-open .header-actions {
    padding-top: 4px;
    padding-bottom: 24px;
  }
  .site-header.nav-open .nav-toggle {
    position: fixed;
    top: 21px;
    right: calc(4% + 6px);
  }
}

@media (max-width: 560px) {
  .hero { padding: 100px 0 70px; }
  .hero-stats { gap: 32px; }
  .section { padding: 70px 0; }
}

/* ---------- reduced motion: gate only intrusive/ambient effects ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .reveal {
    transition-duration: 0.01ms;
  }
}
