/* =========================================================
   Cherry Consulting — estilos
   ========================================================= */
:root {
  --cherry: #c8102e;
  --cherry-dark: #9b0c24;
  --cherry-soft: #fdecef;
  --ink: #16131f;
  --ink-2: #4a4658;
  --muted: #7a7689;
  --line: #ebe8f0;
  --bg: #ffffff;
  --bg-alt: #faf7f8;
  --dark: #1a1220;
  --green: #2f7d4f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(22, 19, 31, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(155, 12, 36, 0.35);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cherry); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.accent { color: var(--cherry); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cherry);
  background: var(--cherry-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light { color: #ffd6dd; background: rgba(255, 255, 255, .08); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--cherry);
  background: var(--cherry);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--cherry-dark); border-color: var(--cherry-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--cherry); }
.btn--ghost:hover { background: var(--cherry-soft); color: var(--cherry-dark); box-shadow: none; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled,
.header--solid { border-bottom-color: var(--line); box-shadow: 0 4px 20px -14px rgba(0, 0, 0, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.2rem; font-weight: 500; }
.logo strong { font-weight: 800; color: var(--cherry); margin-left: 2px; }
.logo--light { color: #fff; }
.logo--light strong { color: #ff7a90; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--cherry); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(200, 16, 46, .10), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(200, 16, 46, .06), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }

.hero__stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero__stats span { font-size: .88rem; color: var(--muted); }

.hero__visual { position: relative; padding: 40px 20px; }
.hero__screen {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-2deg);
}
.screen__bar { display: flex; gap: 6px; padding: 14px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3dfe8; }
.screen__bar i:first-child { background: var(--cherry); }
.screen__body { padding: 26px; display: grid; gap: 12px; }
.bar { height: 10px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--cherry-soft), #f3eef5); }
.bar:first-child { background: linear-gradient(90deg, var(--cherry), #ff6b84); }
.screen__chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.screen__chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cherry), var(--cherry-dark)); opacity: .85; }
.screen__chart span:nth-child(odd) { opacity: .35; }

.card-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: .88rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.card-float--1 { top: 6px; right: 0; }
.card-float--2 { bottom: 10px; left: 0; animation-delay: -2.5s; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cherry); box-shadow: 0 0 0 4px var(--cherry-soft); }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px #e3f3ea; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark p { color: #cfc8d6; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #f3c9d1; }
.service--featured { background: linear-gradient(160deg, var(--cherry) 0%, var(--cherry-dark) 100%); border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.service--featured p, .service--featured li { color: #ffe3e8; }
.service--featured .service__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.service--featured .checklist li::before { background-color: rgba(255, 255, 255, .2); }

.service__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--cherry-soft); color: var(--cherry); margin-bottom: 22px; }
.service__icon svg { width: 28px; height: 28px; }

.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--ink-2); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cherry-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service--featured .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--cherry); }
.feature p { margin: 0; font-size: .94rem; }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__num { display: inline-block; font-size: 2.2rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--cherry); margin-bottom: 10px; }
.step p { margin: 0; font-size: .94rem; }

/* ---------- Privacidad (resumen) ---------- */
.privacy-teaser {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  max-width: 980px;
}
.privacy-teaser__icon { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: var(--cherry-soft); color: var(--cherry); }
.privacy-teaser__icon svg { width: 42px; height: 42px; }
.privacy-teaser__list { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); }
.privacy-teaser__list li { margin-bottom: 6px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: #e9e3ee; }
.contact__list a { color: #ff9aab; }

.form { background: #fff; color: var(--ink); border-radius: 20px; padding: 34px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form label { font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: .97rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cherry); background: #fff; box-shadow: 0 0 0 4px var(--cherry-soft); }
.form textarea { resize: vertical; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: .9rem; margin: 6px 0 20px; color: var(--ink-2); cursor: pointer; }
.form__check input { margin-top: 4px; accent-color: var(--cherry); width: 16px; height: 16px; }
.form__status { margin: 14px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: var(--cherry); }

/* ---------- Footer ---------- */
.footer { background: #120c16; color: #bdb5c4; padding: 56px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__tag { margin: 14px 0 0; color: #9e95a6; font-size: .92rem; max-width: 360px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: #e4dde9; text-decoration: none; font-weight: 600; font-size: .94rem; }
.footer__links a:hover { color: #ff7a90; }
.footer__bottom { padding-top: 22px; }
.footer__bottom p { margin: 0; font-size: .86rem; color: #847b8c; }

/* ---------- Página legal ---------- */
.legal { padding: 64px 0 96px; background: var(--bg-alt); }
.legal__inner { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.legal__toc { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; }
.legal__toc-title { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--cherry); }

.legal__content { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 52px 56px; min-width: 0; }
.legal__content section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.legal__content h2 { font-size: 1.45rem; }
.legal__content h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal__content ul, .legal__content ol { padding-left: 22px; color: var(--ink-2); }
.legal__content li { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: .92rem; }
.legal__data { list-style: none; padding-left: 0 !important; }
.legal__highlight { background: var(--cherry-soft); border: 1px solid #f6c7d0 !important; border-radius: var(--radius); padding: 28px 30px; }
.legal__back { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .services { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .legal__inner { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }

  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero__stats { gap: 24px; }
  .features, .steps { grid-template-columns: 1fr; }
  .privacy-teaser { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  .form { padding: 24px; }
  .legal__content { padding: 32px 22px; }
  .legal__highlight { padding: 22px 18px; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-float { animation: none; }
}
