/* ==========================================================
   Mccmarketingseo · Agencia de Marketing Digital y SEO
   Estilo: azul marino + naranja, titulares condensados
   ========================================================== */

:root {
  --navy: #1c3a5a;
  --navy-900: #12283f;
  --navy-700: #24476d;
  --orange: #e96a2e;
  --orange-600: #d45a1f;
  --orange-soft: #fdeee6;
  --ink: #1c3a5a;
  --text: #4a5568;
  --muted: #7a8699;
  --line: #e6e9ef;
  --bg: #ffffff;
  --tint: #f5f7fa;
  --cream: #fbf3ee;
  --green: #2fb36b;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 10px rgba(28, 58, 90, .06);
  --shadow: 0 12px 34px -12px rgba(28, 58, 90, .22);
  --shadow-lg: 0 24px 60px -20px rgba(28, 58, 90, .35);
  --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0; }
strong { color: var(--ink); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); }
.center { text-align: center; margin-top: 44px; }
.orange { color: var(--orange); }
.block { display: block; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -10px rgba(233, 106, 46, .75); }
.btn--orange:hover { background: var(--orange-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }

.kicker {
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}
.kicker--muted { color: #9fb2c8; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 18px -8px rgba(28,58,90,.2); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.nav a:not(.btn) { position: relative; padding: .25rem 0; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--orange); }
.nav__cta { padding: .55rem 1.1rem; font-size: .9rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 64px) 0 96px;
  background:
    radial-gradient(55% 70% at 88% 30%, #fbe3d6 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero__lead { font-size: 1.15rem; margin-top: 1.3rem; max-width: 540px; }
.hero__checks { display: grid; gap: 12px; margin-top: 1.8rem; max-width: 440px; }
.hero__checks li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-weight: 700; color: var(--navy); font-size: .98rem;
  box-shadow: var(--shadow-sm);
}
.hero__checks li::before, .dark__checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__visual { position: relative; padding: 30px 0 40px; }
.hero__photo {
  margin: 0 0 0 auto; width: 88%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.fcard {
  position: absolute; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  animation: float 6s ease-in-out infinite;
}
.fcard--google { top: 0; right: -10px; min-width: 190px; }
.fcard__row { display: flex; align-items: center; gap: 8px; color: #5f6368; font-family: var(--font-body); }
.fcard__row strong { color: #5f6368; font-weight: 700; }
.g-logo { width: 22px; height: 22px; }
.fcard__big { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1.05; margin-top: 4px; }
.fcard__big--navy { font-size: 1.9rem; }
.fcard__stars { color: #fbbc04; letter-spacing: 2px; }
.fcard__sub, .fcard__label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.fcard--traffic { left: 0; bottom: 24px; width: 210px; animation-delay: -3s; }
.spark { width: 100%; height: 36px; margin-top: 4px; }
.fpill {
  position: absolute; right: 24px; bottom: 0;
  background: var(--orange); color: #fff;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(233,106,46,.8);
}
.fpill::before { content: "🚀 "; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--pad-sm { padding: 40px 0; }
.section--tint { background: var(--tint); }
.head { max-width: 760px; margin-bottom: 56px; }
.head--center { text-align: center; margin-inline: auto; }
.head__sub { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; color: var(--navy); font-size: 1.15rem; margin-top: .5rem; }
.head__lead { margin-top: 1.1rem; font-size: 1.1rem; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
  margin-bottom: .6rem;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: 1rem; flex: 1; }
.card__link { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .88rem; color: var(--orange); }
.card__link::after { content: " →"; }

/* ---------- Franja oscura SEO ---------- */
.dark {
  padding: 100px 0;
  background:
    radial-gradient(50% 80% at 80% 50%, rgba(233,106,46,.12), transparent 70%),
    linear-gradient(135deg, var(--navy-900), var(--navy));
  color: #c8d4e3;
}
.dark__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.dark__title { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.dark__title .orange { display: block; }
.dark__lead { margin-top: 1.2rem; font-size: 1.1rem; max-width: 560px; }
.dark__checks { display: grid; gap: 14px; margin: 1.8rem 0 2.2rem; }
.dark__checks li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }

.orbit { position: relative; width: min(380px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orbit__ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); }
.orbit__ring--outer { inset: 0; border-color: rgba(233,106,46,.55); animation: spin 40s linear infinite; }
.orbit__ring--inner { inset: 22%; border-style: dashed; }
.orbit__core {
  position: absolute; inset: 33%; border-radius: 50%;
  background: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 20px 50px -10px rgba(0,0,0,.5);
}
.orbit__core strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; color: var(--navy); line-height: 1; }
.orbit__core span { font-family: var(--font-display); font-weight: 700; color: var(--orange); font-size: 1.6rem; line-height: 1.1; }
.orbit__node {
  position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: .85rem;
  background: var(--navy-700); color: #fff; border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}
.orbit__node--top { left: 50%; top: 0; background: var(--orange); border-color: var(--orange); }
.orbit__node--left { left: 0; top: 50%; }
.orbit__node--right { left: 100%; top: 50%; }
.orbit__node--bottom { left: 50%; top: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__copy p + p { margin-top: 1rem; }
.about__copy h2 { margin-bottom: 1.2rem; }
.about__copy .btn { margin-top: 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2rem; }
.stats div { border-left: 3px solid var(--orange); background: var(--tint); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--navy); }
.stats span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.about__media { position: relative; padding: 0 0 28px 28px; }
.about__media img { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.frame { position: absolute; left: 0; bottom: 0; width: 55%; height: 60%; border: 4px solid #c9d1dc; border-radius: var(--radius); }

/* ---------- Trabajos ---------- */
.box { background: var(--tint); border-radius: var(--radius-lg); padding: 72px 56px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
  aspect-ratio: 768 / 613;
  transition: transform .3s ease, box-shadow .3s ease;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work:hover img { transform: scale(1.04); }

/* ---------- Paso a paso ---------- */
.steps { display: grid; gap: 22px; }
.step {
  display: flex; gap: 22px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.step__n {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: .98rem; }

/* ---------- Banda CTA ---------- */
.band { background: var(--navy); color: #c8d4e3; padding: 80px 0; text-align: center; }
.band__inner { max-width: 760px; }
.band h2 { color: #fff; }
.band p { margin: 1rem 0 2rem; font-size: 1.1rem; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.review header { display: flex; gap: 12px; align-items: center; }
.review header strong { display: block; font-size: .98rem; line-height: 1.3; }
.review header span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.review p { font-style: italic; color: var(--text); font-size: 1rem; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff !important;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem !important;
}
.stars { color: var(--orange); letter-spacing: 2px; font-size: 1.1rem; }

/* ---------- Kit Digital ---------- */
.kit {
  display: grid; grid-template-columns: .9fr 1.1fr;
  background: var(--cream); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid #f3e0d4;
}
.kit__img { position: relative; min-height: 320px; }
.kit__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kit__copy { padding: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.kit__copy .kicker { margin: 0; }
.kit__copy .btn { margin-top: .6rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 24px; transition: box-shadow .25s, border-color .25s;
}
.faq details[open] { box-shadow: var(--shadow); border-left: 4px solid var(--orange); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 20px 0; font-weight: 800; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange); font-size: 1.3rem; font-weight: 700;
  transition: transform .25s, background-color .25s, color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq details p { padding-bottom: 22px; font-size: 1rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.office__img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.office__body { padding: 28px; display: flex; flex-direction: column; gap: 1.2rem; flex: 1; }
.office dl { margin: 0; display: grid; gap: 14px; flex: 1; }
.office dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--orange); font-weight: 600; }
.office dd { margin: 0; font-weight: 700; color: var(--navy); }
.office dd a:hover { color: var(--orange); }

.form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form__sub { color: var(--muted); font-size: .95rem; margin: .3rem 0 1.4rem; font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--tint);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-soft); }
.field input.is-invalid { border-color: #d93036; }
.form .btn { margin-top: 6px; }
.form__note { font-size: .92rem; margin-top: 12px; min-height: 1.2em; color: var(--green); font-weight: 700; }
.form__note.is-error { color: #d93036; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 3 / 2; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .post__img img { transform: scale(1.06); }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: .5rem; }
.post__tag { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.post h3 { font-size: 1.1rem; transition: color .2s; }
.post:hover h3 { color: var(--orange); }
.post__meta { font-size: .88rem; color: var(--muted); font-weight: 700; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-900); color: #9fb2c8; font-size: .96rem; }
.footer__cta {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: 64px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__cta h2 { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding: 56px 0; }
.footer__logo { height: 50px; width: auto; filter: invert(1) hue-rotate(180deg) brightness(1.15); margin-bottom: 1.1rem; }
.footer__brand p { max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .08em; margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: .6rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--orange); }
.social { display: flex; gap: 10px; margin-top: 1.4rem; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px;
  background: rgba(255,255,255,.07); transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--orange); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 22px 80px 28px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.8);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1.3rem; font-size: .9rem; }
  .box { padding: 56px 32px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(28,58,90,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; padding: .9rem 1.2rem; }

  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero__grid, .dark__grid, .about, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .cards, .works, .reviews, .posts { grid-template-columns: repeat(2, 1fr); }
  .kit { grid-template-columns: 1fr; }
  .kit__img { min-height: 240px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .dark { padding: 80px 0; }
  .orbit { width: min(320px, 80%); margin-top: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container, .narrow { width: calc(100% - 32px); }
  .header__logo img { height: 40px; }
  .hero__actions .btn { width: 100%; }
  .hero__photo { width: 100%; aspect-ratio: 4 / 3.6; }
  .fcard { padding: 12px 14px; }
  .fcard--google { right: 6px; top: 6px; min-width: 0; }
  .fcard__big { font-size: 2rem; }
  .fcard--traffic { left: 6px; bottom: 30px; width: 170px; }
  .fcard__big--navy { font-size: 1.5rem; }
  .fpill { right: 6px; font-size: .78rem; padding: 8px 14px; }
  .cards, .works, .reviews, .posts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stats div { padding: 10px; }
  .stats strong { font-size: 1.5rem; }
  .stats span { font-size: .75rem; }
  .about__media { padding: 0 0 18px 18px; }
  .box { padding: 44px 18px; }
  .step { padding: 18px; gap: 16px; align-items: flex-start; }
  .kit__copy { padding: 32px 24px; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__cta .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .orbit__core strong { font-size: .9rem; }
  .orbit__core span { font-size: 1.3rem; }
  .orbit__node { width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: .75rem; }
}

/* ==========================================================
   Automatizaciones IA · añadidos sobre el estilo de Mccmarketingseo
   ========================================================== */
.header__logo img { height: 44px; }
.nav a.nav__back { color: var(--muted); font-weight: 700; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.nav a.nav__back:hover { color: var(--orange); }
.footer__title { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
.footer__h { font-family: var(--font-display); text-transform: uppercase; color: #fff; font-size: 1rem; letter-spacing: .08em; margin-bottom: 1.1rem; font-weight: 600; }
.footer__bottom a:hover { color: var(--orange); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }

/* Chat del hero */
.chat { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat--hero { width: 88%; margin-left: auto; min-height: 420px; justify-content: center; }
.chat__head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.chat__head strong { display: block; color: var(--ink); line-height: 1.2; }
.chat__head small { color: var(--green); font-weight: 700; font-size: .8rem; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; }
.chat__msg { font-size: .95rem; line-height: 1.45; padding: 10px 14px 18px; border-radius: 14px; max-width: 82%; position: relative; }
.chat__msg time { position: absolute; right: 10px; bottom: 3px; font-size: .68rem; opacity: .7; }
.chat__msg--in { background: var(--tint); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat__msg--out { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.js .chat--hero .chat__msg { opacity: 0; transform: translateY(8px); animation: msg-in .5s ease forwards; }
.js .chat--hero .chat__msg:nth-of-type(2) { animation-delay: .4s; }
.js .chat--hero .chat__msg:nth-of-type(3) { animation-delay: 1.4s; }
.js .chat--hero .chat__msg:nth-of-type(4) { animation-delay: 2.4s; }
.js .chat--hero .chat__msg:nth-of-type(5) { animation-delay: 3.4s; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
.fcard--google { min-width: 170px; }

/* Garantías */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { border-left: 3px solid var(--orange); background: var(--tint); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.trust strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; color: var(--navy); letter-spacing: .02em; }
.trust span { font-size: .9rem; font-weight: 700; color: var(--muted); }

/* Tarjetas */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--orange); line-height: 1; }
.card--sm { padding: 26px 24px; }
.ticks, .crosses { display: grid; gap: 8px; margin-top: .4rem; }
.ticks li, .crosses li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; font-weight: 700; color: var(--navy); }
.ticks li::before, .crosses li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.crosses li::before { background: #c9d1dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 10px no-repeat; }
.card .ticks { flex: 1; }

/* Demo CRM */
.crm { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); padding: 26px; max-width: 400px; margin-inline: auto; width: 100%; border-top: 4px solid var(--orange); }
.crm__head { display: flex; justify-content: space-between; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--orange); font-weight: 600; }
.crm__head time { color: var(--muted); }
.crm__title { font-family: var(--font-display); text-transform: uppercase; color: var(--navy); font-size: 1.4rem; font-weight: 700; margin: .5rem 0 1rem; }
.crm dl { margin: 0; display: grid; gap: 10px; }
.crm dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.crm dt { color: var(--muted); font-weight: 700; font-size: .92rem; }
.crm dd { margin: 0; color: var(--navy); font-weight: 800; }
.pill { background: #e7f7ee; color: #1f8a51; padding: 2px 10px; border-radius: 999px; font-size: .85rem; }

/* Configurador */
.config { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 22px; align-items: stretch; }
.config__step, .config__result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.config__result { border-top: 4px solid var(--orange); display: flex; flex-direction: column; gap: .8rem; }
.config__label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; color: var(--navy); font-weight: 600; letter-spacing: .03em; margin-bottom: 1rem; }
.config__result .config__label { margin-bottom: 0; }
.config__label span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: .95rem; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .92rem; font-weight: 700; color: var(--navy); background: var(--tint); border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--orange); }
.chip.is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.config__for { font-weight: 800; color: var(--muted); font-size: .92rem; }
.config__price { font-family: var(--font-display); text-transform: uppercase; color: var(--green); font-weight: 600; letter-spacing: .05em; font-size: .9rem; margin-top: auto; }

/* Proyectos */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.project { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .7rem; }
.project h3 { font-size: 1.35rem; }

/* Para quién */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fit__col { border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 1rem; }
.fit__col--yes { background: var(--cream); border: 1px solid #f3e0d4; }
.fit__col--no { background: var(--tint); border: 1px solid var(--line); }
.fit__note { font-size: .95rem; font-style: italic; }

/* Contacto */
.contact--auto .office__body { padding: 36px; }
.contact__cta { display: flex; flex-direction: column; gap: 12px; }
.contact__cta h3 { margin-bottom: 0; }
.contact__cta .form__sub { margin-bottom: .6rem; }
.office dd a { word-break: break-all; }

@media (max-width: 1180px) { .nav { gap: 1.2rem; font-size: .88rem; } .nav a.nav__back { padding-left: 1rem; } }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } .config { grid-template-columns: 1fr 1fr; } .config__result { grid-column: 1 / -1; } .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) {
  .nav a.nav__back { border-left: 0; padding-left: 0; }
  .chat--hero { width: 100%; min-height: 0; }
  .projects, .fit { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards--4, .config, .trust { grid-template-columns: 1fr; }
  .fit__col, .project { padding: 26px 22px; }
  .chat__msg { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .js .chat--hero .chat__msg { opacity: 1; transform: none; } }

/* Menú: con 6 enlaces pasamos a hamburguesa antes que en MCC */
.nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(28,58,90,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.nav__back { border-left: 0; padding-left: 0; }
  .nav__cta { margin-top: 16px; padding: .9rem 1.2rem; }
}
/* Tarjetas flotantes del hero sin tapar el chat */
.hero__visual { padding: 40px 0 70px; }
.fcard--google { top: 0; right: -14px; }
.fcard--traffic { left: -10px; bottom: 8px; }
.chat--hero { padding-bottom: 60px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .cards--2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero__visual .fcard { display: none; }
  .hero__visual { padding: 10px 0 40px; }
  .chat--hero { padding-bottom: 30px; }
  .fpill { right: 50%; transform: translateX(50%); white-space: nowrap; }
}

/* Banda de demos (enlaza a demos.html) */
.band--demos { background: var(--cream); color: var(--text); }
.band--demos h2 { color: var(--ink); }
.band__links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (max-width: 600px) { .band__links .btn { width: 100%; } }
