/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 *:focus {
    outline: none;
 }

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
    font-family: Roboto, "Open Sans", Helvetica, Arial, sans-serif;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
    flex: 1;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }

  #cabecera {
    height: 150px;
    background-color: #008272;
    display: flex;
    justify-content: center;
    align-content: center;
  }

  .elementos-cabecera {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
  }

  .titulo-cabecera {
    color: white;
    margin-right: 100px;
    padding-top: 20px;
    font-size: 40px;
    font-weight: 500;
  }

  .logo-ecr {
    max-height: 80px;
  }

  .logo-ayuntamiento {
    max-height: 100px;
  }

  .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
  }

  .operacion-realizada {
    display: flex;
    align-items: center;
    background-color: #6fbaad;
    color: rgb(0, 0, 0, 0.8);
    padding: 10px;
  }

  .operacion-realizada p{
    font-weight: 500;
  }

  .operacion-error {
    display: flex;
    align-items: center;
    background-color: #c91944;
    color: rgb(255, 255, 255);
    padding: 10px;
  }

  .operacion-error p{
    font-weight: 500;
  }

  .icono-tick {
    margin-right: 10px;
  }

  .formulario-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-bottom: 50px;
    flex: 1;
  }

  .modalidad-seleccion {
    color: #008272;
    margin-bottom: 0.5px;
    font-size: 20px;
  }

  .line-1 {
    border-top: 1px solid #008272;
    margin-bottom: 20px;
  }

  .form-datos {
    width: 400px;
  }

  .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    margin-bottom: 20px;
  }

  .row-icon-informative {
    display: flex; 
    align-items: center;
  }

  .div-icon-informative {
    margin-left: 5px;
  }

  .row-button {
    display: flex;
    align-content: flex-end;
  }

  .row-select {
    margin-bottom: 35px;
  }

  .row-boton-secundario {
    justify-content: flex-end;
    margin-top: 20px;
  }

  #fila-emisora {
    display: none;
  }

  #fila-numjustificante {
    display: none;
  }

  #fila-referencia {
    display: none;
  }

  #fila-identificacion {
    display: none;
  }

  #fila-nif {
    display: none;
  }

  #fila-expediente {
    display: none;
  }

  #fila-datoespecifico {
    display: none;
  }

  #fila-fechadevengo {
    display: none;
  }

  #fila-importe {
    display: none;
  }

  .label-entrada {
    color: rgb(0, 0, 0, 0.8);
  }

  .caja-texto {
    height: 30px;
    border-radius: 5px;
    border-width: 1px;
    border-color: rgb(0, 0, 0, 0.5);
    color: rgb(0, 0, 0, 0.8);
    padding-left: 5px;
  }

  .caja-texto:disabled {
    background-color: rgba(221, 221, 221, 0.863);
    color: rgba(59, 59, 59, 0.8);
  }

  .caja-texto-ok {
    height: 30px;
    border-radius: 5px;
    background-color: rgba(239, 239, 239, 0.863);
    border-width: 0px;
    color: rgba(84, 84, 84, 0.8);
    padding-left: 5px;
  }

  .caja-select {
    height: 35px;
    width: 181px;
  }

  .caja-fecha {
    height: 35px;
    width: 178px;
  }
  

  .boton-principal {
    border-radius: 4px;
    height: 45px;
    padding: 10px 40px;
    border-style: none;
    background-color: #008272;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
  }

  .boton-principal:hover {
    background-color: #008273ba;
  }

  .boton-principal:disabled {
    background-color: #00827320;
    cursor: auto;
  }

  .boton-secundario {
    border-radius: 4px;
    height: 45px;
    padding: 10px 30px;
    border-style: none;
    background-color: #c2ad30;
    color: rgb(46, 45, 45);
    font-size: 16px;
    justify-content: flex-end;
    cursor: pointer;
    transition: 0.3s;
  }

  .boton-secundario:hover {
    background-color: #e6d050;
  }

  .boton-terciario {
    margin-top: 20px;
    border-radius: 4px;
    height: 45px;
    padding: 10px 70px;
    border-style: none;
    background-color: #c9c9c967;
    color: #005155;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
  }

  .boton-terciario:hover {
    background-color: #dddddd;
  }

  .leyenda {
    font-size: 11px;
    left: 0;
  }

  #pie-pagina {
    margin-top: auto;
    align-self: flex-end;
    width: 100%;
  }

  .footer-rigths {
    background-color: #008272;
    padding: 20px;
  }

  .elementos-footer-rigths {
    display: flex;
    justify-content: space-around;
  }

  .texto-footer-rigths {
    color: rgba(255,255,255,.8);
    font-size: 12px;
    text-decoration: none;
  }

  .enlace-footer-rigths:hover {
    color: rgba(255,255,255);
  }

  .links-container {
    display: flex;
    align-items: center;
    margin-left: 150px;
  }

  .links-container a {
    margin: 0 5px;
  }

  .social-media-container {
    display: flex;
    flex-direction: row;
    align-items: baseline;
  }

  .social-icon {
    width: 25px;
    height: 25px;
    margin: 0px 20px;
  }

  svg:hover {
    fill: rgba(255,255,255);
  }

  .sk-circle {
    margin: 5px auto;
    width: 40px;
    height: 40px;
    position: relative;
  }
  .sk-circle .sk-child {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }
  .sk-circle .sk-child:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: #008272;
    border-radius: 100%;
    -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
            animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  }
  .sk-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
        -ms-transform: rotate(30deg);
            transform: rotate(30deg); }
  .sk-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
        -ms-transform: rotate(60deg);
            transform: rotate(60deg); }
  .sk-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
            transform: rotate(90deg); }
  .sk-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
        -ms-transform: rotate(120deg);
            transform: rotate(120deg); }
  .sk-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
        -ms-transform: rotate(150deg);
            transform: rotate(150deg); }
  .sk-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg); }
  .sk-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
        -ms-transform: rotate(210deg);
            transform: rotate(210deg); }
  .sk-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
        -ms-transform: rotate(240deg);
            transform: rotate(240deg); }
  .sk-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
            transform: rotate(270deg); }
  .sk-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
        -ms-transform: rotate(300deg);
            transform: rotate(300deg); }
  .sk-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
        -ms-transform: rotate(330deg);
            transform: rotate(330deg); }
  .sk-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
            animation-delay: -1.1s; }
  .sk-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
            animation-delay: -1s; }
  .sk-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
            animation-delay: -0.9s; }
  .sk-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s; }
  .sk-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
            animation-delay: -0.7s; }
  .sk-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
            animation-delay: -0.6s; }
  .sk-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
            animation-delay: -0.5s; }
  .sk-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
            animation-delay: -0.4s; }
  .sk-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
            animation-delay: -0.3s; }
  .sk-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
            animation-delay: -0.2s; }
  .sk-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
            animation-delay: -0.1s; }

  .modal {
    display: none; /* Hidden by default */
    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.4); /* Black w/ opacity */
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 1000px;
  }
  
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-left: 15px;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  @-webkit-keyframes sk-circleBounceDelay {
    0%, 80%, 100% {
      -webkit-transform: scale(0);
              transform: scale(0);
    } 40% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
  }
  
  @keyframes sk-circleBounceDelay {
    0%, 80%, 100% {
      -webkit-transform: scale(0);
              transform: scale(0);
    } 40% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
  }


  /*Aqui empieza el responsive*/

  @media (max-width: 1181px) {
    /*.links-container {
      margin-left: 10px;
    }*/
    .social-icon {
      width: 23px;
      height: 23px;
      margin: 0px 10px;
    }
  }

  @media (max-width: 1073px) {

    .titulo-cabecera {
      font-size: 35px;
    }
  
    .logo-ecr {
      max-height: 70px;
    }

    .logo-ayuntamiento {
      max-height: 90px;
    }

    .links-container {
      margin-left: 70px;
    }

    .modal-content {
      width: 80%;
      padding: 25px;
    }
  }
  
  @media (max-width: 991px) {

    .links-container {
      flex-wrap: wrap;
      justify-content: center;
    }
  }

  @media (max-width: 821px) {
    .titulo-cabecera {
      margin-right: 50px;
    }
  }

  @media (max-width: 743px) {

    .titulo-cabecera {
      font-size: 30px;
    }
  
    .logo-ecr {
      max-height: 60px;
    }

    .logo-ayuntamiento {
      max-height: 80px;
    }

    .links-container {
      margin-left: 50px;
    }
  }

  @media (max-width: 725px) {

    .elementos-footer-rigths {
      flex-wrap: wrap;
      justify-content: center;
    }
    .links-container {
      margin-bottom: 10px;
    }

    .links-container {
      margin-left: 0px;
    }
  }

  @media (max-width: 547px) {
    
    .elementos-cabecera { 
      flex-wrap: wrap;
      padding: 5px 100px;
    }

    .logo-ecr {
      order: 1;
    }

    .titulo-cabecera {
      margin-top: 0px;
      margin-right: 0px;
      margin-left: 10px;
      font-size: 27px;
      order: 3;
    }

    .logo-ayuntamiento {
      order: 2;
    }

    .elementos-cabecera:has(.logo-ayuntamiento[style*="display: none"]) {
      flex-wrap: nowrap; 
      flex-direction: column;
      justify-content: space-around;
      padding: 20px 0px;
    }

    
  }

  @media (max-width: 500px) {
    
    .elementos-cabecera { 
      padding: 5px 70px;
    }
  }

  @media (max-width: 440px) {

    .elementos-cabecera { 
      padding: 5px 50px;
    }
    
    .form-datos {
      width: 330px;
    }
  }

  @media (max-width: 400px) {

    .elementos-cabecera { 
      padding: 5px 20px;
    }
    
    .form-datos {
      width: 300px;
    }
  }

  @media (max-width: 340px) {
    
    .form-datos {
      width: 280px;
    }

    .row {
      font-size: 14px;
    }

    .label-entrada {
      margin-right: 5px;
    }

    .caja-select {
      width: 165px;
    }

    .caja-fecha {
      width: 155px;
    }

    .div-icon-informative {
      margin-left: 0px;
    }
  }

