/* suprints.com: mismo sistema visual que Society (web/src/app/globals.css y mobile/src/lib/theme.ts). */
:root {
  color-scheme: light;
  --paper: #f6f7f5;
  --white: #ffffff;
  --ink: #10201a;
  --ink-muted: #55655d;
  --ink-faint: #66746d;
  --hairline: #e2e8e4;
  --mint: #e5f3eb;
  --mint-border: #cbe5d7;
  --emerald: #0d6b4e;
  --emerald-deep: #0a4d39;
  --emerald-bright: #138a64;
  --gold: #c9a227;
  --danger: #b42318;
  --shadow-card: 0 1px 2px rgba(16, 44, 33, 0.05), 0 8px 24px rgba(16, 44, 33, 0.07);
  --shadow-raised: 0 2px 4px rgba(16, 44, 33, 0.06), 0 14px 32px rgba(16, 44, 33, 0.1);
  --shadow-float: 0 2px 6px rgba(16, 44, 33, 0.06), 0 24px 48px -8px rgba(16, 44, 33, 0.16);
  --shadow-button: 0 6px 16px rgba(13, 107, 78, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 28px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--emerald-bright);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--emerald);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 245, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.header.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(246, 247, 245, 0.92);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(13, 107, 78, 0.25);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--emerald);
  background: var(--mint);
}
.lang {
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink);
  font: 800 0.8rem var(--font);
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang:hover {
  border-color: var(--mint-border);
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .header .lang {
    margin-left: auto;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font: 800 1rem var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--emerald-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--white);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--mint-border);
  background: #fbfdfc;
}
.btn-light {
  background: #fff;
  color: var(--emerald-deep);
}
.btn-light:hover {
  transform: translateY(-1px);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px var(--mint);
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  padding: 40px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--emerald);
}
.hero .lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-muted);
  max-width: 34rem;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-art {
  position: relative;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 6% 4% 2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #d5eee1, rgba(229, 243, 235, 0.55) 60%, transparent);
  z-index: -1;
}
.hero-art img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 860px) {
  .hero {
    padding-top: 20px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-art {
    order: -1;
  }
  .hero-art img {
    max-width: 250px;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.9rem;
}
.facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.facts svg {
  color: var(--emerald);
  flex: none;
}

/* ---------- Secciones ---------- */
.section {
  padding: 56px 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 32px;
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.2vw, 3rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Society */
.product {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1a9a70 0%, transparent 55%),
    linear-gradient(150deg, #138a64 0%, #0d6b4e 45%, #0a4d39 100%);
  box-shadow: 0 30px 60px -20px rgba(10, 77, 57, 0.55);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.product-body {
  padding: 44px;
  position: relative;
  z-index: 1;
}
.product-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-title img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}
.product-title h3 {
  font-size: 2.2rem;
}
.product-title small {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}
.product .desc {
  margin-top: 20px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}
.points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
}
.points .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.product .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.product .note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.product-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 20px 0;
}
.product-art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  bottom: 8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.product-art img {
  position: relative;
  width: 100%;
  max-width: 400px;
}
@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
  }
  .product-body {
    padding: 30px 24px 8px;
  }
  .product-art img {
    max-width: 300px;
  }
}

/* Ayuda */
.help {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
}
.help .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--mint);
}
.help h3 {
  font-size: 1.6rem;
}
.help p {
  margin-top: 6px;
  color: var(--ink-muted);
}
@media (max-width: 760px) {
  .help {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 28px 22px;
  }
}

/* Empresa */
.company {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.company .about {
  padding: 34px;
}
.company .about p + p {
  margin-top: 14px;
}
.company .about p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.company .about strong {
  color: var(--ink);
}
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info .card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.info dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.info dd a {
  color: var(--emerald);
  text-decoration: none;
}
.info dd a:hover {
  text-decoration: underline;
}
@media (max-width: 860px) {
  .company {
    grid-template-columns: 1fr;
  }
  .company .about {
    padding: 26px 22px;
  }
}
@media (max-width: 420px) {
  .info {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pie ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
  padding: 34px 0 44px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer a {
  text-decoration: none;
  font-weight: 700;
}
.footer a:hover {
  color: var(--emerald);
}

/* ---------- Soporte ---------- */
.support-hero {
  padding: 36px 0 10px;
  text-align: center;
}
.support-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
}
.support-hero p {
  margin: 14px auto 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}
@media (max-width: 980px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  height: min(720px, calc(100svh - 120px));
  min-height: 520px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, #fbfdfc, #fff);
}
.chat-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--mint);
}
.chat-head .who {
  line-height: 1.25;
}
.chat-head strong {
  font-weight: 800;
  font-size: 1.05rem;
}
.chat-head .status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 700;
}
.chat-head .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b07d;
  box-shadow: 0 0 0 3px rgba(34, 176, 125, 0.18);
}
.chat-head .spacer {
  flex: 1;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink-muted);
  font: 700 0.82rem var(--font);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--emerald);
  border-color: var(--mint-border);
}

.log {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 88%;
  animation: rise 0.35s var(--ease);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.msg .bubble {
  padding: 12px 16px;
  border-radius: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.55;
}
.msg.bot .bubble {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 6px;
}
.msg.bot img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
}
.msg.user {
  align-self: flex-end;
}
.msg.user .bubble {
  background: var(--emerald);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg .bubble a {
  color: var(--emerald);
  font-weight: 700;
}
.msg.error .bubble {
  background: #fdecea;
  border-color: #f6c9c3;
  color: var(--danger);
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 2px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 18px 12px;
}
.chips[hidden] {
  display: none;
}
.chip {
  border: 1px solid var(--mint-border);
  background: var(--mint);
  color: var(--emerald-deep);
  font: 700 0.88rem var(--font);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
  text-align: left;
}
.chip:hover {
  background: #d8eee2;
  transform: translateY(-1px);
}

.composer {
  border-top: 1px solid var(--hairline);
  padding: 12px;
  background: #fff;
}
.composer form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.composer form:focus-within {
  border-color: var(--mint-border);
  box-shadow: 0 0 0 4px rgba(229, 243, 235, 0.9);
}
.composer textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font: 500 16px/1.45 var(--font);
  color: var(--ink);
  padding: 9px 0;
  max-height: 140px;
}
.composer textarea::placeholder {
  color: var(--ink-faint);
}
.send {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--emerald);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: background 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}
.send:hover {
  background: var(--emerald-deep);
}
.send:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}
.disclaimer {
  margin: 8px 6px 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: 800 0.8rem var(--font);
  color: var(--emerald);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side {
  display: grid;
  gap: 16px;
}
.side .card {
  padding: 22px;
}
.side h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.side p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}
.side .human {
  background: var(--mint);
  border-color: var(--mint-border);
  box-shadow: none;
}
.side .human .btn {
  margin-top: 14px;
  width: 100%;
}
.shortcuts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.shortcuts button,
.shortcuts a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: 700 0.93rem var(--font);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.shortcuts button:hover,
.shortcuts a:hover {
  background: var(--paper);
  color: var(--emerald);
}
.shortcuts svg {
  flex: none;
  color: var(--ink-faint);
}

.faq {
  overflow: hidden;
}
.faq details + details {
  border-top: 1px solid var(--hairline);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  background: #fbfcfb;
}
.faq .plus {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--emerald);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background 0.2s, color 0.2s;
}
.faq details[open] .plus {
  transform: rotate(45deg);
  background: var(--emerald);
  color: #fff;
}
.faq details p {
  padding: 0 24px 22px;
  color: var(--ink-muted);
  max-width: 50rem;
}

/* Aparecer al hacer scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

/* 404 */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}
.notfound h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.notfound p {
  margin: 12px 0 24px;
  color: var(--ink-muted);
}

.email-line {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
}
.email-line a {
  color: var(--emerald);
  font-weight: 800;
}

@media (max-width: 560px) {
  .log {
    padding: 16px 12px 8px;
  }
  .msg {
    max-width: 96%;
  }
  .msg.user {
    max-width: 88%;
  }
}
