/* ==========================================================
   Figumi · Links
   Diseñado y desarrollado por Devenix — devenix.cl
   ========================================================== */

:root {
  /* Paleta tomada del logo */
  --maroon-900: #1c0806;
  --maroon-800: #2a0d09;
  --maroon-700: #4a1610;
  --maroon: #6b1912;
  --orange: #ff6a00;
  --orange-2: #ff8a3d;
  --peach: #ffc49b;
  --cream: #fbeee4;
  --white: #f4f2ef;

  --text: #fff4ec;
  --text-soft: rgba(255, 236, 224, .72);
  --text-mute: rgba(255, 236, 224, .48);

  --glass-bg: rgba(255, 240, 228, .07);
  --glass-bg-hover: rgba(255, 240, 228, .12);
  --glass-border: rgba(255, 220, 196, .16);
  --glass-hi: rgba(255, 255, 255, .22);
  --blur: 18px;

  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .35);

  --font-display: "Fredoka", "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--maroon-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; }

/* ---------- Fondo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #5a1a10 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, #3d0f0a 0%, transparent 65%),
    linear-gradient(180deg, var(--maroon-800), var(--maroon-900));
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.b1 {
  width: 420px; height: 420px;
  top: -120px; left: -140px;
  background: radial-gradient(circle, var(--orange) 0%, rgba(255, 106, 0, 0) 70%);
  animation: float1 18s ease-in-out infinite;
}
.b2 {
  width: 380px; height: 380px;
  top: 32%; right: -160px;
  background: radial-gradient(circle, var(--peach) 0%, rgba(255, 196, 155, 0) 70%);
  opacity: .35;
  animation: float2 22s ease-in-out infinite;
}
.b3 {
  width: 460px; height: 460px;
  bottom: -180px; left: -80px;
  background: radial-gradient(circle, #d9430f 0%, rgba(217, 67, 15, 0) 70%);
  opacity: .45;
  animation: float3 26s ease-in-out infinite;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-90px,-40px) scale(.9); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,-70px) scale(1.08); } }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(60, 20, 14, .88); }
}

/* ---------- Topbar ---------- */
.topbar { display: flex; justify-content: flex-end; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--glass-bg-hover); transform: rotate(-8deg) scale(1.05); }

/* ---------- Hero ---------- */
.hero {
  padding: 28px 22px 24px;
  text-align: center;
  overflow: hidden;
}
/* Líneas de capa, guiño a la impresión 3D */
.hero-layers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
}
.logo {
  position: relative;
  width: min(100%, 330px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(255, 106, 0, .28)) drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }

.tagline {
  position: relative;
  margin: 18px auto 0;
  max-width: 340px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 4.6vw, 1.38rem);
  line-height: 1.25;
  letter-spacing: .2px;
  color: var(--cream);
}
.hl {
  background: linear-gradient(90deg, var(--peach), var(--orange-2) 60%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chips {
  position: relative;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  background: rgba(255, 240, 228, .06);
  border: 1px solid var(--glass-border);
}
.chips svg { font-size: 14px; color: var(--orange-2); }

/* ---------- Links ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }
.link {
  --accent: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s, box-shadow .25s;
}
/* brillo que sigue al cursor */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  transition: opacity .3s;
}
/* destello diagonal */
.link::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-3px);
  background: var(--glass-bg-hover);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-border));
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 var(--glass-hi);
}
.link:hover::before { opacity: 1; }
.link:hover::after { left: 120%; }
.link:active { transform: translateY(-1px) scale(.99); }

.link-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 15px;
  font-size: 24px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,.35);
}
.link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .2px; }
.link-text small { font-size: .8rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-go {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-soft);
  background: rgba(255,255,255,.06);
  transition: transform .25s, color .25s, background .25s;
}
.link:hover .link-go { transform: rotate(45deg); color: #fff; background: color-mix(in srgb, var(--accent) 60%, transparent); }

.link--wa { --accent: #25d366; }
.link--wa .link-icon { background: linear-gradient(145deg, #3be37a, #1ea952); }
/* WhatsApp destacado como acción principal */
.link--wa {
  background: linear-gradient(135deg, rgba(255, 138, 61, .22), rgba(255, 106, 0, .10));
  border-color: rgba(255, 160, 100, .35);
}
.link--ig { --accent: #e1306c; }
.link--ig .link-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.link--tt { --accent: #25f4ee; }
.link--tt .link-icon { background: #111; box-shadow: 0 6px 16px -6px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.15); }
.link--tt .link-icon svg { filter: drop-shadow(1.2px 1.2px 0 #fe2c55) drop-shadow(-1.2px -1.2px 0 #25f4ee); }

/* ---------- Secciones ---------- */
.section { margin-top: 14px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .4px;
  color: var(--peach);
}
.section-title::before, .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 155, .35));
}
.section-title::after { background: linear-gradient(90deg, rgba(255, 196, 155, .35), transparent); }

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.service {
  padding: 16px 14px 15px;
  border-radius: var(--radius-sm);
  transition: transform .25s, background .25s, border-color .25s;
}
.service:hover { transform: translateY(-3px); background: var(--glass-bg-hover); border-color: rgba(255, 160, 100, .35); }
.s-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 19px;
  color: var(--maroon-900);
  background: linear-gradient(150deg, var(--peach), var(--orange-2) 55%, var(--orange));
  box-shadow: 0 6px 14px -6px rgba(255, 106, 0, .7), inset 0 1px 0 rgba(255,255,255,.5);
}
.service h3 {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  color: var(--cream);
}
.service p { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--text-soft); }

/* Materiales */
.materials { padding: 16px; border-radius: var(--radius-sm); }
.mat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mat-list li {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 240, 228, .07);
  border: 1px solid var(--glass-border);
}
.mat-list .mat-multi {
  color: var(--maroon-900);
  border-color: transparent;
  background: linear-gradient(90deg, #ffc49b, #ff8a3d, #ff5e7e, #b98cff, #6fd3ff);
  background-size: 200% 100%;
  animation: shift 6s linear infinite;
}
@keyframes shift { to { background-position: 200% 0; } }
.mat-note { margin: 12px 0 0; font-size: .8rem; line-height: 1.45; text-align: center; color: var(--text-soft); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.step b {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange-2);
  background: rgba(255, 106, 0, .12);
  border: 1px solid rgba(255, 138, 61, .35);
}
.step div { display: flex; flex-direction: column; gap: 1px; }
.step strong { font-family: var(--font-display); font-weight: 600; font-size: .97rem; color: var(--cream); }
.step span { font-size: .8rem; line-height: 1.4; color: var(--text-soft); }

/* CTA */
.cta {
  margin-top: 16px;
  padding: 26px 20px 20px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 106, 0, .22), transparent 60%),
    var(--glass-bg);
}
.cta h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--cream); }
.cta p { margin: 6px 0 18px; font-size: .9rem; color: var(--text-soft); }
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--maroon-900);
  background: linear-gradient(135deg, var(--peach), var(--orange-2) 50%, var(--orange));
  box-shadow: 0 12px 28px -10px rgba(255, 106, 0, .75), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-wa svg { font-size: 20px; }
.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 34px -12px rgba(255, 106, 0, .9), inset 0 1px 0 rgba(255,255,255,.55); }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: .83rem;
  color: var(--text-soft);
  transition: color .2s;
}
.mail:hover { color: var(--peach); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 18px;
  text-align: center;
  font-size: .75rem;
  color: var(--text-mute);
}
.footer p { margin: 4px 0; }
.credit { font-size: .7rem; opacity: .8; }
.credit a {
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 1px dotted rgba(255, 236, 224, .3);
  transition: color .2s, border-color .2s;
}
.credit a:hover { color: var(--peach); border-color: var(--peach); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(40, 12, 9, .8);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s;
  pointer-events: none;
}
.toast svg { color: #3be37a; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 720px) {
  .page { padding-top: 40px; gap: 16px; }
  .blob { filter: blur(90px); }
  .b1 { width: 620px; height: 620px; }
  .b2 { width: 520px; height: 520px; }
  .b3 { width: 640px; height: 640px; }
}
@media (max-width: 360px) {
  .services { grid-template-columns: 1fr; }
}
