/* ============================================================
   Giovanni Servicios IA — dirección «Sereno»
   Serif editorial + verde sereno. Sin amarillos, sin violetas.
   ============================================================ */

:root {
  --paper: #f3f6f5;
  --surface: #ffffff;
  --ink: #16211f;
  --verde: #2f7d6d;
  --verde-osc: #1f5a4e;
  --coral: #e2726a;
  --muted: #5b6f6a;
  --muted-2: #4c605b;
  --line: rgba(22, 33, 31, .09);
  --line-2: rgba(22, 33, 31, .18);
  --sand: #e6ded9;
  --shell: 1180px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--verde); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

/* ── entrada escalonada ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
/* Sin JS el contenido tiene que verse igual. */
.no-js .reveal { opacity: 1; transform: none; }

/* ── header ─────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 60; background: rgba(243, 246, 245, .86); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; }
.brand b { font-weight: 400; color: var(--muted); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--muted-2); }
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: 11px 20px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 13.5px; transition: background .18s ease, color .18s ease; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; color: var(--ink); font-size: 14px; }

/* ── botones ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 27px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #22312e; }
.btn-light { background: #fff; color: var(--ink); font-weight: 700; }
.btn-text { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .18s ease; }
.btn-text:hover { border-color: var(--ink); }
.btn-text svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-text.light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-text.light:hover { border-color: #fff; }

/* ── etiquetas de sección ───────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); }
.eyebrow .rule { width: 26px; height: 1px; background: currentColor; }
.eyebrow.light { color: #8fc9b9; }

/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.halo { position: absolute; top: -300px; right: -200px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, #cfe4dd 0%, rgba(243,246,245,0) 70%); animation: onda 16s ease-in-out infinite; pointer-events: none; }
@keyframes onda { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(22px,-16px); } }

.hero-copy { position: relative; max-width: 760px; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 4.9rem); line-height: 1.03; margin: 20px 0 0; text-wrap: pretty; }
.lead { max-width: 560px; margin-top: 22px; font-size: 17.5px; line-height: 1.68; color: var(--muted-2); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }

.hero-showcase { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 52px; padding-bottom: 90px; align-items: stretch; }

.vignette { position: relative; border-radius: 22px; padding: 26px; background: linear-gradient(150deg, #dfece7, #e9f0ec 58%, #f2e5e2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.chat { background: #fff; border-radius: 16px; padding: 15px 17px; box-shadow: 0 18px 36px -26px rgba(22,33,31,.5); max-width: 380px; }
.chat-head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--verde); }
.chat-name { font-weight: 600; }
.chat-time { margin-left: auto; color: #93a5a0; font-size: 11.5px; }
.bubble { margin-top: 8px; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; }
.bubble.in { border-radius: 13px 13px 13px 4px; background: #f1f4f3; color: var(--muted-2); }
.bubble.out { border-radius: 13px 13px 4px 13px; background: var(--verde); color: #eef6f3; }
.booked { align-self: flex-end; display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px; padding: 14px 17px; box-shadow: 0 18px 36px -26px rgba(22,33,31,.5); }
.booked b { display: block; font-size: 13.5px; }
.booked span { font-size: 11.5px; color: var(--muted); }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(47,125,109,.14); flex: none; }
.tick svg { width: 15px; height: 15px; fill: none; stroke: var(--verde); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vignette-note { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: latir 2.6s ease-in-out infinite; }
@keyframes latir { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.35); opacity: .35; } }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.panel { border-radius: 22px; padding: 26px; }
.panel-green { flex-grow: 1; background: var(--verde); color: #eef6f3; }
.panel-green h2 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); line-height: 1.07; color: #fff; }
.panel-green p { margin-top: 12px; font-size: 13.5px; line-height: 1.62; color: rgba(238,246,243,.85); }
.panel-stat { background: var(--surface); border: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.panel-stat .num { font-family: var(--serif); font-size: 42px; line-height: 1; }
.panel-stat span:last-child { font-size: 13.5px; color: var(--muted-2); line-height: 1.5; }

/* ── manifiesto ─────────────────────────────────────────── */
.manifesto { padding: 104px 0; background: var(--surface); }
.split { display: grid; grid-template-columns: 240px 1fr; gap: 60px; }
.split > .eyebrow { align-self: start; padding-top: 12px; }
.manifesto h2 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.09; max-width: 800px; text-wrap: pretty; }
.body { max-width: 620px; margin-top: 22px; font-size: 16.5px; line-height: 1.72; color: var(--muted-2); }

/* ── encabezados de sección ─────────────────────────────── */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.07; max-width: 620px; }
.section-head > p, .section-head p:not(.eyebrow) { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 340px; }
.section-head .eyebrow + h2 { margin-top: 14px; }

/* ── rubros ─────────────────────────────────────────────── */
.sectors { padding: 100px 0; }
.sector h3 { font-size: 23px; margin: 20px 20px 0; }
.sector p { margin: 8px 20px 22px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }


/* ── rubros: una fila por rubro, imagen grande y alternada ──
   Antes eran cinco tarjetas chicas apretadas en una fila. Repartidas a lo
   largo de la pagina cada imagen respira y el texto tiene lugar para decir
   algo concreto. */
.rubro-lista-mayor { display: flex; flex-direction: column; gap: 96px; }
.rubro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.rubro-alt .rubro-foto { order: 2; }
.rubro-foto { border-radius: 26px; overflow: hidden; background: #e6eeeb; border: 1px solid var(--line); }
.rubro-foto img { display: block; width: 100%; height: 420px; object-fit: cover; }
.rubro-n { font-family: var(--serif); font-size: 26px; color: var(--verde); }
.rubro-texto h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; margin-top: 8px; }
.rubro-texto > p { margin-top: 16px; font-size: 16.5px; line-height: 1.72; color: var(--muted-2); max-width: 460px; }
.rubro-lista { margin-top: 24px; display: flex; flex-direction: column; gap: 11px; }
.rubro-lista li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--muted-2); }
.rubro-lista li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--coral); }

/* ── soluciones ─────────────────────────────────────────── */
.solutions { padding: 100px 0; background: var(--surface); }
.solutions > .shell > h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.07; max-width: 620px; margin-bottom: 44px; }
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.solution { padding: 30px; border-radius: 22px; background: var(--paper); }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(47,125,109,.12); }
.ico svg { width: 21px; height: 21px; fill: none; stroke: var(--verde); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.solution h3 { font-size: 27px; margin-top: 16px; }
.solution p { margin-top: 10px; font-size: 14.5px; line-height: 1.68; color: var(--muted-2); }

/* ── demos ──────────────────────────────────────────────── */
.demos { padding: 100px 0; }
.demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Todas las tarjetas iguales. Lo que las diferencia es la captura de la demo
   real, no el color de fondo. */
.demo a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.demo a:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -30px rgba(22,33,31,.5); }
.demo-shot { display: block; background: #eef2f1; border-bottom: 1px solid var(--line); }
.demo-shot img { display: block; width: 100%; height: 168px; object-fit: cover; object-position: top; }
.demo-cuerpo { display: flex; flex-direction: column; flex-grow: 1; padding: 18px 20px 20px; }
.demo-rubro { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); }
.demo-nombre { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin-top: 7px; }
.demo-que { font-size: 13px; color: var(--muted); margin-top: 4px; }
.demo-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 600; color: var(--verde); }
.demo-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.demo a:hover .demo-link svg { transform: translateX(3px); }

/* ── giovanni flota ─────────────────────────────────────── */
.flota { padding: 0 0 100px; }
.flota-box { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; border-radius: 28px; background: var(--ink); color: #eef2f0; }
.flota h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.07; color: #fff; margin-top: 16px; }
.flota p { margin-top: 18px; font-size: 15.5px; line-height: 1.72; color: #a9bdb7; max-width: 460px; }
.flota .btn-text { margin-top: 24px; }
.flota-stats { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.flota-stats li { padding: 18px 22px; border-radius: 16px; background: rgba(238,242,240,.06); border: 1px solid rgba(238,242,240,.12); }
.flota-stats b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: #fff; }
.flota-stats span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: #9db3ad; }

/* ── proceso ────────────────────────────────────────────── */
.process { padding: 100px 0; background: var(--surface); }
.split-wide { display: grid; grid-template-columns: 380px 1fr; gap: 70px; }
.process h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.08; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--verde); }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 520px; }

/* ── contacto ───────────────────────────────────────────── */
.contact { padding: 100px 0; background: var(--verde); color: #eef6f3; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1.06; color: #fff; }
.contact h2 em { color: #fff; }
.contact > .shell > div > p { margin-top: 20px; font-size: 16px; line-height: 1.72; color: rgba(238,246,243,.86); max-width: 440px; }
.wa-card { margin-top: 34px; padding: 20px 24px; border-radius: 18px; background: rgba(255,255,255,.1); max-width: 360px; }
.wa-card > span { font-size: 12.5px; color: rgba(238,246,243,.72); }
.wa-card a { display: flex; align-items: center; gap: 11px; margin-top: 8px; font-size: 19px; font-weight: 600; color: #fff; }
.wa-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-content: start; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(238,246,243,.78); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12); color: #fff; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.contact-form textarea { resize: vertical; min-height: 92px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(238,246,243,.6); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.18); }
.contact-form select option { color: var(--ink); }
.wide { grid-column: 1 / -1; }
.wide-start { grid-column: 1 / -1; justify-self: start; }
.form-message { grid-column: 1 / -1; font-size: 13.5px; color: #d9efe7; }

/* ── footer ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: #8fa39d; padding: 46px 0 26px; }
.footer-main { display: flex; align-items: start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.brand.light { color: #eef2f0; }
.footer-main p { margin-top: 12px; font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-nav { display: flex; gap: 34px; font-size: 13.5px; flex-wrap: wrap; }
.footer-nav a:hover { color: #eef2f0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(238,242,240,.12); font-size: 12.5px; flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .hero-showcase, .contact-layout, .flota-box, .split-wide { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .split > .eyebrow { padding-top: 0; }
  .solution-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-shot img { height: 190px; }
  .rubro { grid-template-columns: 1fr; gap: 26px; }
  .rubro-alt .rubro-foto { order: 0; }
  .rubro-lista-mayor { gap: 64px; }
  .rubro-foto img { height: 320px; }
  .flota-box { padding: 40px; gap: 34px; }
  .contact-layout { gap: 44px; }

  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 24px; right: 24px; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -28px rgba(22,33,31,.45); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 10px; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { height: 66px; }
  .nav { top: 66px; left: 16px; right: 16px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn, .hero-actions .btn-text { width: 100%; min-height: 52px; }
  .hero-actions .btn-text { justify-content: center; border-bottom: 0; border: 1px solid var(--line-2); border-radius: 999px; }
  .hero-showcase { margin-top: 34px; padding-bottom: 60px; }
  .vignette { padding: 18px; }
  .chat { max-width: none; }
  .booked { align-self: stretch; }

  .manifesto, .sectors, .solutions, .demos, .process, .contact { padding: 64px 0; }
  .flota { padding-bottom: 64px; }
  .flota-box { padding: 30px 24px; }
  .demo-grid { grid-template-columns: 1fr; gap: 12px; }
  .demo-shot img { height: 200px; }
  .rubro-foto img { height: 240px; }
  .rubro-lista-mayor { gap: 48px; }
  .solution { padding: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form input, .contact-form select, .contact-form textarea { min-height: 48px; }
  .btn { min-height: 52px; }
  .wide-start { justify-self: stretch; }
  .section-head { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Hay gente a la que el movimiento le provoca mareo.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .sector:hover, .demo:hover { transform: none; }
}

/* ============================================================
   Logo y ajustes finos
   ============================================================ */

/* El logo tiene el escudo en azul oscuro: sobre fondo oscuro se pierde.
   Va dentro de un chip blanco, que ademas es como esta pensado el archivo. */
.logo-chip { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 5px; }
.logo-chip img { display: block; object-fit: contain; }
.flota-logo { margin-bottom: 18px; border-radius: 18px; padding: 7px; }
.footer .brand img, .footer .logo-chip img { width: 34px; height: 34px; }

/* Los links chicos son dificiles de acertar con el pulgar. En celular se les
   da altura de toque sin cambiar como se ven. */
@media (max-width: 1000px) {
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .footer-nav a, .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .demo a { min-height: 44px; align-items: center; }
  .brand { min-height: 44px; }
  .btn-text { min-height: 44px; }
}

/* El link de WhatsApp es el CTA mas importante de la pagina y quedaba con
   30px de alto: dificil de acertar con el pulgar. */
.wa-card a { min-height: 48px; padding: 4px 0; }
