/* ============================================================
   Home — papel de cuaderno, notitas, work-station y tablero
   ============================================================ */

body.home {
  --papel: #faf3dc;
  --linea-papel: rgba(112, 82, 62, 0.12);
  --tinta-home: #5b4331;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 34px,
      var(--linea-papel) 34px,
      var(--linea-papel) 35px
    ),
    var(--papel);
  color: var(--tinta-home);
}

/* ------------------------------------------------------------
   Pantalla de carga
   ------------------------------------------------------------ */
.carga {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 32%, #fdf7e3 0%, #f8eecb 62%, #f3e3bd 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.carga.oculta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.carga-centro { text-align: center; }

.carga-logo {
  font-size: clamp(3rem, 10vw, 5.2rem);
  line-height: 1;
  color: var(--vino);
  animation: carga-aparecer 1s ease both;
}

.carga-sub {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: #8a6a48;
  animation: carga-aparecer 1s ease 0.25s both;
}

.carga-puntada {
  position: relative;
  width: min(230px, 60vw);
  margin: 1.8rem auto 0;
}

.carga-puntada i {
  display: block;
  width: 0;
  border-top: 2px dashed #b0567a;
  animation: carga-coser 1.5s ease 0.45s forwards;
}

.carga-puntada span {
  position: absolute;
  right: -24px;
  top: -13px;
  color: #b0567a;
  font-size: 1.1rem;
  opacity: 0;
  animation: carga-latido 1.1s ease-in-out 1.1s infinite;
}

@keyframes carga-aparecer {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes carga-coser {
  to { width: 100%; }
}

@keyframes carga-latido {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .carga-logo, .carga-sub { animation: none; }
  .carga-puntada i { animation: none; width: 100%; }
  .carga-puntada span { animation: none; opacity: 1; }
}

/* ------------------------------------------------------------
   Notas adhesivas y elementos arrastrables (compartido)
   ------------------------------------------------------------ */
.arrastrable {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.arrastrable.arrastrando {
  cursor: grabbing;
  z-index: 60;
  box-shadow: 0 14px 28px rgba(58, 40, 26, 0.28);
}

.cinta {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 74px;
  height: 20px;
  background: rgba(214, 182, 138, 0.55);
  box-shadow: 0 1px 2px rgba(58, 40, 26, 0.12);
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - 52px);
  padding: 8vh 6vw 12vh;
  overflow: hidden;
}

.hero::before {
  /* resplandor rosa superior */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(232, 164, 180, 0.5), transparent);
  pointer-events: none;
}

.hero-circulo {
  position: absolute;
  top: 24%;
  right: 14%;
  width: min(400px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #f2b8ce 0%, #db8fb4 58%, rgba(219, 143, 180, 0) 74%);
  filter: blur(0.5px);
}

.hero-titulo {
  position: relative;
  z-index: 2;
  font-family: "Emilys Candy", cursive;
  font-weight: 400;
  color: var(--tinta-home);
  line-height: 0.95;
  margin-top: 9vh;
}

.hero-titulo .linea-1 {
  display: block;
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.hero-titulo .linea-1 em {
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.04em;
}

.hero-titulo .linea-2 {
  display: block;
  font-size: clamp(3.6rem, 11vw, 8rem);
  margin-left: clamp(2rem, 14vw, 12rem);
}

.hero-chica {
  position: absolute;
  top: 8%;
  right: 20%;
  width: min(230px, 24vw);
  z-index: 1;
  animation: flotar 5s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.nota-hero {
  position: absolute;
  left: 7%;
  bottom: 16%;
  width: 150px;
  padding: 1.6rem 1rem 0.9rem;
  background: #f7e9a2;
  transform: rotate(-4deg);
  box-shadow: 3px 6px 14px rgba(58, 40, 26, 0.22);
  font-family: "Caveat", cursive;
  text-align: center;
  z-index: 3;
}

.nota-hero p {
  font-size: 1.35rem;
  line-height: 1.05;
  color: #5b4331;
}

.nota-hero small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(91, 67, 49, 0.55);
}

.destello {
  position: absolute;
  font-size: 1.1rem;
  color: rgba(91, 67, 49, 0.6);
  animation: titilar 3.2s ease-in-out infinite;
  pointer-events: none;
}

.destello:nth-child(2n) { animation-delay: 1.1s; }
.destello:nth-child(3n) { animation-delay: 2s; }

@keyframes titilar {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ------------------------------------------------------------
   PERSONAJES (carrusel)
   ------------------------------------------------------------ */
.musas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 4vw, 3rem);
  padding: 6rem 1rem 7rem;
}

.musas-hint {
  position: absolute;
  top: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: rgba(91, 67, 49, 0.65);
}

.flecha {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(91, 67, 49, 0.7);
  background: rgba(250, 243, 220, 0.75);
  color: #5b4331;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.flecha:hover { transform: scale(1.1); background: #f3e3bd; }

.musas-escena {
  position: relative;
  width: min(760px, 78vw);
  height: clamp(300px, 46vw, 460px);
}

.musa {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 92%;
  aspect-ratio: 5 / 9;
  transform: translate(-50%, -50%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, filter 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.musa svg { width: 100%; height: 100%; }

.musa.centro { z-index: 3; opacity: 1; filter: none; }

.musa.izquierda {
  transform: translate(-148%, -46%) scale(0.68);
  opacity: 0.35;
  filter: grayscale(0.5) blur(0.4px);
  z-index: 1;
}

.musa.derecha {
  transform: translate(48%, -46%) scale(0.68);
  opacity: 0.35;
  filter: grayscale(0.5) blur(0.4px);
  z-index: 1;
}

.musa.oculta { opacity: 0; transform: translate(-50%, -50%) scale(0.4); z-index: 0; pointer-events: none; }

/* ------------------------------------------------------------
   WORK - STATION
   ------------------------------------------------------------ */
.workstation {
  position: relative;
  padding: 5rem 6vw 7rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(219, 166, 75, 0.1), transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(124, 35, 66, 0.07), transparent 55%),
    #efdfc0;
}

.letrero {
  width: fit-content;
  margin: 0 auto 3.6rem;
  padding: 0.85rem 2.6rem;
  background: linear-gradient(#5a4030, #47311f);
  border: 2px solid #2f2013;
  border-radius: 8px;
  box-shadow: 0 6px 0 #2f2013, 0 10px 18px rgba(47, 32, 19, 0.35);
  position: relative;
}

.letrero::before,
.letrero::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9b98a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.letrero::before { left: 12px; }
.letrero::after { right: 12px; }

.letrero span {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--dorado-suave);
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: end;
}

.ws-item { text-align: center; }

.anotacion {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: #5b4331;
  margin-bottom: 2rem;
  text-align: left;
}

.anotacion em { font-style: normal; opacity: 0.7; font-size: 0.9em; }

/* — laptop — */
.laptop {
  width: min(440px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 14px 22px rgba(47, 32, 19, 0.25));
}

.laptop-pantalla {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fdf3d9;
  border: 3px solid #6d5138;
  border-bottom-width: 5px;
  border-radius: 16px 16px 4px 4px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.laptop-destello {
  position: absolute;
  top: 8px;
  right: 14px;
  color: rgba(109, 81, 56, 0.5);
  font-size: 0.8rem;
}

.laptop-marca {
  position: absolute;
  bottom: 8px;
  right: 16px;
  font-size: 1.1rem;
  color: rgba(109, 81, 56, 0.55);
}

.carpeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 0.62rem;
  color: #6d5138;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carpeta svg { width: 40px; }

.carpeta:hover { background: rgba(217, 168, 108, 0.25); transform: translateY(-2px); }

.laptop-base {
  width: 108%;
  margin-left: -4%;
  background: linear-gradient(#f2e3c3, #e3cda3);
  border: 3px solid #6d5138;
  border-top-width: 2px;
  border-radius: 6px 6px 14px 14px;
  padding: 10px 22px 8px;
}

.teclado {
  height: 44px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(to right, transparent 0 26px, #e3cda3 26px 30px),
    repeating-linear-gradient(to bottom, #f8ecd0 0 10px, #e3cda3 10px 13px);
  border: 1px solid #cdb287;
}

.trackpad {
  width: 90px;
  height: 13px;
  margin: 7px auto 0;
  border-radius: 4px;
  border: 1px solid #cdb287;
  background: #f4e6c8;
}

/* — scrapbook — */
.scrapbook {
  position: relative;
  width: min(330px, 88%);
  aspect-ratio: 4 / 4.6;
  margin: 0 auto;
  background: linear-gradient(135deg, #f3b9ca, #eba6bc 60%, #e598b1);
  border: none;
  border-radius: 10px 22px 22px 10px;
  box-shadow: 6px 10px 0 rgba(124, 35, 66, 0.22), 0 16px 26px rgba(47, 32, 19, 0.28);
  cursor: pointer;
  transition: transform 0.25s ease;
  font-family: inherit;
}

.scrapbook:hover { transform: rotate(-1.5deg) translateY(-6px); }

.scrapbook-espiral {
  position: absolute;
  left: 10px;
  top: 8%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scrapbook-espiral i {
  width: 18px;
  height: 18px;
  border: 3px solid #f8f1e3;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 35, 66, 0.3);
}

.scrapbook-titulo {
  position: absolute;
  top: 44%;
  left: 52%;
  transform: translate(-50%, -50%);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 1.25rem;
  color: #6d2a42;
}

.scrapbook-autora {
  position: absolute;
  top: 56%;
  left: 52%;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  color: rgba(109, 42, 66, 0.85);
}

.sticker {
  position: absolute;
  font-size: 1.5rem;
}

.sticker-estrella {
  top: 12%;
  right: 16%;
  color: #f0c75e;
  text-shadow: 0 1px 0 #b98a2e;
  transform: rotate(-12deg);
}

.sticker-carita {
  top: 24%;
  left: 30%;
  color: #8a5a2a;
  background: #f0c75e;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(8deg);
}

.scrapbook-lapiz {
  position: absolute;
  bottom: 10%;
  right: 2%;
  width: 110px;
  height: 12px;
  background: linear-gradient(to right, #e5b96b 0 78%, #f3ddb8 78% 90%, #6d5138 90%);
  border-radius: 6px;
  transform: rotate(-32deg);
  box-shadow: 0 3px 6px rgba(47, 32, 19, 0.3);
}

.scrapbook-tabs {
  position: absolute;
  right: -10px;
  top: 18%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scrapbook-tabs i {
  width: 10px;
  height: 34px;
  border-radius: 0 6px 6px 0;
}

.scrapbook-tabs i:nth-child(1) { background: #f0c75e; }
.scrapbook-tabs i:nth-child(2) { background: #9fc4d8; }
.scrapbook-tabs i:nth-child(3) { background: #a8c69b; }

/* ------------------------------------------------------------
   VENTANAS retro del computador
   ------------------------------------------------------------ */
.ventana {
  position: fixed;
  top: 14vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, 94vw);
  background: #fdf3d9;
  border: 3px solid #6d5138;
  border-radius: 10px;
  box-shadow: 10px 14px 0 rgba(47, 32, 19, 0.25), 0 22px 44px rgba(47, 32, 19, 0.4);
  z-index: 200;
  overflow: hidden;
}

.ventana-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.8rem;
  background: linear-gradient(#8a6a48, #6d5138);
  color: #fdf3d9;
  cursor: grab;
}

.ventana-barra:active { cursor: grabbing; }

.ventana-titulo {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-family: "Poppins", sans-serif;
}

.ventana-cerrar {
  width: 24px;
  height: 24px;
  flex: none;
  border: 2px solid #fdf3d9;
  border-radius: 6px;
  background: #b0567a;
  color: #fdf3d9;
  font-size: 0.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ventana-cerrar:hover { background: #c96e91; }

.ventana-cuerpo { padding: 0.8rem; }

.ventana-cuerpo video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #241a10;
  border-radius: 6px;
  border: 2px solid #6d5138;
}

.playlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.playlist button {
  font-family: "Poppins", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid #6d5138;
  border-radius: 999px;
  background: #f8ecd0;
  color: #5b4331;
  cursor: pointer;
  transition: background 0.15s ease;
}

.playlist button:hover { background: #f0dcae; }

.playlist button.activo { background: #6d5138; color: #fdf3d9; }

/* ------------------------------------------------------------
   DIARIO / SCRAPBOOK abierto
   ------------------------------------------------------------ */
.diario-overlay[hidden],
.ventana[hidden] { display: none; }

.diario-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(47, 32, 19, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.diario-libro {
  position: relative;
  width: min(940px, 96vw);
  height: min(620px, 86vh);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 30px,
      rgba(112, 82, 62, 0.12) 30px 31px
    ),
    #fbf3dc;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(20, 12, 6, 0.5);
}

.diario-libro::before {
  /* pliegue central */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 48%,
    rgba(112, 82, 62, 0.14) 50%,
    transparent 52%
  );
  border-radius: inherit;
  pointer-events: none;
}

.diario-espiral {
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.diario-espiral i {
  width: 22px;
  height: 14px;
  border: 3px solid #8a6a48;
  border-radius: 50%;
  background: #fbf3dc;
  box-shadow: 0 2px 3px rgba(47, 32, 19, 0.25);
}

.diario-cerrar {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #6d5138;
  background: #f3b9ca;
  color: #5e1b33;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(47, 32, 19, 0.4);
}

.diario-tabs {
  position: absolute;
  right: -12px;
  top: 12%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.dtab {
  writing-mode: vertical-rl;
  padding: 0.7rem 0.32rem;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: "Caveat", cursive;
  font-size: 1rem;
  color: #5b4331;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dtab:nth-child(1) { background: #f3b9ca; }
.dtab:nth-child(2) { background: #f0c75e; }
.dtab:nth-child(3) { background: #9fc4d8; }
.dtab:nth-child(4) { background: #a8c69b; }

.dtab:hover, .dtab.activo { opacity: 1; transform: translateX(4px); }

.diario-pagina {
  position: absolute;
  inset: 0;
  padding: 3rem 3.4rem;
  overflow: hidden;
}

.diario-pagina h2 {
  font-size: 2.6rem;
  color: #5b4331;
  margin-bottom: 1rem;
}

.diario-logo {
  font-size: 3.4rem;
  color: #7c2342;
  text-align: center;
  margin-top: 2rem;
}

.paleta-mini {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.paleta-mini i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(47, 32, 19, 0.2);
}

.dnota {
  position: absolute;
  width: 190px;
  padding: 1.5rem 1rem 1rem;
  font-family: "Caveat", cursive;
  font-size: 1.12rem;
  line-height: 1.15;
  color: #4a3427;
  box-shadow: 3px 5px 12px rgba(47, 32, 19, 0.2);
}

.dnota-rosa { background: #f6d3dd; top: 22%; left: 8%; }
.dnota-crema { background: #f7e9a2; bottom: 12%; left: 30%; width: 240px; }

.girada-izq { transform: rotate(-4deg); }
.girada-der { transform: rotate(3.5deg); }

.polaroid {
  position: absolute;
  top: 18%;
  right: 10%;
  width: 200px;
  background: #fdfaf2;
  padding: 10px 10px 6px;
  box-shadow: 0 8px 18px rgba(47, 32, 19, 0.25);
}

.polaroid.ancho { width: 300px; }

.polaroid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  pointer-events: none;
}

.polaroid.ancho img { height: 120px; }

.polaroid figcaption {
  font-family: "Caveat", cursive;
  text-align: center;
  font-size: 1.05rem;
  padding: 4px 0 2px;
  color: #5b4331;
}

.diario-pagina[data-pagina="bocetos"] .polaroid.ancho { top: 24%; left: 7%; right: auto; }
.diario-pagina[data-pagina="bocetos"] .polaroid:not(.ancho) { top: 34%; right: 8%; }
.diario-pagina[data-pagina="disenos"] .polaroid.ancho:first-of-type { top: 20%; left: 7%; right: auto; }
.diario-pagina[data-pagina="disenos"] .polaroid.ancho:last-of-type { top: 48%; right: 7%; }

.diario-flecha {
  position: absolute;
  bottom: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #b0567a;
  background: #f6d3dd;
  color: #6d2a42;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.diario-flecha:hover { transform: scale(1.12); }

.diario-flecha.izq { left: 14px; }
.diario-flecha.der { right: 14px; }

/* ------------------------------------------------------------
   TABLERO — deja algo
   ------------------------------------------------------------ */
.tablero {
  padding: 5.5rem 6vw 7rem;
  text-align: center;
}

.tablero-titulo {
  font-family: "Emilys Candy", cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: #5b4331;
}

.tablero-sub {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: rgba(91, 67, 49, 0.7);
  margin: 0.4rem 0 3rem;
}

.tablero-zona {
  position: relative;
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 1.6rem;
  max-width: 1020px;
  margin: 0 auto;
  align-items: start;
  text-align: left;
}

.herramientas {
  background: #fdf6e4;
  border: 2px solid #e6b7c3;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 8px 18px rgba(47, 32, 19, 0.12);
}

.herramientas h3 {
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6a48;
  margin: 1.1rem 0 0.55rem;
  border-bottom: 1px solid rgba(138, 106, 72, 0.25);
  padding-bottom: 0.35rem;
}

.herramientas h3:first-child { margin-top: 0; }

.colores { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color:hover { transform: scale(1.15); }

.color.activo { border-color: #5b4331; box-shadow: 0 0 0 2px #fdf6e4 inset; }

.tools { display: flex; flex-direction: column; gap: 0.45rem; }

.tool {
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  text-align: left;
  padding: 0.45rem 0.7rem;
  border: 1.5px solid #cdb287;
  border-radius: 8px;
  background: #fbf0d8;
  color: #5b4331;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tool:hover { background: #f3e3bd; }

.tool.activo { background: #5b4331; color: #fbf0d8; border-color: #5b4331; }

.lienzo-marco {
  position: relative;
  border: 2px dashed rgba(91, 67, 49, 0.55);
  border-radius: 4px;
  background: rgba(253, 248, 235, 0.65);
  height: clamp(360px, 52vh, 520px);
  overflow: hidden;
}

#lienzo { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

.lienzo-hint {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translate(100%, -50%);
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: rgba(91, 67, 49, 0.65);
  white-space: nowrap;
}

/* notitas del tablero */
.nota-tablero {
  position: absolute;
  width: 150px;
  min-height: 110px;
  padding: 1.4rem 0.8rem 0.7rem;
  background: #f7e9a2;
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  line-height: 1.1;
  color: #4a3427;
  box-shadow: 3px 5px 12px rgba(47, 32, 19, 0.2);
  z-index: 10;
}

.nota-tablero:nth-child(2n) { background: #f6d3dd; }
.nota-tablero:nth-child(3n) { background: #cfe3ee; }

.nota-tablero [contenteditable] { outline: none; min-height: 60px; }

.nota-tablero .cerrar-nota {
  position: absolute;
  top: 3px;
  right: 6px;
  border: none;
  background: none;
  font-size: 0.8rem;
  cursor: pointer;
  color: rgba(74, 52, 39, 0.5);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.2rem 6vw;
  background: var(--marron-oscuro);
  color: var(--crema);
}

.pie-logo { font-size: 1.7rem; color: var(--dorado); }

.pie-links { font-size: 0.75rem; letter-spacing: 0.06em; }

.pie-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pie-sayhi {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--dorado-suave);
  transition: transform 0.2s ease;
}

.pie-sayhi:hover { transform: rotate(-3deg) scale(1.06); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  .hero-circulo { right: 2%; top: 30%; }
  .hero-chica { right: 8%; top: 20%; }
  .nota-hero { bottom: 6%; }
  .tablero-zona { grid-template-columns: 1fr; }
  .lienzo-hint { display: none; }
  .diario-pagina { padding: 2.2rem 1.4rem; }
  .diario-pagina h2 { font-size: 1.9rem; }
  .dnota-crema { bottom: 4%; left: 10%; }
  .polaroid { width: 160px; }
  .polaroid.ancho { width: 220px; }
}
