/* =========================================
   SARGENTO PIMIENTA — styles.css
   Tema claro, tipografía Merriweather + Inter
   ========================================= */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f5f0;
  --bg-card:   #ffffff;

  --olive:     #4a5e12;
  --olive-lt:  #6b7f2a;
  --accent:    #6B46C1;
  --accent-hv: #5534a5;
  --accent-lt: #ede9fb;

  --trad:      #2563EB;
  --trad-lt:   #dbeafe;
  --ia:        #EA580C;
  --ia-lt:     #ffedd5;

  --text:      #1a1a2e;
  --text-md:   #4a4a6a;
  --text-sm:   #7a7a9a;
  --border:    #e2e2ee;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-hv: 0 6px 28px rgba(0,0,0,0.12);

  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  --r:   10px;
  --r-lg: 18px;
  --nav-h: 126px;
  --ease: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  font-size: 16px;
}

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

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

.visibilidad-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hv);
  animation: vd2-appear 0.7s cubic-bezier(.22,.68,0,1.2) both;
}

.venn-caption, .pull-quote,
.footer-tagline, .footer-platforms, .footer-copy,
.process-step p, .for-who-item p,
.trust-pills, .cta-trust {
  text-align: center;
}
.text-center p { text-align: center; }
code {
  font-family: 'Courier New', monospace;
  font-size: 0.87em;
  background: #f0f0f8;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--olive);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--accent-hv);
  border-color: var(--accent-hv);
  box-shadow: 0 4px 16px rgba(107,70,193,0.3);
  outline: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ---- SECTIONS ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 52px;
}
.text-center { text-align: center; }

/* =========================================
   NAV
   ========================================= */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.nav-wrapper.scrolled {
  background: rgba(255,255,255,0.97);
  border-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  max-height: calc(var(--nav-h) - 24px);
  width: auto;
  height: auto;
}
.nav-logo-icon svg { display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  color: var(--olive);
  line-height: 1.15;
}
.nav-logo-sub {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--text-md);
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: none;
  gap: 2px;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-md);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--text);
  background: var(--bg-alt);
  outline: none;
}
.nav-cta { font-size: 0.88rem; padding: 9px 18px; flex-shrink: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 18px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 2px;
  z-index: 99;
}
.nav-links.mobile-open a {
  padding: 12px 14px;
  font-size: 1rem;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: calc(var(--nav-h) + 16px) 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-alt);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.badge-trad { background: var(--trad-lt); color: #1d4ed8; }
.badge-ia   { background: var(--ia-lt);   color: #c2410c; }
.badge-dot  { color: var(--text-sm); font-size: 1.2rem; }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 22px;
  text-align: center;
}
.hero-eyebrow { justify-content: center; }
.hero-body {
  color: var(--text-md);
  font-size: 1.05rem;
  margin-bottom: 14px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Venn Diagram */
.venn-wrapper { position: relative; }
.venn-diagram {
  display: flex;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hv);
  border: 1px solid var(--border);
  min-height: 310px;
}
.venn-left, .venn-right {
  flex: 1;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.venn-left  { background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); }
.venn-right { background: linear-gradient(225deg, #ffedd5 0%, #fff7ed 100%); align-items: flex-end; }

.venn-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
}
.venn-left  .venn-label { color: #1d4ed8; }
.venn-right .venn-label { color: #c2410c; text-align: right; }

.venn-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.venn-items li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-md);
}
.venn-items-right li { flex-direction: row-reverse; }
.venn-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.venn-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
  box-shadow: 0 0 0 8px rgba(107,70,193,0.15), 0 4px 24px rgba(107,70,193,0.4);
  z-index: 2;
}
.venn-caption {
  font-size: 0.78rem;
  color: var(--text-sm);
  text-align: center;
  margin-top: 12px;
}

/* =========================================
   PROBLEM CARDS
   ========================================= */
.cards-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow-hv); transform: translateY(-2px); }

.card-icon-wrap {
  width: 52px; height: 52px;
  background: var(--accent-lt);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 18px;
}
.card { text-align: center; }
.card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--text);
}
.card p { font-size: 0.9rem; color: var(--text-md); text-align: center; }

/* =========================================
   PLATFORMS
   ========================================= */
.platforms-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .platforms-grid { grid-template-columns: repeat(3, 1fr); } }

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.platform-card:hover { box-shadow: var(--shadow-hv); transform: translateY(-2px); }
.platform-logo-wrap { margin-bottom: 16px; }
.platform-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text);
}
.platform-card > p {
  font-size: 0.9rem;
  color: var(--text-md);
  margin-bottom: 18px;
  line-height: 1.65;
}

/* Check list shared */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.87rem;
  color: var(--text-md);
}
.check-list li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  min-width: 18px;
  margin-top: 0px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-hv); }

.sc-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 0;
  margin-bottom: 14px;
}
.sc-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.sc-purple .sc-icon { background: var(--accent-lt); color: var(--accent); }
.sc-blue   .sc-icon { background: #dbeafe; color: #2563eb; }
.sc-teal   .sc-icon { background: #d1fae5; color: #059669; }
.sc-amber  .sc-icon { background: #fef3c7; color: #d97706; }

.sc-header h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  padding-top: 6px;
}
.service-card-featured .sc-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4px;
}
.service-card-featured .sc-header h3 {
  font-size: 1.6rem;
  padding-top: 12px;
  text-align: center;
}

/* Color stripe at top */
.service-card::before {
  content: '';
  display: block;
  height: 4px;
}
.sc-purple::before { background: var(--accent); }
.sc-blue::before   { background: var(--trad); }
.sc-teal::before   { background: #059669; }
.sc-amber::before  { background: #d97706; }

.service-card > p {
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--text-md);
  margin-bottom: 16px;
}
.service-card .check-list {
  padding: 0 24px 24px;
}

/* Score bars */
.score-demo {
  margin: 0 24px 18px;
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-md);
}
.score-row span { min-width: 100px; }
.score-bar {
  flex: 1;
  height: 7px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.score-fill { height: 100%; border-radius: 100px; }
.sf-purple { background: var(--accent); }
.sf-orange { background: var(--ia); }
.score-row b { font-size: 0.78rem; min-width: 42px; text-align: right; color: var(--text); }

/* AI logos row */
.ai-logos-row {
  display: flex;
  gap: 8px;
  padding: 0 24px 14px;
}
.ai-logos-row span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Featured service card (contenido) */
.service-card-featured { grid-column: 1 / -1; }
.service-featured-intro {
  padding: 0 24px 18px;
  font-size: 1rem;
  color: var(--text-md);
  line-height: 1.7;
  font-weight: 500;
}

.content-columns {
  display: grid;
  gap: 20px;
  padding: 0 24px 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .content-columns { grid-template-columns: 1fr 1fr; }
}
.content-col h4 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.content-refresh-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 4px 24px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r);
  padding: 18px;
}
.refresh-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: #dcfce7;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: #16a34a;
}
.content-refresh-box h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 6px;
}
.content-refresh-box p {
  font-size: 0.85rem;
  color: #166534;
  line-height: 1.6;
  margin: 0;
}

.pull-quote {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: #92400e;
  border-left: none;
  border-top: 3px solid #f59e0b;
  border-bottom: 3px solid #f59e0b;
  padding: 20px 32px;
  margin: 0 24px 24px;
  line-height: 1.5;
  text-align: center;
}

/* =========================================
   PROCESS
   ========================================= */
.process-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .process-list {
    grid-template-columns: repeat(6, 1fr);
    position: relative;
  }
  .process-list::before {
    content: '';
    position: absolute;
    top: 28px; left: 28px; right: 28px;
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.ps-num {
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px rgba(107,70,193,0.2);
  flex-shrink: 0;
}
.ps-icon { color: var(--text-sm); }
.process-step h3 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.process-step p {
  font-size: 0.8rem;
  color: var(--text-md);
  line-height: 1.5;
}

/* =========================================
   COMPARISON TABLE (minimal, green palette)
   ========================================= */
.cmp-table {
  width: 100%;
  background: #f0f5f0;
  border-radius: 20px;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmp-header,
.cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.cmp-header {
  padding: 10px 12px 6px;
}

.cmp-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
}
.cmp-badge-b { background: #fde8e8; color: #b91c1c; }
.cmp-badge-a { background: #d1fae5; color: #065f46; }

.cmp-row {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  transition: box-shadow 0.2s;
}
.cmp-row:hover { box-shadow: 0 2px 12px rgba(46,160,90,0.10); }

.cmp-col-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3a2a;
}
.cmp-col-b {
  font-size: 0.85rem;
  color: #b91c1c;
  text-align: left;
}
.cmp-col-a {
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 600;
  text-align: left;
}

@media (max-width: 640px) {
  .cmp-header,
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-header .cmp-col-label { display: none; }
  .cmp-col-b::before { content: "✗ Antes: "; color: #b91c1c; font-weight: 700; }
  .cmp-col-a::before { content: "✓ Después: "; color: #065f46; font-weight: 700; }
}

/* =========================================
   FOR WHO
   ========================================= */
.for-who-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .for-who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .for-who-grid { grid-template-columns: repeat(3, 1fr); } }

.for-who-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.for-who-item:hover { box-shadow: var(--shadow-hv); transform: translateY(-2px); }
.fwi-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: var(--accent-lt);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.for-who-item p {
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.55;
  padding-top: 4px;
}

/* =========================================
   CTA SECTION
   ========================================= */
.section-cta {
  background: var(--text);
  color: #fff;
}
.section-cta .section-title,
.section-cta h2 { color: #fff; }
.cta-inner {
  display: grid;
  gap: 52px;
  align-items: start;
}
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1fr 1fr; }
}
.cta-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.65;
}
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-pills li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
}
.cta-contact-info { margin-top: 24px; }
.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--ease);
}
.cta-email:hover { color: #fff; }

/* Form */
.contact-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
}
.form-row input,
.form-row textarea {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-sm); }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,70,193,0.15);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 96px; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #eef0e8;
  color: #2a3010;
  padding: 52px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-logo { margin-bottom: 12px; }
.footer-logo img { max-height: 102px; width: auto; }
.footer-tagline {
  font-size: 0.88rem;
  color: #4a5e1a;
  margin-bottom: 6px;
  font-weight: 500;
}
.footer-platforms {
  font-size: 0.78rem;
  color: #6b7a3a;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 4px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: #4a5e1a;
  font-weight: 500;
  transition: color var(--ease);
  padding: 3px 0;
}
.footer-nav a:hover { color: #2a3a0a; text-decoration: underline; }
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #4a5e1a;
  margin-top: 10px;
  font-weight: 500;
  transition: color var(--ease);
  align-self: center;
}
.footer-email:hover { color: #2a3a0a; }
.footer-copy {
  font-size: 0.78rem;
  color: #7a8a4a;
  border-top: 1px solid #c8d4a0;
  padding-top: 20px;
}

/* =========================================
   VISIBILITY DIAGRAM v2
   ========================================= */
.vd2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
  animation: vd2-appear 0.7s cubic-bezier(.22,.68,0,1.2) both;
}
.vd2-left {
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 100%);
  padding: 28px 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vd2-right {
  background: linear-gradient(200deg, #ffedd5 0%, #fff7ed 100%);
  padding: 28px 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.vd2-title {
  font-family: var(--font-hand);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}
.vd2-title-trad { color: #1d4ed8; }
.vd2-title-ia   { color: #c2410c; text-align: right; }

.vd2-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vd2-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  color: #1e293b;
  opacity: 0;
  animation: vd2-item-in 0.5s ease forwards;
}
.vd2-list-r li { flex-direction: row-reverse; }

.vd2-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
}

.vd2-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.35;
  box-shadow: 0 0 0 14px rgba(107,70,193,0.12), 0 6px 28px rgba(107,70,193,0.4);
  z-index: 2;
  animation: vd2-center-pop 0.6s 0.4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes vd2-appear {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vd2-center-pop {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.4); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@keyframes vd2-item-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.vd2-list-r li { animation-name: vd2-item-in-r; }
@keyframes vd2-item-in-r {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =========================================
   FADE-IN ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay { transition-delay: 0.16s; }

/* =========================================
   ACCESSIBILITY
   ========================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: #fff; }

/* =========================================
   MOBILE — max 639px
   ========================================= */
@media (max-width: 639px) {

  /* Nav más compacto */
  :root { --nav-h: 72px; }
  .nav-cta { display: none; } /* evita hacinamiento: logo + toggle + botón */

  /* Texto justificado se ve mal en columnas angostas */
  p { text-align: left; }

  /* Secciones con menos aire */
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 32px; font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 12px) 0 40px; }
  .hero h1 { font-size: clamp(1.75rem, 6.5vw, 2.2rem); }
  .hero-body { max-width: 100%; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn { width: 100%; justify-content: center; text-align: center; }

  /* Score bars — evitar overflow */
  .score-row { flex-wrap: wrap; gap: 6px; }
  .score-row span { min-width: auto; width: 100%; font-weight: 600; }
  .score-bar { width: 100%; }
  .score-row b { margin-left: auto; }

  /* Pull quote más compacto */
  .pull-quote {
    font-size: 1.25rem;
    padding: 14px 16px;
    margin: 0 0 20px;
  }

  /* Título del servicio destacado */
  .service-card-featured .sc-header h3 { font-size: 1.15rem; }
  .service-featured-intro { font-size: 0.9rem; }

  /* Content refresh box en columna */
  .content-refresh-box { flex-direction: column; }

  /* Formulario */
  .contact-form { padding: 24px 16px; }

  /* Footer */
  .footer-logo img { max-height: 80px; }

  /* ---- Vis diagram: rediseño para mobile ---- */
  .vis-diagram {
    /* Cambiamos de position:relative con hijos absolutos
       a un layout estático en mobile */
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    overflow: visible !important;
  }
  /* Ocultamos el SVG de líneas animadas y los pulsos en mobile */
  .vis-lines,
  .vis-pulse,
  .vis-seo-tag { display: none !important; }

  /* Nodo central — lo ponemos como elemento full-width arriba */
  .vis-center-node {
    position: static !important;
    transform: none !important;
    grid-column: 1 / -1;
    width: 100%;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 4px;
    flex-direction: row;
    gap: 10px;
  }
  .vis-center-node .vc-icon { font-size: 22px; margin-bottom: 0; }
  .vis-center-node .vc-label { font-size: 13px; }
  .vis-center-node .vc-sub { display: none; }

  /* Todos los nodos: posición estática */
  .vis-node {
    position: static !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  /* Clases de posición absoluta — anulamos top/left/right */
  .vn-google, .vn-bing, .vn-gsc, .vn-maps,
  .vn-chatgpt, .vn-gemini, .vn-perplexity, .vn-claude {
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  /* Title bar encima del diagrama */
  .vis-title-bar { margin-bottom: 6px; }
  .vis-title-col h3 { font-size: 11px; }
  .vis-title-col p  { font-size: 9px; }

  /* Steps */
  .vis-steps { gap: 6px; }
  .vis-step  { font-size: 10px; padding: 6px 10px; }
}
