/* NovalIA · estilos globales */

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

:root {
  --bg: #fdfcf8;
  --bg2: #f4f2eb;
  --bg3: #e9e6dc;
  --text: #141412;
  --text2: #5c5a53;
  --text3: #a09d93;
  --border: rgba(20,20,18,0.08);
  --border2: rgba(20,20,18,0.16);
  --accent: #1f5f3f;
  --accent-soft: #e4ede6;
  --accent-ink: #11402a;
  --danger-bg: #FCEBEB;
  --danger-text: #A32D2D;
  --warn-bg: #FAEEDA;
  --warn-text: #854F0B;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(20,20,18,0.04), 0 1px 1px rgba(20,20,18,0.03);
  --shadow-md: 0 8px 24px -8px rgba(20,20,18,0.12), 0 2px 6px rgba(20,20,18,0.05);
  --shadow-lg: 0 24px 60px -16px rgba(20,20,18,0.18), 0 6px 16px rgba(20,20,18,0.06);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

::selection { background: var(--accent); color: var(--bg); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  z-index: 300;
  transition: width 0.08s linear;
  will-change: width;
}

/* ---------- NAV ---------- */
nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(253,252,248,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 200;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 66px;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 23px;
  letter-spacing: -0.6px;
  text-decoration: none;
  color: var(--text);
  grid-column: 2; grid-row: 1;
  justify-self: center;
  display: inline-block;
}
.logo em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-links a:not(.btn-nav) {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 7px;
  position: relative;
  transition: color .18s var(--ease);
  letter-spacing: -0.01em;
}
.nav-links a:not(.btn-nav):hover { color: var(--text); }
.nav-links a:not(.btn-nav)::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:not(.btn-nav):hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); background: var(--accent); }

.btn-nav {
  font-size: 13.5px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg) !important;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn-nav:hover { background: var(--accent) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  grid-column: 1; grid-row: 1;
  justify-self: start;
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--bg2); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; animation: fadeDown .3s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-mobile a {
  font-size: 15.5px;
  color: var(--text2);
  text-decoration: none;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn-nav {
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  margin-left: 0;
}

@media (min-width: 821px) {
  .nav-inner .nav-left { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav-inner .nav-right { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav-inner .nav-hamburger { display: none; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 100px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: .7;
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,95,63,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  max-width: 820px;
  font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero h1 .amp { color: var(--text3); font-style: normal; margin: 0 2px; }

/* grid 2 columnas en escritorio para que el hero no quede vacío a la derecha */
@media (min-width: 980px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
  }
  .hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 420px;
    justify-self: end;
    width: 100%;
  }
}
.hero-visual { display: none; }
@media (min-width: 980px) { .hero-visual { display: block; } }

.hero-visual-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--accent-soft) 40%, var(--bg) 75%);
  overflow: hidden;
}
.hero-visual-ring {
  position: absolute;
  inset: 10%;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: .35;
  animation: spin 40s linear infinite;
}
.hero-visual-ring.r2 { inset: 22%; animation-duration: 60s; animation-direction: reverse; opacity: .2; }
.hero-visual-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(100px, 14vw, 180px);
  color: var(--accent);
  letter-spacing: -4px;
  line-height: 1;
}
.hero-visual-mark em { font-style: italic; color: var(--accent-ink); }
.hero-visual-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent);
}
.hero-visual-dot.d1 { top: 12%; right: 20%; }
.hero-visual-dot.d2 { bottom: 18%; left: 15%; animation: pulse 2.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text2);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-secondary {
  font-size: 15px;
  padding: 14px 24px;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary .arrow, .btn-secondary .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn-primary:hover .arrow, .btn-secondary:hover .arrow { transform: translateX(4px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--bg2); border-color: var(--text); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s;
}
.btn-link:hover { background: var(--accent-soft); }
.btn-link .arrow { transition: transform .25s var(--ease); }
.btn-link:hover .arrow { transform: translateX(4px); }

/* ---------- SECTORES ---------- */
.sectores {
  margin: 56px 0 0;
  padding: 28px 0 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sectores-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}
.sectores-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--text2);
  border: 1px solid var(--border);
  letter-spacing: -0.01em;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent);
}
@media (max-width: 640px) {
  .sectores { gap: 14px; }
  .sectores-label { width: 100%; }
}

/* ---------- SECTION LABEL ---------- */
.section-label, h1.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 700px;
  font-weight: 400;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-intro {
  font-size: 16px;
  color: var(--text2);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.65;
}

/* ---------- STATS ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 72px 0;
}
.stat {
  padding: 32px 28px;
  background: var(--bg);
  transition: background .2s;
}
.stat:hover { background: var(--bg2); }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 46px;
  letter-spacing: -1.4px;
  margin-bottom: 6px;
  line-height: 1;
  color: var(--text);
}
.stat-num em { font-style: italic; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text2); letter-spacing: -0.01em; }

/* ---------- SERVICIOS INICIO (preview) ---------- */
#servicios { padding: 24px 0 72px; }
.srv-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.srv, .srv-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.srv:hover, .srv-mini:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.srv-mini {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 22px 24px;
}
.srv-mini::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.srv-mini:hover::before { transform: scaleX(1); }

.srv.featured { border: 1px solid var(--accent); background: var(--bg); }
.srv.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}

.srv-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-ink);
}
.srv-mini .srv-icon { width: 38px; height: 38px; margin-bottom: 14px; }
.srv-name { font-size: 15.5px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.015em; }
.srv-mini .srv-name { font-size: 14.5px; }
.srv-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.srv-mini .srv-desc { font-size: 13px; margin-bottom: 0; }

.srv-features { list-style: none; margin-bottom: 18px; }
.srv-features li {
  font-size: 12.5px;
  color: var(--text2);
  padding: 3px 0 3px 18px;
  position: relative;
}
.srv-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1.5px;
  background: var(--accent);
}
.srv-price { font-size: 13px; color: var(--text2); }
.srv-price b { font-size: 22px; font-weight: 400; color: var(--text); font-family: 'DM Serif Display', serif; letter-spacing: -0.5px; }
.srv-price .mo { font-size: 12px; color: var(--text3); margin-left: 4px; }

.badge-hot, .badge-grow {
  display: inline-block;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.badge-hot { background: var(--danger-bg); color: var(--danger-text); }
.badge-grow { background: var(--warn-bg); color: var(--warn-text); }

.srv-mini-all {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  background: var(--text);
  color: var(--bg) !important;
  border-color: var(--text);
}
.srv-mini-all .srv-name { color: var(--bg); }
.srv-mini-all .srv-desc { color: rgba(253,252,248,0.7); }
.srv-mini-arrow {
  margin-top: 12px;
  color: var(--bg);
  font-size: 18px;
  transition: transform .3s var(--ease);
}
.srv-mini-all:hover { background: var(--accent); border-color: var(--accent); }
.srv-mini-all:hover .srv-mini-arrow { transform: translateX(6px); }

@media (max-width: 900px) { .srv-mini-grid, .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .srv-mini-grid, .services-grid { grid-template-columns: 1fr; } }

/* ---------- SERVICIOS PÁGINA COMPLETA ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 72px 0; border-top: 1px solid var(--border); }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.testi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testi::before {
  content: '"';
  position: absolute;
  top: 10px; left: 20px;
  font-family: 'DM Serif Display', serif;
  font-size: 60px;
  color: var(--accent-soft);
  line-height: 1;
}
.testi-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.author-name { font-size: 13.5px; font-weight: 500; }
.author-biz { font-size: 11.5px; color: var(--text3); }

@media (max-width: 700px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  margin: 28px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 140%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(31,95,63,.22) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.1;
  font-weight: 400;
  position: relative;
}
.cta-section h2 em { font-style: italic; color: #a3d4b7; }
.cta-section p {
  font-size: 16px;
  color: rgba(253,252,248,0.72);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
  position: relative;
}
.cta-section .btn-primary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
  position: relative;
}
.cta-section .btn-primary:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ---------- FORM ---------- */
#contacto { padding: 72px 0; border-top: 1px solid var(--border); }
#contacto h2,
#contacto h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  font-weight: 400;
}
#contacto .sub { font-size: 15px; color: var(--text2); margin-bottom: 36px; max-width: 460px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; color: var(--text2); font-weight: 500; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 16px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.select-wrapper { position: relative; }
.select-wrapper select { width: 100%; padding-right: 40px; cursor: pointer; }
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text2);
  border-bottom: 1.5px solid var(--text2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { height: 110px; resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 16px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 10px;
  transition: background .25s var(--ease), transform .2s var(--ease);
  letter-spacing: -0.01em;
}
.form-submit:hover { background: var(--accent); transform: translateY(-1px); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- PROCESO ---------- */
#proceso { padding: 24px 0 72px; }
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.paso {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color .25s, transform .25s var(--ease);
}
.paso:hover { border-color: var(--accent); transform: translateY(-3px); }
.paso-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--accent);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
}
.paso-title { font-size: 16px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.015em; }
.paso-desc { font-size: 13.5px; color: var(--text2); line-height: 1.65; }

@media (max-width: 800px) { .proceso-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
#faq { padding: 24px 0 72px; }
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 22px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s;
  letter-spacing: -0.01em;
}
.faq-q:hover { background: var(--bg2); }
.faq-q .arrow {
  font-size: 20px;
  color: var(--text3);
  transition: transform .3s var(--ease), color .25s;
  flex-shrink: 0;
}
.faq-q.open .arrow { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 26px;
}
.faq-a.open { max-height: 300px; padding: 0 26px 22px; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .footer-icons { justify-content: center; }
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.4px;
}
.footer-logo em { font-style: italic; color: var(--accent); }
.footer-text { font-size: 13px; color: var(--text2); text-align: center; }
.footer-icons { display: flex; gap: 14px; justify-content: flex-end; }
.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--text2);
  transition: background .2s, color .2s, transform .2s;
}
.footer-icons a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text3);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- EJEMPLOS PAGE ---------- */
.section-sub { color: var(--text2); font-size: 15px; line-height: 1.6; text-align: center; max-width: 580px; margin: 0 auto 32px; }
.ejemplos-filtros { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filtro-btn {
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
  font-family: inherit;
}
.filtro-btn:hover { color: var(--text); border-color: var(--text); }
.filtro-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.ejemplos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ejemplo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s;
}
.ejemplo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border2);
}
.ejemplo-card.hidden { display: none; }
.ejemplo-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg2);
  overflow: hidden;
}
.ejemplo-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.ejemplo-card:hover .ejemplo-img img { transform: scale(1.04); }
.ejemplo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--text3);
  font-size: 32px;
}
.ejemplo-placeholder span { font-size: 12px; }
.ejemplo-info { padding: 20px; }
.ejemplo-cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
}
.ejemplo-nombre { font-size: 15.5px; font-weight: 500; margin: 12px 0 6px; letter-spacing: -0.015em; }
.ejemplo-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }
@media (max-width: 900px) { .ejemplos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ejemplos-grid { grid-template-columns: 1fr; } }

/* ---------- HERO ANIMATIONS ---------- */
.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn .9s var(--ease) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-visual {
  opacity: 0;
  animation: heroIn 1.1s var(--ease) .3s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- QR MODAL (legacy, mantiene compatibilidad) ---------- */
.qr-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:999; align-items:center; justify-content:center; padding:24px; backdrop-filter:blur(4px); }
.qr-modal-overlay.open { display:flex; }
.qr-modal { background:var(--bg); border-radius:var(--radius-lg); max-width:640px; width:100%; max-height:82vh; overflow-y:auto; padding:36px; position:relative; box-shadow:var(--shadow-lg); }
.qr-modal-close { position:absolute; top:16px; right:18px; background:none; border:none; font-size:22px; cursor:pointer; color:var(--text3); line-height:1; padding:4px 8px; border-radius:var(--radius-md); transition:background .15s, color .15s; }
.qr-modal-close:hover { background:var(--bg2); color:var(--text); }
.qr-modal-title { font-family:'DM Serif Display',serif; font-size:26px; letter-spacing:-0.5px; margin-bottom:6px; }
.qr-modal-subtitle { font-size:14px; color:var(--text2); margin-bottom:28px; line-height:1.6; }
.qr-types-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.qr-type { border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px 20px; transition:border-color .2s, box-shadow .2s; }
.qr-type:hover { border-color:var(--border2); box-shadow:var(--shadow-sm); }
.qr-type-icon { font-size:22px; margin-bottom:10px; }
.qr-type-name { font-size:14px; font-weight:500; margin-bottom:6px; }
.qr-type-desc { font-size:12px; color:var(--text2); line-height:1.6; margin-bottom:10px; }
.qr-type-tag { display:inline-block; font-size:10px; padding:2px 8px; border-radius:20px; background:var(--bg2); color:var(--text2); font-weight:500; }
.qr-type.recommended { border:1.5px solid var(--accent); }
.qr-type.recommended .qr-type-tag { background:var(--accent-soft); color:var(--accent-ink); }
.qr-modal-cta { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); text-align:center; }
.qr-modal-cta p { font-size:13px; color:var(--text2); margin-bottom:14px; }
.btn-qr-detail { font-size:12px; color:var(--text2); background:none; border:none; cursor:pointer; font-family:inherit; text-decoration:underline; text-underline-offset:3px; margin-top:12px; display:block; width:100%; text-align:center; }
.btn-qr-detail:hover { color:var(--text); }
.qr-carousel-wrap { position:relative; margin-bottom:28px; border-radius:var(--radius-lg); overflow:hidden; background:var(--bg2); }
.qr-carousel { display:flex; transition:transform .35s cubic-bezier(.4,0,.2,1); }
.qr-slide { min-width:100%; display:flex; align-items:center; justify-content:center; padding:28px; }
.qr-slide img { width:100%; max-width:320px; height:240px; object-fit:contain; border-radius:var(--radius-md); display:block; margin:0 auto; }
.qr-carr-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.9); border:1px solid var(--border); border-radius:50%; width:36px; height:36px; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--text); z-index:2; }
.qr-carr-btn:hover { background:white; }
.qr-carr-prev { left:10px; } .qr-carr-next { right:10px; }
.qr-dots { display:flex; justify-content:center; gap:6px; padding:10px 0 14px; }
.qr-dot { width:7px; height:7px; border-radius:50%; background:var(--border2); border:none; cursor:pointer; transition:background .2s, transform .2s; padding:0; }
.qr-dot.active { background:var(--accent); transform:scale(1.3); }
.qr-type-section { margin-bottom:24px; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.qr-type-section:last-of-type { margin-bottom:0; }
.qr-type-section-header { display:flex; align-items:flex-start; gap:14px; padding:18px 20px 16px; border-bottom:1px solid var(--border); }
.qr-type-section-num { font-family:'DM Serif Display',serif; font-size:28px; color:var(--accent); line-height:1; min-width:32px; font-style:italic; }
.qr-type-section-name { font-size:15px; font-weight:500; margin-bottom:3px; }
.qr-type-section-desc { font-size:12px; color:var(--text2); line-height:1.5; }
.qr-type-section .qr-carousel-wrap { border-radius:0; margin-bottom:0; }

/* ---------- MISC ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Fallback mobile */
@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }
  .stats-row { grid-template-columns: 1fr; }
  .cta-section { padding: 48px 24px; }
  .nav-inner { height: 58px; }
}
