/* Sistema visual de la App ART LAB (app.artcocoyrodo.com): mismas variables,
   tipografías y componentes, para que Tools se sienta parte de la misma app. */
:root {
  --f: #CC00A3;          /* fucsia */
  --m: #A80081;          /* fucsia hover */
  --p: #FDF0F7;          /* rosa pétalo (fondo) */
  --s: #FCE4F2;          /* rosa card */
  --r2: #F5C8E8;         /* rosa decorativo */
  --t: #1A0010;          /* tinta */
  --g: #7A5A6B;          /* gris rosa */
  --c: #6B3A55;          /* ciruela */
  --gold: #C9A84C;       /* etiquetas de formulario */
  --b: rgba(204, 0, 163, .10);
  --shadow: 0 10px 34px rgba(26, 0, 16, .08);
  --shadow-soft: 0 3px 16px rgba(26, 0, 16, .06);
  --ok: #1E7A4C;
  --warn: #B45309;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--p); color: var(--t);
  font-family: Outfit, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, a, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--g); }
.center { text-align: center; }

/* Contenedor y cabecera */
.aa { max-width: 900px; margin: auto; min-height: 100vh; min-height: 100dvh; padding: 18px 18px 110px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand-logo { height: 58px; width: auto; object-fit: contain; display: block; }
.profile {
  min-width: 44px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--b); display: inline-flex; align-items: center; justify-content: center;
  color: var(--f); text-decoration: none; font-weight: 800; font-size: 11px; cursor: pointer;
}

/* Saludo */
.hello { padding: 18px 0 18px; }
.hello small, .label { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--f); text-transform: uppercase; }
.hello h1 { margin: 7px 0 0; font-size: clamp(34px, 7vw, 48px); line-height: 1; font-weight: 800; }
.hello em { font-family: 'Cormorant Garamond', serif; color: var(--f); font-style: italic; font-weight: 600; }
.hello p.sub { margin: 8px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--g); font-size: 17px; line-height: 1.4; max-width: 520px; }

/* Grilla de herramientas (igual a .apps/.appb/.ico de la App) */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin: 12px 0 28px; }
@media (min-width: 560px) { .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.appb { border: 0; background: none; text-align: center; color: var(--t); padding: 0; cursor: pointer; text-decoration: none; position: relative; }
.appb span { font-size: 12px; font-weight: 700; display: block; }
.appb small { display: block; color: var(--g); font-size: 10px; margin-top: 2px; }
.appb.soon { opacity: .5; cursor: default; }
.ico {
  width: 72px; height: 72px; margin: auto auto 8px; border-radius: 23px;
  background: #fff; border: 1px solid var(--b); display: grid; place-items: center;
  box-shadow: var(--shadow-soft); position: relative;
}
.ico svg, .bottom svg, .sectionlink svg { width: 29px; height: 29px; stroke: var(--f); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: var(--f); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 6px; line-height: 1.2; white-space: nowrap; font-style: normal;
}
.tag.soft { background: var(--s); color: var(--m); }

/* Tarjetas */
.card { background: #fff; border: 1px solid var(--b); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 12px; }
.fh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.fh h2 { font-size: 25px; font-weight: 800; }
.fh h2 em { font-family: 'Cormorant Garamond', serif; color: var(--f); font-style: italic; font-weight: 600; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 30px;
  background: var(--f); color: #fff; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: background-color .2s, transform .1s;
}
.btn:hover { background: var(--m); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: default; }
.btn.ghost { background: #fff; color: var(--f); border: 1px solid var(--b); }
.btn.ghost:hover { background: var(--s); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 12px; font-weight: 800; }
.btn.block { width: 100%; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--f); font-weight: 700; cursor: pointer; font-size: 13px; }
.linkbtn.soft { color: #a58; font-weight: 400; text-decoration: underline; font-size: 12px; }

/* Formularios (como .artlab-campo de la App) */
.campo label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--gold); margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid rgba(204, 0, 163, .15); background: var(--p);
  font-size: 16px; color: var(--t); outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--f); background: #fff; box-shadow: 0 0 0 4px rgba(204, 0, 163, .10); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.msg { padding: 12px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.55; }
.msg.error { background: #FDE8EC; color: #9B1C31; border: 1px solid rgba(155, 28, 49, .15); }
.msg.info { background: var(--p); color: var(--c); border: 1px solid rgba(204, 0, 163, .14); }

/* Pantalla de ingreso (como .artlab-login-* de la App) */
.login-page { max-width: 400px; margin: 0 auto; position: relative; width: 100%; padding: 12px 0 40px; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.deco-circle { position: absolute; top: -80px; right: -70px; width: 220px; height: 220px; border-radius: 50%; background: var(--r2); opacity: .6; z-index: 0; }
.deco-circle.small { top: 90px; left: -50px; right: auto; width: 100px; height: 100px; background: var(--f); opacity: .12; }
.login-header { position: relative; z-index: 2; text-align: center; padding: 30px 20px 26px; }
.login-header img { height: 84px; width: auto; display: block; margin: 0 auto 18px; }
.login-frase { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; font-size: 20px; color: var(--f); line-height: 1.4; margin: 0; }
.login-card { position: relative; z-index: 1; background: #fff; border-radius: 20px; padding: 28px 24px; margin: 0 16px; box-shadow: 0 8px 28px rgba(26, 0, 16, .08); }
.login-card h2 { font-size: 15px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.login-card .lead { font-size: 12.5px; color: var(--g); text-align: center; margin: 0 0 20px; line-height: 1.5; }
.login-extra { text-align: center; margin-top: 18px; display: grid; gap: 10px; justify-items: center; }
.login-foot { position: relative; z-index: 1; text-align: center; font-size: 11px; color: var(--g); margin-top: 22px; }
.login-foot a { color: var(--f); text-decoration: none; font-weight: 700; }

/* Barra inferior flotante (como .bottom/.bn de la App) */
.bottom {
  position: fixed; z-index: 30; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(620px, calc(100% - 20px)); height: 68px; border-radius: 25px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--b); box-shadow: 0 12px 38px rgba(26, 0, 16, .14);
  display: flex; justify-content: space-around; padding: 7px;
  margin-bottom: env(safe-area-inset-bottom);
}
.bn { border: 0; background: none; color: #97788b; border-radius: 18px; min-width: 60px; padding: 6px 10px; text-align: center; text-decoration: none; cursor: pointer; }
.bottom .bn svg { width: 22px; height: 22px; stroke: currentColor; display: block; margin: auto; }
.bn span { display: block; font-size: 9px; margin-top: 3px; font-weight: 600; }
.bn.on { color: var(--f); background: var(--p); }
.bn.soon { opacity: .45; cursor: default; }

.foot { text-align: center; font-size: 11px; color: var(--g); margin-top: 28px; }
.foot a { color: var(--f); text-decoration: none; font-weight: 700; }

/* Registro: contraseña con ojo, ayuda, consentimiento y errores por campo */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 48px; }
.pwd-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #a58; }
.pwd-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pwd-toggle.on { color: var(--f); }
.campo .help { display: block; font-size: 12px; line-height: 1.5; color: var(--g); margin-top: 6px; }
.campo select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23CC00A3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 10px 6px;
}
.campo.bad input, .campo.bad select { border-color: #C0264A; background: #FFF5F7; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12px; line-height: 1.45; color: var(--g); cursor: pointer; margin: 4px 0 2px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--f); }

/* Selector de idioma (igual a .lang-switcher de la App) */
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-switcher { position: relative; display: inline-flex; align-items: center; z-index: 50; }
.lang-current { appearance: none; border: 1px solid var(--b); background: #fff; color: var(--t); min-width: 56px; height: 40px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 800; font-size: 12px; }
.lang-arrow { color: var(--f); font-size: 8px; line-height: 1; }
.lang-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 170px; margin: 0; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--b); box-shadow: var(--shadow); z-index: 60; }
.lang-switcher.open .lang-menu { display: block; }
.lang-menu button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0; border-radius: 11px; cursor: pointer; color: var(--t); text-align: left; }
.lang-menu button:hover { background: var(--s); }
.lang-menu strong { color: var(--f); min-width: 24px; }
.lang-menu span { font-size: 13px; }
.login-lang { position: absolute; top: 14px; right: 14px; z-index: 3; }
.profile.icon { width: 40px; padding: 0; }
.profile.icon svg { width: 20px; height: 20px; stroke: var(--f); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile.icon.on { background: var(--p); }
h2 em, h1 em { font-family: 'Cormorant Garamond', serif; color: var(--f); font-style: italic; font-weight: 600; }

/* Perfil (igual a .acct-* de la App) */
.back { width: 42px; height: 42px; border: 1px solid var(--b); border-radius: 14px; background: #fff; color: var(--f); font-size: 20px; cursor: pointer; display: grid; place-items: center; text-decoration: none; flex: none; }
.acct-head { justify-content: flex-start; margin: 6px 0 18px; }
.acct-head h2 { font-size: 30px; }
.acct-hero { display: flex; align-items: center; gap: 14px; padding: 6px 2px 22px; }
.acct-avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, var(--f), var(--m)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 600; flex-shrink: 0; font-family: 'Cormorant Garamond', serif; }
.acct-hero-body { min-width: 0; }
.acct-hero-name { font-size: 18px; font-weight: 800; color: var(--t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-hero-email { font-size: 12px; color: var(--g); margin-top: 2px; }
.acct-slbl { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--f); margin: 22px 2px 8px; }
.acct-card { background: #fff; border-radius: 18px; border: 1px solid var(--b); overflow: hidden; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--b); cursor: pointer; transition: background .15s; text-decoration: none; color: inherit; background: none; width: 100%; text-align: left; }
.acct-row:last-child { border-bottom: none; }
.acct-row:active, .acct-row:hover { background: var(--p); }
.acct-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--s); color: var(--f); }
.acct-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acct-info { flex: 1; min-width: 0; }
.acct-t { font-size: 14px; font-weight: 700; color: var(--t); }
.acct-s { font-size: 11px; color: var(--g); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-arr { color: var(--g); font-size: 16px; flex-shrink: 0; }
.acct-logout { display: block; width: 100%; margin-top: 24px; background: none; border: 0; color: var(--f); font-weight: 800; font-size: 14px; padding: 14px; cursor: pointer; }
.acct-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border: 0; border-bottom: 1px solid var(--b); cursor: pointer; background: none; width: 100%; text-align: left; }
.acct-opt:last-child { border-bottom: none; }
.acct-opt b { display: block; font-size: 14px; font-weight: 700; }
.acct-opt small { display: block; font-size: 11.5px; color: var(--g); margin-top: 2px; line-height: 1.4; }
.acct-opt-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(204, 0, 163, .25); display: grid; place-items: center; flex-shrink: 0; }
.acct-opt.on .acct-opt-check { background: var(--f); border-color: var(--f); }
.acct-opt.on .acct-opt-check::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.campo input:disabled { opacity: .7; }
