/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
:root {
  --colorPrincipal: #473e36;
  --colorGray1: #4a4a4a;
  --colorGray2: #d8cfcf;
  --colorRojo: #77140d;
  --colorGray3: #d7d7d7;
  --colorLetraOscuro: rgb(74, 74, 74);
  --colorTitulo: #958f7e;
  --colorCalidoGris: #A49A87;
}
* {box-sizing: border-box}
html {
  color: var(--colorPrincipal);
  font-size: 1em;
  line-height: 1.4;
  height: 100%;
  margin: 0;
}
body {
  font-family: "Reddit Sans Condensed", "Krub", sans-serif;
  margin: 0;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
.trans {
  transition: opacity 2s;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

hr.menu {
  margin: 1em;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* personal */
h1 {
  color: var(--colorTitulo);
  font-size: 0.9em;
  font-weight: normal;
  margin-bottom: 5px;
  text-align: left;
}
h2 {
  font-size: 1em;

}
.navNormal {
  display: none;
}

#barraNavegacionNormal {
  display: none;
}
div#idContenedorMainIndex {

}
  div#main {
    margin-top:   90px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* height: 100vh; original */
    min-height: 80vh;
  }

  a {
    color: var(--colorCalidoGris);
    text-decoration: none;
  }
  /*.contenedorThumbnailsPapel {
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }
  */
  .classContenedorBordeThumbnailsPapel {
    margin-right: 11px;
    margin-bottom: 11px;
    border: 4px solid var(--colorGray3);
    text-align: center;
  }

  .classContenedorBordeThumbnailsPapel:hover {
    border-color: var(--colorGray1);
  }

  .classContenedorBordeThumbnailsPapelBordeSeleccionado {
    margin-right: 13px;
    margin-bottom: 13px;
    border: 3px solid black;
    /* box-shadow: 0 0 11px 0px black; */
    text-align: center;
  }

  div#contenedorPapelImagenes {
    /* Hidden by default */
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }

  .imagenModal {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }

  p.list {
    padding-bottom: 12px;
  }
  .lineheightmin {
    line-height: 50%;
  }

  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
  }

  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  .cerrarModal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }

  .cerrarModal:hover,
  .cerrrModal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }


  [class*="col-"] {
    width: 100%;
    float: left;
  }

  .contenedorThumbnailsPapel {
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    padding-left: 10px;
    padding-right: 10px;
  }

  img.papel {
    width: 100%;
    display: block;
    margin: auto;
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }

  .col-s-1 {width: 8.33%;}
  .col-s-2 {width: 16.66%;}
  .col-s-3 {width: 25%;}
  .col-s-4 {width: 33.33%;}
  .col-s-5 {width: 41.66%;}
  .col-s-6 {width: 50%;}
  .col-s-7 {width: 58.33%;}
  .col-s-8 {width: 66.66%;}
  .col-s-9 {width: 75%;}
  .col-s-10 {width: 83.33%;}
  .col-s-11 {width: 91.66%;}
  .col-s-12 {width: 100%;}

  img#imagenBolaDePapel {
    max-width: 600px;
  }

  /*
  @media only screen and  (max-height: 500px) and (orientation: landscape) {
    body {
      margin: 0px;
    }
    div#contenedorPapelImagenes {
      padding-top: 0px;
    }
    img.papel {
      width: auto;
      height: 100%;
    }

  }
  */

  /* ini enlaces seleccion */

  .divContenedorEnlaces {
    width: 230px; margin: auto; text-align: right ; overflow: auto; height: 112px; padding-right: 40px
  }


  .divContenedorEnlaces2 {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-bottom: 20px;
    border: 1px solid black;
    width: 245px;
    margin: auto;
    padding-right: 15px;
  }

  .divContenedorEnlaces2 > div {

    width: 95px;
    margin-right: 15px;
    text-align: center;
    line-height: 95px;
    font-size: 1.1em;
  }

  img.imagesContenedorEnlaces {
    width: 90px;
    --f: 1.15; /* the scale factor */

    clip-path: inset(0);
    transition: .4s;
    cursor: pointer;
  }

  img.imagesContenedorEnlaces:hover {
    clip-path: inset(calc((1 - 1/var(--f)) * 50%));
    scale: var(--f)
  }

  img.imagesContenedorEnlacesPapel {
    width: 45px;
    --f: 1.15; /* the scale factor */

    clip-path: inset(0);
    transition: .4s;
    cursor: pointer;
  }

  img.imagesContenedorEnlacesPapel:hover {
    clip-path: inset(calc((1 - 1/var(--f)) * 50%));
    scale: var(--f);
  }

  img.zoom {
    --f: 1.15; /* the scale factor */

    clip-path: inset(0);
    transition: .4s;
    cursor: pointer;
  }

  img.zoom:hover {
    clip-path: inset(calc((1 - 1/var(--f)) * 50%));
    scale: var(--f)
  }

  div#capaTituloDesktop {
    display: none;
  }
  .mainPoliticaCookies {
    margin: auto;
    width: 90%;
    padding-bottom: 8px;
  }

  .contenido {
    margin: auto;
    width: 90%;
    padding-bottom: 8px;
  }

  div.divFooter {
    font-size: 0.8em; position: fixed; width: 100%; bottom: 0; transform: translate(-50%, -50%); left: 50%; border-top: 1px solid var(--colorPrincipal);
  }
  li {
    padding-bottom: 10px;
  }
  li.liFooter {
    float: left; margin-right: 10px; padding-right: 40px;
  }
  ul.ulFooter {
    overflow: hidden; list-style-type: none;
  }

  div#divPie {
    /* display: none; */
    font-size: 0.8rem;
    /* display: none; */
    /*margin-top: 10px;
    margin-bottom: 20px;*/
    padding: 5px;


  }
  div#divIdSobre-miI {
    display: none;
    padding-top: 300px;
  }
  div#divIdSobre-miD {
    width: 100%;
  }
  .center {
    display: flex;
    justify-content: center;
    align-items: center;
  }


  /* fin ini enlaces seleccion */
  /*Móvil apaisado*/
  @media only screen and (min-height: 200px) and (orientation: landscape) {
    div#main {
      /* height: 100%;*/
      min-height: 80vh;
    }
    div#capaTituloDesktop {
      display: none;
    }
    body {
      margin: 0;
    }
    div#contenedorPapelImagenes {
      padding-top: 0;
    }
    img#imagenBolaDePapel {
      max-height: 275px;
    }
    img.papel {
      max-height: 275px;
      width: auto;
    }

    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}

    .mainPoliticaCookies {
      width: 90%;
    }
    .contenido {
      width: 90%;
    }

    div.divFooter {
      position: relative;
      top: 150px;
    }

    div#divPie {
      /* display: none; */

    }
    div#divIdSobre-miI {
      width: 50%;
      display: block;

    }
    div#divIdSobre-miD {
      display: block;
      width: 50%;
    }


  }

  @media only screen and (min-height: 450px) and (orientation: landscape) {
    img.papel {
      /*border: 9px solid black;*/
      max-height: 470px;
    }

  }

  /*@media only screen and (min-width: 38em) {*/
  /* @media only screen and (min-width: 825px) and (min-height: 468px) { */
  @media only screen and (min-width: 1320px) and (min-height: 468px) {
    /* vista normal */
    /* Style adjustments for viewports that meet the condition */

    .contenedorThumbnailsPapel {
      padding-left: 0px;
      padding-right: 0px;

    }
    div#capaTituloDesktop {
      display: block;
    }
    body {
      margin-left: 15%;
      margin-right: 15%;
    }


    img.imagesContenedorEnlacesPapel {
      width: 65px;
    }

    img#imagenBolaDePapel {
      max-height: 700px;
    }

    h1 {
      text-align: left;
      font-size: 1.5em;
    }
    img.papel {
      max-height: 700px;
      max-width: 700px;
      display: none;
      /*margin: auto;*/
      margin-right: 0;
      width: 90%;
    }

    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}

    .openbtn {
      display: none;
    }

    div#cabeceraMovil {
      display: none;
    }
    div#mySidepanel {
      display: none;
    }

    div#main {
      margin-top: 0;
      width: 100%;
      min-height: 80vh;
    }
    div#idContenedorMainIndex {
      margin: 0;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    #barraNavegacionNormal {
      display: block;
    }
    .navNormal {
      display: block;
      overflow: hidden;
      /*background-color: #333;*/
      border-top-style: solid;
      border-top-color: var(--colorCalidoGris);
      border-top-width: 1px;

      border-bottom-style: solid;
      border-bottom-color: var(--colorCalidoGris);
      border-bottom-width: 1px;
    }

    .flecha {
      font-size: 0.75em;
    }

    .navNormal a {
      float: left;
      color: var(--colorCalidoGris);
      text-align: center;
      padding: 8px 16px;
      text-decoration: none;
      font-size: 1em;
    }

    .navNormal a:hover {
      background-color: var(--colorCalidoGris);
      color: white;
    }

    .navNormal a.split {
      float: right;
    }

    .mainPoliticaCookies {
      width: 100%;
    }
    .contenido {
      width: 100%;
    }
    div.divFooter {
      font-size: 0.8em; position: fixed; width: 100%; bottom: 0; transform: translate(-50%, -50%); left: 50%; border-top: 1px solid var(--colorPrincipal);
    }

    div#divPie {

      /* position: fixed; left: 0; bottom: 0; width: 100%; text-align: center; font-size: 0.8em; margin-top: 10px; */
      /*display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      font-size: 0.8em;*/
      /* display: block; */


    }
    div#divIdSobre-miI {
      display: block;
    }

  }

  /* modal */
  .modal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.8s
  }

  /* Modal Content */
  .modal-content {
    color: var(--colorLetraOscuro);
    position: fixed;
    bottom: 0;
    background-color: #fefefe;
    width: 100%;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s
  }

  /* The Close Button */
  .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  .modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
  }

  .modal-body {padding: 2px 16px;}

  .modal-footer {
    padding: 2px 16px;
  }



  /* Add Animation */
  @-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
  }

  @keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
  }

  @-webkit-keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
  }

  @keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
  }
  /* fin modal */


  @media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
  }

  /* ==========================================================================
     Print styles.
     Inlined to avoid the additional HTTP request:
     https://www.phpied.com/delay-loading-your-print-css/
     ========================================================================== */

  @media print {
    *,
    *::before,
    *::after {
      background: #fff !important;
      color: #000 !important;
      /* Black prints faster */
      box-shadow: none !important;
      text-shadow: none !important;
    }

    a,
    a:visited {
      text-decoration: underline;
    }

    a[href]::after {
      content: " (" attr(href) ")";
    }

    abbr[title]::after {
      content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
      content: "";
    }

    pre {
      white-space: pre-wrap !important;
    }

    pre,
    blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
    }

    tr,
    img {
      page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
      orphans: 3;
      widows: 3;
    }

    h2,
    h3 {
      page-break-after: avoid;
    }
    /*new panel*/

    /*=== fin
    /* jai */


    /* Add hover effect */
    .image-button:hover {
      opacity: 0.8; /* Slightly fade the button on hover */
    }

  }

  .prueba1 {
    position: relative;
    /*top: 2rem;*/
    /*left: 2rem;*/
    /*width: 300px*/;
    height: 700px;
    border: 1px solid #333;
    background-color: black;
    overflow: hidden; /* evitar que sobresalga la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .prueba2 {
    width: 100%; /* ajuste contenedor */
    height: 100%; /* ajuste contenedor */
    object-fit: contain; /* mantener proporción */
    padding: 40px;
  }

  .boton {
    background-color: var(--colorRojo);
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin: 4px 2px;
    cursor: pointer;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
  }

  a.botonPequenno  {
    background-color: var(--colorRojo);
    border: none;
    color: white;
    padding: 4px 14px;
    border-radius: 4px  ;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;

    position: relative;
  }

  a.botonPequenno:visited  {
    color: white;
  }
  .boton:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
  }
  a.botonPequenno:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
  }
}
