/* pixel, the 2004 skin drawn as a building site on grey: a pole with the guestbook hung on it, a hazard-striped
   frame for its form, a stair, and a building with a screen for the posts, on a street line. No menus and no
   picker; the address was the way in. Its values, from index.php, conf/configuracion_general.php,
   conf/cabecera_pixel.txt, especial.php and conf/body_pixel.furia:
     .body             #828282  the ground; black text, $tamanyo_de_fuente 10px, Verdana; text justified
     the scene         a 1176 by 818 table: barra_pixel5.gif down a pole at 75px between its two caps; escalera.gif
                       at 293px, 524px; edif_arriba, edif_med1, edif_med2 and edif_abajo.gif stacked at 431px from
                       34px; under it a street, a black line and 12px of #c0c0c0 (5px and a line of text), across the window
     the posts         especial.php in an iframe 585 by 367 at 515px, 110px, the screen: white, the posts 560px wide,
                       each three strips in a black border 1px apart (.postup 20px, .post, .postdown 17px) and the
                       rule over the author at $ancho1 500px
     the guestbook     at 14px, 79px: guestbook1.gif (the GUESTBOOK header) between embellecedor_izq_ and _dcha_guest.gif,
                       the entries 147 by 150 on white and cristal.gif in a black border at the sides, then
                       guestbook_abajo.gif (the tank); guestbook_texto.gif (the striped frame on its pole) and
                       abrazadera.gif (the clamp) over them
     the form          at 256px, 291px, in the frame: .comentario, 113 by 17, #4F4F4F with white text in a black
                       border, the message 45px; enviar.gif, the striped ENVIAR, the button
     links             #666666, teal and underlined on hover ($color_de_puntero)
   Over clasico's markup the guestbook, its form and the screen keep those places, the entries and the posts scroll
   inside them, and the drawn MAPASONIC plate on the building is the site's name. What 2004 did not have (the search,
   the sections, the skins, the calendar, the history, the bookmarks) stands under the street in boxes drawn as the
   posts' strips. All of it from 73.5em, where the 1176px scene fits; one column below, on the grey. */

:root { color-scheme: light; }

*, ::before, ::after { box-sizing: border-box; }

/* the body: one column on the grey on a phone, the 2004 scene from 73.5em */
body {
  margin: 0;
  padding: 16px 16px 19px;
  background: #828282;
  color: black;
  font: 13px/1.2 Verdana, Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: #666666; text-decoration: none; }
a:hover, a:focus-visible { color: teal; text-decoration: underline; }

input, textarea, button { font: inherit; }
input, textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1px 2px;
  border: 1px solid black;
  border-radius: 0;
  background: #4F4F4F;
  color: white;
  font-size: 16px;
}
textarea { height: 6em; resize: vertical; }
/* enviar.gif: a hazard-striped bar, its word on a dark patch so the button says its own */
button {
  display: block;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 6px 0 0;
  border: 1px solid black;
  border-radius: 0;
  background:
    linear-gradient(#4F4F4F, #4F4F4F) right 4px center / 84px 15px no-repeat,
    repeating-linear-gradient(-45deg, #F5D547 0 8px, #3C3C3C 8px 16px);
  color: white;
  font-weight: bold;
  letter-spacing: .2em;
  text-align: right;
  text-transform: uppercase;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: progress; }

/* the header: the site's name in words on a phone; in the scene, the building's MAPASONIC plate */
body > header { margin: 0 0 12px; }
body > header h1 { margin: 0 0 12px; font-size: 16px; }
body > header h1 a { color: white; }

/* the boxes: a title strip and a box, white in a black border, 1px apart, as the posts' strips */
body > header form, body > nav, aside section { margin: 0 0 12px; }
body > header label, body > nav::before, aside h2 {
  display: block;
  margin: 0 0 1px;
  padding: 3px 10px;
  border: 1px solid black;
  background: white;
  color: #424242;
  font-size: 11px;
  font-weight: normal;
  line-height: 12px;
  text-align: center;
}
body > nav::before { content: "Secciones"; content: "Secciones" / ""; }
body > nav ul, aside section > :not(h2) {
  margin: 0;
  border: 1px solid black;
  background: white;
}
body > header form button { margin-top: 1px; }
body > nav ul, aside ul { padding: 3px 6px; list-style: none; }

/* the posts: on the screen, each a band, a box and a foot, three strips in a black border 1px apart */
body > main { margin: 0 0 12px; padding: 0 0 1px; background: white; }
main article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: repeat(4, auto);
  row-gap: 1px;
  margin: 0 0 14px;
}
main article::before {
  content: "";
  grid-area: 2 / 1 / 4 / -1;
  border: 1px solid black;
}
.meta, main article > h2 {
  margin: 0;
  padding: 3px 0;
  border: 1px solid black;
  color: #424242;
  font-size: 11px;
  font-weight: normal;
  line-height: 12px;
}
.meta { grid-area: 1 / 1; padding-left: 10px; border-right: 0; white-space: nowrap; }
main article > h2 { grid-area: 1 / 2; padding-right: 10px; padding-left: 10px; border-left: 0; text-align: center; }
.contenido {
  grid-area: 2 / 1 / 3 / -1;
  padding: 4px 7px 3px;
  text-align: justify;
}
.contenido img, .contenido video { max-width: 100%; height: auto; }
.contenido iframe, .contenido embed, .contenido object { max-width: 100%; }
.contenido pre { overflow-x: auto; }
.enlace {
  grid-area: 3 / 1 / 4 / -1;
  margin: 0;
  padding: 4px 9px 6px;
  background: linear-gradient(black, black) 50% 0 / calc(100% - 60px) 1px no-repeat;
  font-weight: bold;
}
.enlace a { color: black; }
main article::after {
  grid-area: 4 / 1 / 5 / -1;
  content: "...";
  content: "..." / "";
  height: 17px;
  padding: 0 0 0 18px;
  border: 1px solid black;
  line-height: 13px;
}
.no-encontrado h2 { grid-column: 1 / -1; border-left: 1px solid black; font-size: 13px; }

main > h2 { margin: 0 0 12px; font-size: inherit; }
.paginas { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; padding: 3px 8px; border: 1px solid black; }
.paginas a { color: black; font-weight: bold; }

/* under the street */
aside a, body > nav a { color: black; }
.calendario table { width: 100%; border-collapse: collapse; text-align: center; }
.calendario table { border-top: 0; }
.calendario caption { padding: 3px 0 0; border: 1px solid black; border-bottom: 0; background: white; }
.calendario caption a { color: inherit; }
.calendario th { color: #424242; font-weight: normal; }
.calendario td a { font-weight: bold; }

.historico li > a:first-child { font-weight: bold; }

/* the guestbook: the GUESTBOOK header (guestbook1.gif, 147 by 29, Juan's word of 2026-11-19) between its two trims, the
   entries on white, the form in dark fields */
.libro h2 {
  height: 29px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  background:
    url(/skins/clasico/img/pixel/embellecedor_izq_guest.gif) 0 0 no-repeat,
    url(/skins/clasico/img/pixel/embellecedor_dcha_guest.gif) 100% 0 no-repeat,
    url(/skins/clasico/img/pixel/guestbook1.gif) 0 0 no-repeat content-box;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
}
.firmas { padding: 2px 5px; border-top: 0; border-bottom: 0; }
.firmas li { margin: 0 0 6px; }
.firmas p { margin: 0; }
.quien { color: #424242; }
.quien .by { color: black; font-weight: bold; }
aside .libro .firmar { margin: 12px 0 0; padding: 0; border: 0; background: none; }
.firmar label:not(.tarro) {
  display: block;
  margin: 0 0 1px;
  padding: 1px 3px 0;
  border: 1px solid black;
  background: #4F4F4F;
  color: #DDDDDD;
  font-size: 11px;
}
.firmar input, .firmar textarea { padding: 1px 2px; border: 0; background: #3E3E3E; }
.firmar button { margin-top: 2px; }
.status:empty { display: none; }
.status { margin: 2px 0 0; padding: 2px 3px; background: #4F4F4F; color: white; }

/* the honeypot: out of sight and out of reach */
.tarro { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the skin picker, after the book: the skins of then as their buttons, 141px across the box */
.skins { padding: 2px; }
.skins li { margin: 0 0 2px; }
.skins a { color: black; }
.skins a[href="?skin=creativo"], .skins a[href="?skin=rojo"], .skins a[href="?skin=verde"],
.skins a[href="?skin=azul"], .skins a[href="?skin=prof"], .skins a[href="?skin=v21"],
.skins a[href="?skin=industrial"], .skins a[href="?skin=verde2"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  background: 0 0 no-repeat;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
}
.skins a[href="?skin=creativo"] { background-image: url(/skins/clasico/img/botones/creativo.gif); }
.skins a[href="?skin=rojo"] { background-image: url(/skins/clasico/img/botones/rojo.gif); }
.skins a[href="?skin=verde"] { background-image: url(/skins/clasico/img/botones/verde.gif); }
.skins a[href="?skin=azul"] { background-image: url(/skins/clasico/img/botones/azul.gif); }
.skins a[href="?skin=prof"] { background-image: url(/skins/clasico/img/botones/prof.gif); }
.skins a[href="?skin=v21"] { background-image: url(/skins/clasico/img/botones/v21.gif); }
.skins a[href="?skin=industrial"] { background-image: url(/skins/clasico/img/botones/industrial.gif); }
.skins a[href="?skin=verde2"] { background-image: url(/skins/clasico/img/botones/verde2.gif); }
.skins a[href="?skin=linuxero"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  border: 2px solid #FF6600;
  background: white;
  color: #FF6600;
  font: bold 9px/13px Helvetica, Arial, sans-serif;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.skins a[href="?skin=pixel"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  border: 1px solid black;
  background: linear-gradient(#4F4F4F, #4F4F4F) 50% 50% / 60px 11px no-repeat, repeating-linear-gradient(-45deg, #F5D547 0 6px, #3C3C3C 6px 12px);
  color: white;
  font: bold 9px/15px Verdana, Arial, sans-serif;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

/* the 2004 scene: the pole, the stair, the building and the street drawn where body_pixel.furia put them, the
   guestbook, its form and the screen in their places, the rest under the street; 10px Verdana, 9px in the bands
   and the fields */
@media (min-width: 73.5em) {
  body {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 1176px;
    min-height: 1024px;
    padding: 847px 14px 19px;
    background:
      linear-gradient(black, black) 0 818px / 100% 1px no-repeat,
      linear-gradient(#c0c0c0, #c0c0c0) 0 819px / 100% 12px no-repeat,
      url(/skins/clasico/img/pixel/escalera.gif) 293px 524px no-repeat,
      url(/skins/clasico/img/pixel/edif_arriba.gif) 431px 34px no-repeat,
      url(/skins/clasico/img/pixel/edif_med1.gif) 431px 198px no-repeat,
      url(/skins/clasico/img/pixel/edif_med2.gif) 431px 407px no-repeat,
      url(/skins/clasico/img/pixel/edif_abajo.gif) 431px 599px no-repeat,
      #828282;
    font-size: 10px;
  }
  /* the pole, its stripes between its two caps */
  body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 75px;
    width: 35px;
    height: 818px;
    padding: 14px 0;
    background:
      url(/skins/clasico/img/pixel/guestbook_embellecedor.gif) 0 0 no-repeat,
      url(/skins/clasico/img/pixel/guestbook_embellecedor_abajo.gif) 0 100% no-repeat,
      url(/skins/clasico/img/pixel/barra_pixel5.gif) 0 0 repeat-y;
    background-clip: border-box, border-box, content-box;
    background-origin: border-box, border-box, content-box;
  }
  input, textarea { height: 17px; font-size: 9px; }
  textarea { height: 50px; }
  button { min-height: 0; height: 17px; font-size: 9px; }

  /* under the street: the search, the sections and the boxes of the aside in a row, 147px each */
  body > header, body > nav, body > aside { flex: none; margin: 0; }
  body > header form, body > nav, aside section { width: 147px; margin: 0; }
  body > aside { display: flex; align-items: flex-start; gap: 10px; }
  aside .historico { width: 200px; }
  .meta, main article > h2, body > header label, body > nav::before, aside h2,
  .calendario caption { font-size: 9px; line-height: 12px; }

  /* MAPASONIC, the plate on the building, is the site's name */
  body > header h1 { position: absolute; top: 485px; left: 712px; margin: 0; }
  body > header h1 a { display: block; width: 193px; height: 21px; overflow: hidden; white-space: nowrap; text-indent: 100%; }

  /* the screen: the posts scroll inside it */
  body > main {
    position: absolute;
    top: 110px;
    left: 515px;
    width: 585px;
    height: 367px;
    margin: 0;
    padding: 13px 10px 0 13px;
    overflow: auto;
  }

  /* the guestbook on its pole, the tank under it, the striped frame and the clamp over them, the form in the frame */
  aside .libro {
    position: absolute;
    top: 79px;
    left: 14px;
    width: 366px;
    height: 556px;
    margin: 0;
    background:
      url(/skins/clasico/img/pixel/abrazadera.gif) 57px 424px no-repeat,
      url(/skins/clasico/img/pixel/guestbook_texto.gif) 164px 175px no-repeat,
      url(/skins/clasico/img/pixel/guestbook_abajo.gif) 5px 179px no-repeat;
  }
  .libro h2 { width: 157px; }
  .firmas {
    position: absolute;
    top: 29px;
    left: 5px;
    width: 147px;
    height: 150px;
    padding: 0 3px 0 5px;
    background: white url(/skins/clasico/img/pixel/cristal.gif) -1px 0 no-repeat;
    overflow: auto;
  }
  aside .libro .firmar { position: absolute; top: 212px; left: 242px; width: 113px; margin: 0; }
  .firmar label:not(.tarro) { height: 17px; padding: 0 0 0 3px; font-size: 9px; line-height: 15px; }
  .firmar label:not(.tarro):has(input) { display: flex; gap: 4px; }
  .firmar label:not(.tarro):has(textarea) { height: 81px; }
  .firmar input { flex: 1; min-width: 0; height: 15px; }
  .firmar textarea { height: 64px; resize: none; }
  .firmar button {
    background: linear-gradient(#4F4F4F, #4F4F4F) right 2px center / 46px 11px no-repeat, url(/skins/clasico/img/pixel/enviar.gif) 0 0 / 100% 100% no-repeat;
    letter-spacing: .1em;
  }
}
