:root{
  --bg: #fff6f7;
  --paper: rgba(255,255,255,.82);

  --red1: #ff4d6d;     /* cherry */
  --red2: #c9184a;     /* vino */
  --red3: #a4133c;     /* profundo */

  --line: rgba(164,19,60,.45);
  --dash: rgba(0,0,0,.22);
  --shadow: rgba(0,0,0,.14);

  --text: #2b1b1f;
  --muted: rgba(43,27,31,.65);
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("assets/bg_tile.png");
  background-repeat: repeat;
  background-attachment: fixed;

  font-family: "Verdana", "Tahoma", sans-serif;
  font-size: 14px;
}

a{
  color: var(--red2);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

.page{
  max-width: 860px;
  margin: 18px auto 28px;
  padding: 12px;
}

.frame{
  position: relative;
  background: var(--paper);
  border: 3px solid var(--line);
  outline: 2px solid rgba(255,255,255,.65);
  border-radius: 18px;
  box-shadow: 0 12px 34px var(--shadow);
  overflow: hidden;
}

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--dash);
  background: rgba(255,255,255,.6);
}

.site-title{
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  font-size: 16px;
  color: var(--red3);
}

.win-controls{
  display: flex;
  gap: 6px;
}

.btn{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.7);
}

.btn.close{
  background: rgba(255,77,109,.35);
}

.hero{
  padding: 12px;
}

.hero img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--line);
  display: block;
}

.layout{
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 14px;
  padding: 12px;
  align-items: start;
}

@media (max-width: 650px){
  .layout{ grid-template-columns: 1fr; }
  .hero img{ height: 200px; }
}

.window{
  background: rgba(255,255,255,.86);
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.w-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background-image: url("assets/titlebar_tile.png");
  background-repeat: repeat;
  border-bottom: 1px dashed var(--dash);
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--red3);
}

.w-x{
  color: rgba(0,0,0,.55);
}

.w-body{
  padding: 10px 10px 12px;
}

.decobar{
  height: 26px;
  margin: 2px 0 10px;
  background-image: url("assets/ribbon.png");
  background-repeat: repeat-x;
  background-position: center;
  border-radius: 10px;
  opacity: .95;
}

.small{
  font-size: 12px;
  line-height: 1.5;
}

.muted{ color: var(--muted); }

.divider{
  border-top: 1px dashed var(--dash);
  margin: 10px 0;
}

.menu{
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.menu li{
  margin: 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0,0,0,.16);
}

.menu li:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.center{ text-align: center; }

.clock{
  font-family: "Courier New", monospace;
  font-size: 20px;
  color: var(--red2);
  letter-spacing: 1px;
}

.statusbox{
  background: rgba(255,255,255,.65);
  border: 1px dashed var(--dash);
  border-radius: 12px;
  padding: 10px;
}

.calendar{
  border: 1px dashed var(--dash);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.7);
}

.cal-head{
  padding: 8px 10px;
  background: rgba(255,77,109,.12);
  border-bottom: 1px dashed var(--dash);
  font-family: "Courier New", monospace;
  color: var(--red3);
}

.cal-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.06);
}

.cal-cell{
  background: rgba(255,255,255,.9);
  min-height: 30px;
  padding: 6px 6px;
  font-size: 11px;
  color: rgba(0,0,0,.8);
}

.cal-cell.dim{ color: rgba(0,0,0,.35); }
.cal-cell.today{
  background: rgba(255,77,109,.18);
  outline: 1px dashed rgba(201,24,74,.55);
}

.buttons{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.buttons img{
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.12);
}

.button-me{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.button-me img{
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.12);
}

.sticker{
  position: absolute;
  width: 140px;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
}

.sticker.left{
  top: 58px;
  left: -18px;
  transform: rotate(-8deg);
}

.sticker.right{
  top: 56px;
  right: -18px;
  transform: rotate(10deg);
}

.footer{
  padding: 10px 12px 14px;
  border-top: 1px dashed var(--dash);
  text-align: center;
  font-size: 12px;
  color: rgba(0,0,0,.6);
}

.chat-embed{
  border: 1px dashed var(--dash);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.8);
}

.chat-embed iframe{
  display: block;
  width: 100%;
  border: 0;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 650px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

.thumb{
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  cursor: pointer;
}

.thumb img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.lightbox.open{ display: flex; }

.lightbox-inner{
  max-width: 900px;
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  overflow: hidden;
}

.lightbox-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--dash);
  background: rgba(255,77,109,.12);
  font-family: "Courier New", monospace;
  color: var(--red3);
}

.lb-close{
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
}

.lightbox-img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,.6);
}


/* --- STAMPS CAROUSEL (RETRO COMPACT) --- */
.stamp-carousel{
  width: 100%;
  overflow: hidden;
  padding: 6px 0;
}

.stamp-track{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;

  width: max-content !important;
  animation: stampscroll 22s linear infinite !important;
}

.stamp-track img{
  width: 64px !important;
  height: 28px !important;
  object-fit: contain !important;

  display: inline-block !important;
  flex: 0 0 auto !important;
  max-width: none !important;

  image-rendering: pixelated;
  border-radius: 4px;
}

/* movimiento */
@keyframes stampscroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === LAYOUT: 3 columnas (left / center / right) === */
.page{
  max-width: 980px;     /* más angosto pero con 3 columnas */
  margin: 0 auto;
  padding: 16px;
}

.layout{
  display: grid;
  grid-template-columns: 220px 1fr 240px; /* LEFT / CENTER / RIGHT */
  gap: 16px;
  align-items: start;
}

/* Evita que cosas (iframes, imágenes) rompan el grid */
.leftcol, .centercol, .rightcol{
  min-width: 0;
}

/* Asegura tamaños consistentes */
.leftcol{ width: 220px; }
.rightcol{ width: 240px; }

/* Imágenes dentro de ventanas no deben agrandarse */
.window img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* BOTONES (for you) en una fila o en 2 si no caben */
.buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.buttons a img{
  display: block;
}

/* === CHAT iframe: que nunca se salga === */
.chat-embed iframe{
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  border: 0;
}

/* === STAMPS: evita que el track empuje el ancho === */
.stamp-carousel{
  width: 100%;
  overflow: hidden;
}
.stamp-track{
  width: max-content;
}

/* === Responsive: iPad / pantallas angostas === */
@media (max-width: 980px){
  .page{ max-width: 860px; }
  .layout{
    grid-template-columns: 220px 1fr; /* right baja abajo */
  }
  .rightcol{
    width: auto;
    grid-column: 1 / -1; /* ocupa toda la fila abajo */
  }
}

@media (max-width: 820px){
  .layout{
    grid-template-columns: 1fr; /* todo apilado */
  }
  .leftcol, .rightcol{
    width: auto;
  }
}






