:root {
  --bg: #f6f3ec;
  --bg-alt: #ece7db;
  --ink: #1d2a24;
  --muted: #5d6a63;
  --accent: #1f6f54;
  --accent-dark: #17543f;
  --line: #d9d2c2;
  --radius: 14px;
  --serif: 'Piazzolla', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 243, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* Botones */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 2px solid var(--accent);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: 1.2rem; max-width: 640px; color: #34423b; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* Secciones */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { max-width: 640px; color: var(--muted); margin-bottom: 32px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ticks.cross li::before { content: '✕'; color: #9a3a2a; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card p { color: #3e4c45; flex: 1; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: ' →'; }
.card-link:hover { text-decoration: underline; }

.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

/* Pasos */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; max-width: 720px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700;
}

/* FAQ */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { margin: 12px 0 0; color: #3e4c45; }

.final-cta { background: var(--ink); color: #f6f3ec; }
.final-cta h2 { color: #f6f3ec; }
.final-cta p { color: #d7d3c6; }

/* Pie */
.site-footer { padding: 28px 0 90px; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-links a { color: var(--muted); margin-left: 16px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  background: #25d366; color: #0b3d1f; font-weight: 700; text-decoration: none;
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float:hover { background: #1fbd5a; }

/* Páginas legales */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.todo { background: #fff3cd; border: 1px solid #e6c860; border-radius: 8px; padding: 2px 8px; }

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---- Hero con ilustración ---- */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-visual { position: relative; padding: 24px 0 36px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px rgba(29,42,36,.14); overflow: hidden; transform: rotate(1.5deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1ede2; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3cbb8; }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 3px 12px; }
.mock-body { padding: 18px; }
.mock-hero { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #1f6f54, #7fb89c); margin-bottom: 16px; }
.mock-line { height: 10px; border-radius: 6px; background: #e4dfd1; margin-bottom: 10px; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 60%; }
.mock-btn { display: inline-block; margin-top: 8px; padding: 8px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; }
.bubble { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .85rem; box-shadow: 0 10px 24px rgba(29,42,36,.14); }
.bubble-google { left: -14px; bottom: 6px; display: flex; flex-direction: column; }
.bubble-google span { color: #b7791f; font-size: .78rem; }
.bubble-wa { right: -6px; top: 4px; background: #dcf8c6; border-color: #bfe8a3; max-width: 190px; }

/* ---- Iconos de servicios ---- */
.icon { width: 46px; height: 46px; border-radius: 12px; background: #e3efe9; display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Capturas FunFungi ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(29,42,36,.12); display: block; }
.shot-empty { aspect-ratio: 16 / 10; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; text-align: center; color: var(--muted); background: var(--bg-alt); font-weight: 600; }
.shot-empty small { font-weight: 400; }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---- Equipo ---- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; }
.person { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.person h3 { margin-bottom: 2px; }
.role { color: var(--accent); font-weight: 600; font-size: .9rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
}

.shots-note { grid-column: 1 / -1; font-size: .85rem; margin: 4px 0 0; }
.shot-mobile img { max-width: 280px; margin: 0 auto; }
.shot-mobile figcaption { text-align: center; }

.hero-img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 50px rgba(29,42,36,.18); display: block; }
.ai-note { position: absolute; left: 4px; bottom: -4px; margin: 0; font-size: .72rem; color: var(--muted); }

/* ===== Revisión v2 ===== */
/* Hero: ilustración + nota IA debajo (sin solaparse) */
.hero-frame { position: relative; }
.hero-visual { padding: 12px 0 0; }
.ai-note { position: static; margin: 10px 0 0; text-align: right; font-size: .75rem; color: var(--muted); }
.bubble-google { left: -14px; bottom: 18px; }
.bubble-wa { right: -6px; top: -10px; }

/* Servicios: destacados y secundarios */
.cards-featured { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 8px; }
.card-featured { position: relative; padding: 32px; border-color: var(--accent); box-shadow: 0 12px 30px rgba(31,111,84,.10); }
.card-featured h3 { font-size: 1.45rem; }
.badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.cards-title { margin: 48px 0 20px; font-size: 1.3rem; color: var(--muted); }

/* Sesión de IA */
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 8px; }
.cols-2 h3 { margin-top: 1.2em; }
.cols-2 > div > h3:first-child { margin-top: 0; }

/* Galería FunFungi: alturas iguales */
.shots { grid-template-columns: 1.4fr 1.4fr .7fr; align-items: start; }
.shot img { height: 300px; object-fit: cover; object-position: top; width: 100%; }
.shot-mobile img { max-width: none; margin: 0; }
.shot-mobile figcaption { text-align: left; }

@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; }
  .shot img { height: auto; max-height: 340px; }
  .shot-mobile img { max-width: 240px; }
  .header-inner .btn-small { display: none; }
  .wa-float { padding: 11px 16px; font-size: .9rem; right: 12px; bottom: 12px; }
  .bubble-google { left: 6px; }
  .bubble-wa { right: 6px; top: -14px; }
  .section { padding: 44px 0; }
}

/* Ajustes tras revisión visual */
.cards-secondary { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.shot img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-mobile img { aspect-ratio: 4 / 5; }
@media (max-width: 720px) { .shot-mobile img { aspect-ratio: auto; } }

/* Logo y selector de idioma */
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.lang { font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: .3rem .7rem; }
.lang:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 720px) { .brand img { height: 32px; } }
.shots.shots-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .shots.shots-2 { grid-template-columns: 1fr; } }
