:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #252334;
  background: #f8f9fc;
  --violet: #5142ab;
  --muted: #646372;
  --border: #dddee7;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #735dd9; outline-offset: 4px; }
.wrap { width: min(74rem, calc(100% - 6rem)); margin-inline: auto; }
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner, .brand, .date, .primary, .secondary, .section-head, .dialog-head, .dialog-actions, .card-action {
  display: flex; align-items: center;
}
.header-inner { min-height: 5rem; justify-content: space-between; gap: 1rem; }
.brand { gap: .7rem; font-size: 1.22rem; font-weight: 700; letter-spacing: -.035em; }
.monogram { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .75rem; background: #40366f; color: #fff; font-size: 1.4rem; font-weight: 700; }
.brand-divider { height: 1.25rem; border-left: 1px solid var(--border); margin-inline: .2rem; }
.brand-area, .date { color: var(--muted); font-weight: 500; font-size: .92rem; letter-spacing: 0; }
.date { gap: .65rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 19rem; background: #e9e5fb; border: 1px solid #dcd6f2; border-radius: 1.6rem; margin-top: 2.5rem; }
.hero-content { position: relative; z-index: 2; width: 65%; padding: 2.7rem clamp(2rem,4vw,3.6rem); }
h1,h2,h3,p { margin: 0; }
h1 { color: #28233d; font-size: clamp(2.4rem,4.6vw,4.25rem); letter-spacing: -.065em; line-height: 1.04; font-weight: 680; text-wrap: balance; }
h1 span { color: #7864bc; }
.hero-content p { max-width: 26rem; color: #554f66; font-size: 1.1rem; line-height: 1.55; margin: 1rem 0 1.65rem; }
.primary, .secondary { justify-content: center; gap: .65rem; min-height: 2.85rem; padding: .65rem 1.15rem; border-radius: .75rem; font-weight: 600; font-size: .95rem; }
.primary { background: #473982; border: 1px solid #473982; color: white; }
.primary:hover { background: #362960; }
.secondary, .icon-btn { color: #4f4b5c; background: #fff; border: 1px solid var(--border); }
.secondary:hover,.icon-btn:hover { background: #efedf7; }
.plus,.cross { display: inline-grid; place-items: center; width: 1rem; height: 1rem; }
.plus::before,.plus::after,.cross::before,.cross::after { content: ""; grid-area: 1/1; width: .9rem; height: 2px; border-radius: 2px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.cross::before { transform: rotate(45deg); }
.cross::after { transform: rotate(-45deg); }
.art { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 41%; pointer-events: none; background-image: radial-gradient(#a69bc4 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(to right, transparent, #000 14%); }
.orbit { position: absolute; width: 130%; height: 62%; border: 1px solid #c4b9e2; border-radius: 50%; left: -7%; top: 19%; transform: rotate(-31deg); }
.orbit-two { transform: rotate(24deg); height: 68%; }
.art-window { position: absolute; top: 50%; left: 50%; width: 12.7rem; height: 11rem; border: 2px solid #635583; border-radius: 1.1rem; }
.back { background: #b8a7de; transform: translate(-44%,-43%) rotate(6deg); box-shadow: 2px 4px 0 #9281b2; }
.front { background: #faf7ff; transform: translate(-58%,-55%) rotate(-10deg); box-shadow: 2px 4px 0 #8c7da7; }
.window-bar { display: flex; align-items: center; gap: 4px; height: 18%; padding-left: .7rem; border-bottom: 1.5px solid #a698b6; }
.window-bar i { width: 5px; height: 5px; border-radius: 50%; background: #b4a5cd; }
.window-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 82%; gap: .6rem; padding: .8rem 1rem .95rem; }
.key { display: grid; place-items: center; border: 1.5px solid #736582; border-radius: .55rem; box-shadow: 0 2px 0 #a295ac; color: #504660; }
.key-purple { background: #d0c1f1; }.key-peach { background: #f3d0bd; }.key-mint { background: #c8e1d5; }.key-blue { background: #cbdaf2; }
.glyph { display: block; width: 1.55rem; height: 1.55rem; }
.grid { width: .58rem; height: .58rem; background: currentColor; border-radius: 2px; box-shadow: .76rem 0, 0 .76rem, .76rem .76rem; transform: translate(-.38rem,-.38rem); }
.star, .spark { background: currentColor; clip-path: polygon(50% 0%, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0 50%, 37% 36%); }
.folder { background: currentColor; clip-path: polygon(0 20%, 40% 20%, 52% 32%, 100% 32%, 100% 85%, 0 85%); }
.bookmark { width: 1rem; height: 1.35rem; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 77%, 0 100%); }
.spark { position: absolute; width: 1.8rem; height: 1.8rem; color: #786798; }
.spark-one { left: 13%; top: 24%; }.spark-two { right: 12%; bottom: 22%; width: 1.15rem; height: 1.15rem; }
.collection { margin-top: 2.55rem; }
.section-head { gap: 1rem; margin-bottom: 1.15rem; }
h2 { font-size: 1.55rem; letter-spacing: -.045em; line-height: 1.22; }
.section-line { height: 1px; background: var(--border); flex: 1; }
.count { color: var(--muted); font-size: .9rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,14rem), 1fr)); gap: 1rem; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 1rem; background: white; box-shadow: 0 2px 3px #26213707; }
.card:focus-within, .card:hover { border-color: #b9afd1; }
.card-link { display: flex; align-items: flex-start; flex-direction: column; flex: 1; padding: 1.4rem 1.35rem 1rem; text-decoration: none; border-radius: 1rem; }
.card-link:hover h3 { color: var(--violet); }
.tile { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .85rem; font-weight: 700; }
.tile.cal { background: #eee8fc; color: #655196; }.tile.drive { background: #def0e7; color: #377457; }.tile.notes { background: #faead6; color: #91622a; }.tile.maps { background: #deebfa; color: #42698f; }.tile.link { background: #e9e6f7; color: #63519b; }
.ui-icon { display: inline-block; width: 1.35rem; height: 1.35rem; flex: none; }
.date .ui-icon, .card-action .ui-icon { width: 1rem; height: 1rem; }
.tile .ui-icon { width: 1.55rem; height: 1.55rem; }
.card h3 { margin-top: 1.05rem; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.domain { margin-top: .28rem; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.card-controls { display: flex; gap: .2rem; align-items: center; justify-content: space-between; margin: 0 1.35rem; border-top: 1px solid #ececf1; }
.card-action { min-height: 2.8rem; gap: .45rem; padding: .35rem 0; background: transparent; border: 0; color: var(--violet); font-size: .9rem; font-weight: 600; }
.card-action:hover { text-decoration: underline; }
.remove { color: var(--muted); width: 2.6rem; justify-content: center; margin-right: -.65rem; }
footer { margin: 2.6rem 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.notice, .error { color: #852f23; line-height: 1.45; }
.notice { margin-top: 1rem; }
dialog { border: 1px solid var(--border); border-radius: 1.25rem; box-shadow: 0 1rem 5rem #26203830; width: min(calc(100% - 2rem), 27rem); color: inherit; padding: 1.7rem; max-height: calc(100dvh - 2rem); }
dialog::backdrop { background: #24213565; }
.dialog-head { justify-content: space-between; gap: 1rem; }
.icon-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; }
label { display: block; font-size: .95rem; font-weight: 600; margin: 1.2rem 0 .45rem; }
input { display: block; width: 100%; padding: .7rem .85rem; color: inherit; border: 1px solid #aaa7b8; border-radius: .6rem; }
.dialog-actions { margin-top: 1.6rem; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.error, #quitar-texto { margin-top: .7rem; overflow-wrap: anywhere; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: .25rem; left: .25rem; background: white; padding: .7rem; }
@media (min-width: 70rem) { .cards { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 56rem) {
  .wrap { width: calc(100% - 3rem); }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .art { width: 37%; }
  .art-window { width: 10rem; height: 9rem; }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.25rem; }
  .brand { gap: .45rem; }
  .date { font-size: .82rem; gap: .35rem; }
  .hero { margin-top: 1.25rem; min-height: auto; border-radius: 1.2rem; }
  .hero-content { width: 100%; padding: 1.7rem 1.4rem; }
  .hero-content p { max-width: 26ch; font-size: 1rem; }
  .art { display: none; }
  .collection { margin-top: 1.8rem; }
}
@media (max-width: 32rem) {
  .cards { grid-template-columns: 1fr; gap: .75rem; }
  .card-link { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; column-gap: 1rem; padding: 1rem 1.15rem; }
  .card h3 { margin: 0; align-self: end; }
  .tile { grid-row: span 2; }
  .domain { align-self: start; }
  .date .ui-icon { display: none; }
  .card-controls { margin: 0 1.15rem; }
}
@media (max-width: 22rem) { .brand-divider,.brand-area { display: none; } }
