/* ============================================================
   BORDADOS JAS — bordadosjas.com
   Identidad: violeta #8C39B7 (logo oficial) · Montserrat/Inter
   ============================================================ */

:root {
  --jas: #8C39B7;
  --jas-dark: #6B2492;
  --jas-deep: #3E1055;
  --jas-light: #B36BD4;
  --jas-tint: #F7F0FB;
  --ink: #241329;
  --ink-soft: #5C4967;
  --paper: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #1DAE53;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(140, 57, 183, .14);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jas); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jas);
  background: var(--jas-tint);
  border: 1px dashed var(--jas-light);   /* guiño a puntada */
  border-radius: 99px;
  padding: .35rem .9rem;
  margin-bottom: 1rem;
}
.eyebrow--light { color: #E9D5F5; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }

.hl { color: var(--jas); position: relative; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.08em;
  height: .14em;
  background-image: linear-gradient(90deg, var(--jas-light) 55%, transparent 55%);
  background-size: 12px 100%;            /* subrayado punteado tipo costura */
  border-radius: 2px;
  opacity: .65;
}
.hl--light { color: #D9A6F2; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn .ico { width: 1.25em; height: 1.25em; flex: none; }

.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 12px 30px rgba(37, 211, 102, .45); }

.btn--ghost { background: transparent; color: var(--jas); border: 2px solid var(--jas-light); }
.btn--ghost:hover { background: var(--jas-tint); }

.btn--white { background: #fff; color: var(--jas-dark); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn--white:hover { background: var(--jas-tint); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140,57,183,.12);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(62,16,85,.10); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.header__logo img { width: 104px; height: auto; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: .92rem; color: var(--ink);
  text-decoration: none; position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 2px;
  background: var(--jas); transition: width .22s ease; border-radius: 2px;
}
.nav a:hover::after { width: 100%; }
.header__cta { font-size: .85rem; padding: .65rem 1.15rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 9s ease-in-out infinite alternate;
}
.hero__blob--1 { width: 480px; height: 480px; background: #EBD6F8; top: -160px; right: -120px; }
.hero__blob--2 { width: 360px; height: 360px; background: #F6E9FD; bottom: -140px; left: -100px; animation-delay: -4s; }
@keyframes float { from { transform: translateY(0) } to { transform: translateY(28px) } }

.hero__stitch {
  position: absolute; height: 2px; width: 220px;
  background-image: linear-gradient(90deg, var(--jas-light) 60%, transparent 60%);
  background-size: 14px 2px; opacity: .5;
}
.hero__stitch--1 { top: 18%; left: -30px; transform: rotate(-18deg); }
.hero__stitch--2 { bottom: 14%; right: 4%; transform: rotate(12deg); width: 160px; }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__sub { font-size: 1.08rem; color: var(--ink-soft); margin: 1.1rem 0 1.6rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin-top: 1.4rem; }
.hero__badges li { font-size: .88rem; font-weight: 600; color: var(--jas-dark); }

.hero__media { position: relative; }
.hero__chip {
  position: absolute;
  background: #fff; border: 1px solid rgba(140,57,183,.18);
  box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  padding: .55rem .95rem; border-radius: 14px;
  animation: chipFloat 5.5s ease-in-out infinite alternate;
}
.hero__chip--1 { top: -14px; left: -10px; }
.hero__chip--2 { bottom: -14px; right: -6px; animation-delay: -2.6s; }
@keyframes chipFloat { from { transform: translateY(-4px) } to { transform: translateY(6px) } }

/* ---------- Placeholders (reemplazar por fotos/videos reales) ---------- */
.ph {
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(140,57,183,.05) 0 14px, rgba(140,57,183,.09) 14px 28px),
    var(--jas-tint);
  border: 2px dashed var(--jas-light);
  border-radius: var(--radius);
  text-align: center;
  color: var(--jas-dark);
  overflow: hidden;
}
.ph figcaption { display: grid; gap: .2rem; padding: 1.2rem; }
.ph figcaption strong { font-family: var(--font-display); font-size: .95rem; }
.ph figcaption span:last-child { font-size: .78rem; opacity: .75; max-width: 26ch; margin-inline: auto; }
.ph__ico { font-size: 2rem; }
.ph__ico--play {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-inline: auto;
  background: var(--jas); color: #fff; border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 0 0 12px rgba(140,57,183,.18);
}
.ph--hero { aspect-ratio: 4/4.6; border-radius: 28px; }
.ph--wide { aspect-ratio: 16/11; }
.ph--sq { aspect-ratio: 1; }
.ph--video { aspect-ratio: 16/8.2; background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,.08) 14px 28px),
  rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.4); color: #E9D5F5; }
.ph--map { aspect-ratio: 4/3.4; background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, rgba(255,255,255,.1) 14px 28px),
  rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45); color: #F3E4FC; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--jas);
  overflow: hidden;
  padding: .85rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: .5rem 2rem;
}
.marquee__track {
  display: flex; align-items: center; gap: 2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee span {
  font-family: var(--font-display); font-weight: 800;
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
}
.marquee i { color: var(--jas-light); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tint { background: linear-gradient(180deg, var(--jas-tint), #fff); }
.section--dark { background: linear-gradient(160deg, var(--jas-deep), var(--jas-dark)); }
.section--dark h2, .section--dark .section__sub { color: #fff; }
.section--dark .section__sub { opacity: .85; }
.section__head { max-width: 46rem; margin-bottom: 2.6rem; }
.section__sub { color: var(--ink-soft); margin-top: .8rem; font-size: 1.03rem; }

/* ---------- Cards servicios ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid rgba(140,57,183,.13);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--jas-light); }
.card__ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--jas-tint);
  border: 1px dashed var(--jas-light);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.6rem; }
.pill {
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  color: var(--jas-dark);
  background: #fff;
  border: 1.5px solid var(--jas-light);
  padding: .5rem 1.1rem; border-radius: 99px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pill:hover { background: var(--jas); color: #fff; transform: translateY(-2px); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.split__copy h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.split__copy p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.checklist { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.checklist li { padding-left: 1.7rem; position: relative; font-size: .95rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--jas); font-weight: 800;
}

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2.2rem;
}
.stat {
  text-align: center; color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.3rem .8rem;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; color: #E9C8FB; }
.stat span { font-size: .85rem; opacity: .85; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(140,57,183,.13);
  border-radius: var(--radius);
  padding: 1.9rem 1.4rem 1.5rem;
}
.step::after {          /* línea de costura entre pasos */
  content: "";
  position: absolute; top: 2.6rem; right: -1.3rem; width: 1.3rem; height: 2px;
  background-image: linear-gradient(90deg, var(--jas-light) 60%, transparent 60%);
  background-size: 8px 2px;
}
.step:last-child::after { display: none; }
.step__num {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--jas); color: #fff;
  font-family: var(--font-display); font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(140,57,183,.35);
}
.step h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: #fff;
  border: 1px solid rgba(140,57,183,.15);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--jas-light); box-shadow: var(--shadow); }
.faq summary {
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem; color: var(--jas); font-weight: 600;
  transition: transform .2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .7rem; color: var(--ink-soft); font-size: .93rem; }

/* ---------- CTA final ---------- */
.section--cta {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(150deg, var(--jas) 0%, var(--jas-dark) 55%, var(--jas-deep) 100%);
}
.cta__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta__copy h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.cta__copy > p { color: #EBD6F8; margin: .9rem 0 1.6rem; font-size: 1.1rem; }
.cta__info { font-style: normal; margin-top: 1.6rem; color: #F3E4FC; display: grid; gap: .3rem; }
.cta__info a { color: #fff; font-weight: 600; }
.cta__social { margin-top: 1rem; display: flex; gap: .6rem; }
.cta__social a { color: #fff; font-weight: 700; }
.cta__social span { color: rgba(255,255,255,.5); }

/* ---------- Footer ---------- */
.footer { background: var(--jas-deep); color: #CBB3D8; padding: 2.8rem 0 2rem; }
.footer__inner { display: grid; gap: 1.1rem; justify-items: center; text-align: center; font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.footer__nav a { color: #E9D5F5; text-decoration: none; font-weight: 600; }
.footer__nav a:hover { text-decoration: underline; }
.footer__legal { font-size: .78rem; opacity: .6; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; align-items: center; gap: .6rem;
  background: var(--wa); color: #fff;
  border-radius: 99px;
  padding: .85rem;
  box-shadow: 0 10px 32px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float__label {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .3s ease, padding .3s ease;
}
.wa-float:hover .wa-float__label { max-width: 130px; padding-right: .4rem; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); }
  50%      { box-shadow: 0 10px 32px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal--d1 { transition-delay: .12s; }
.reveal--d2 { transition-delay: .24s; }
.reveal--d3 { transition-delay: .36s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__blob, .hero__chip, .wa-float { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid--4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .hero__inner, .split, .cta__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; }
  .ph--hero { aspect-ratio: 16/10; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 58px 0 auto 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(140,57,183,.15);
    box-shadow: 0 20px 40px rgba(62,16,85,.15);
    padding: .6rem 0;
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .85rem 6%; font-size: 1rem; }
  .nav a::after { display: none; }

  .nav-toggle {
    display: grid; gap: 5px;
    margin-left: auto;
    background: none; border: 0; cursor: pointer; padding: .4rem;
  }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--jas-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .header__cta { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__chip--1 { left: 4px; }
  .hero__chip--2 { right: 4px; }
  .wa-float__label { display: none; }
}

@media (max-width: 480px) {
  .hl { white-space: normal; }
  .grid--4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
}
