/*
 Theme Name:   OpoPrime.com 2026
 Theme URI:    https://temujin.es
 Description:  Tema desarrollado en exclusiva para MasterPol Formación SL
 Author:       Jonatan Sandoval Alarcón (Temujin.es)
 Author URI:   https://temujin.es
 Version:      251211a
*/

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter_regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter_medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter_bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter_semi_bold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter_extra_bold.ttf') format('truetype');
  font-weight: 800;
}

:root {
  /* Colores generales */
  --op1: #3d455e;
  --op2: #6c7283;
  --op3: #10154e;
  --op4: #383838;
  --gold: #AD8F1B;
  /* Colores policía */
  --pn1: #2B3963;
  --pn2: #6c7283;
  --pn3: #10154e;
  --pnf: #a2a9bd;
  /* Colores guardia civil */
  --gc1: #085949;
  --gc2: #147864;
  --gc3: #085949;
  --gcf: #618f86;
  /* Colores soldado profesional */
  --sp1: #4F4938;
  --sp2: #77705A;
  --spf: #c5bea9;
}

body{
  font-family: 'Inter';
  margin: 0;
  padding: 0;
  background: #a6b0d0;
  background: radial-gradient(circle farthest-corner at center right, #a6b0d0 0%, #ffffff 50%);
  background: -webkit-radial-gradient(circle farthest-corner at center right, #a6b0d0 0%, #ffffff 50%);
  background: -moz-radial-gradient(circle farthest-corner at center right, #a6b0d0 0%, #ffffff 50%);
  background-attachment:fixed;

}

.wrap{
  margin:0 auto;
  width: 1200px;
  max-width: calc(100dvw - 40px);
  /*background-color:rgba(255,255,255,0.1);*/
}

header{
  padding: 40px;

  .consigue_tu_plaza{
    display:none;
  }

  .menu-icon{
    display:none;
  }

  .logo{
    width: 110px;
  }

  #menu_sup{
    float:right;
    ul{
      margin:0;
      padding:0;
      li{
        display:inline-block;
        margin-left:20px;
        a{
          text-decoration:none;
          color: var(--op4);
          font-size:20px;
          transition: all 0.3s ease;
          font-weight: 500;
        }
      }
      li:last-of-type a{
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 8px;
        background-color: var(--gold);
        color: #fff;
        font-weight: 500;
      }
    }
  }
}

footer{
  float: left;
  width: 100%;
  background-color: #fff;
  border-top: 2px solid #e0e0e0;
  .cont{
    float: left;
    width: calc(100% - 100px);
    padding: 10px 50px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    .legal{
      text-align: left;
      font-size: 14px;
      color: var(--op2);
      display: flex;
      gap: 12px;
      a{
        text-decoration: none;
        color: var(--op2);
        transition: color 0.3s ease;
        margin-right: 15px;
        
        &:hover{
          color: var(--op1);
        }
      }
    }
    .contacto_inf{
      display:inline-flex;
      text-align: center;
      margin: 0;
      padding: 0;
      font-size: 16px;
      gap: 24px;
      justify-content: center;
      flex-direction: row;
      float: right;
      
      
      
      
        a{
          text-decoration: none;
          color: var(--op4);
          transition: color 0.3s ease;
          position: relative;
          &:hover{
            color: var(--op1);
          }
          
          &::after{
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 50%;
            background-color: var(--op1);
            transition: width 0.3s ease, left 0.3s ease;
          }
          
          &:hover::after{
            width: 100%;
            left: 0;
          }
        }
    }
    .logo{
      text-align: center;
      img{
        width: 120px;
        cursor: pointer;
      }
    }
    div:has(>.rrss){
      display: flex;
      align-items: center;
      gap: 20px;
      justify-content: flex-end;
    }
    .rrss{
      text-align: right;
      i{
        color: #383838;
        font-size: 24px;
        margin-right: 15px;
        padding: 8px;
        border-radius: 100%;
        border: 1px solid #bbbbbb;
        cursor: pointer;
        transition: all 0.3s ease;
      }
      i:last-of-type{
        margin-right: 0;
      }
      i:hover{
        background-color: var(--op1);
        color: #fff;
      }
    }
  }
  #rrss_tree{
    width:100%;
    .wrap{
      justify-content: center;
      justify-items: center;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      align-items: center;
      align-content: center;
    }
    a{
      float:left;
      width:100%;
      text-decoration:none;
      color:var(--op4);
      margin-bottom: 10px;
      text-align:center;
    }
    i{
      font-size:20px;
      margin-right: 6px;
    }
  }
}

@media screen and (max-width: 600px) {
  
  #rrss_tree{
    .wrap{
      width:50dvw;
      margin:0 auto;
      min-width:300px;
      grid-template-columns: 1fr !important;
      a{
        text-align: left;
        width: auto;
        color: #666;
        font-size: 14px;
      }
    }
  }
}

.btn{
  background-color: var(--gold);
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  width: fit-content;
  float: left;
}
a.btn{
  text-decoration: none;
}

@media (max-width: 768px) {
  .wrap {
    width: 90% !important;
  }
  body.pn,body.gc,body.sp,body.plataforma{
    header{
      i.fa-bars{
        color: var(--op4);
      }
      .consigue_tu_plaza{
        display: none;
      }
    }
  }
  p{
    width: auto !important;
  }
  header {
    padding: 20px;
    position: relative;

    .consigue_tu_plaza {
      display: block;
      text-align: center;
      margin-bottom: 15px;
    }

    #menu_toggle {
      display: none;
    }

    .menu-icon {
      display: block;
      position: absolute;
      top: 15px;
      right: 34px;
      font-size: 22px;
      color: #fff;
      cursor: pointer;
      z-index: 100;
      i {
        transition: transform 0.3s ease;
      }
    }

    #menu_toggle:checked ~ .menu-icon i {
      transform: rotate(90deg);
    }

    .logo {
      width: 100px;
    }

    #menu_sup {
      float: none;
      clear: both;
      display: none;
      background-color: rgba(255, 255, 255, 0.95);
      padding: 20px;
      border-radius: 8px;
      margin-top: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      width: calc(100% - 60px);
      ul {
        li {
          display: block;
          margin: 10px 0;
          text-align: center;
          
          a {
            font-size: 18px;
            color: var(--op4) !important;
          }
        }
        li:first-of-type{
          margin-top: 0;
        }
        li:last-of-type{
          margin-top: 20px;
          a{
            background-color: var(--gold) !important;
            color: #fff !important;
          }
        }
      }
    }

    #menu_toggle:checked ~ #menu_sup {
      display: block;
      position:fixed;
      left:10px;
      z-index:1;
    }
  }


  footer {
    .cont {
      width: calc(100% - 40px);
      padding: 20px;
      grid-template-columns: 1fr;
      gap: 20px;

      .legal {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        
        a {
          margin-right: 0;
        }
      }

      .contacto_inf {
        width: 100%;
        order: 2;
        text-align: center;
        justify-content: center;
      }

      .logo {
        order: 1;
        
        img {
          width: 100px;
        }
      }

      div:has(>.rrss) {
        display:grid;
        justify-content: center;
        order: 3;
      }

      .rrss {
        text-align: center;
        
        i {
          font-size: 20px;
          margin-right: 10px;
        }
      }
    }
  }
}
.forgot-password{
  float:left;
  width:100% !important;
  text-align:center;
}

main > .wrap > .contenedor-cuerpo:has(.wp-block-loginout){
    .title{
      display:none;
    }
  /* Apple-style login form */
  .has-login-form{
    width: 100%;
    max-width: 400px;
    text-align:center;
    margin: 100px auto;
    form{
      margin: 0 auto;
      float: none;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 60px 40px 40px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.6);
    }

    p{
      margin: 0 0 24px 0;
    }

    label{
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: var(--op1);
      margin-bottom: 8px;
      letter-spacing: 0.3px;
    }

    input[type="text"],
    input[type="password"]{
      width: 100%;
      padding: 14px 16px;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 15px;
      color: var(--op1);
      background-color: #f8f9fa;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-sizing: border-box;

      &:focus{
        outline: none;
        border-color: var(--pn1);
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(43, 57, 99, 0.1);
      }

      &::placeholder{
        color: #999;
      }
    }

    .login-remember{
      display: flex;
      align-items: center;
      margin: 24px 0 32px 0;

      label{
        display: flex;
        align-items: center;
        margin: 0;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
      }
    }

    input[type="checkbox"]{
      width: 20px;
      height: 20px;
      margin-right: 10px;
      cursor: pointer;
      accent-color: var(--pn1);
      border-radius: 6px;
    }

    .login-submit{
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    input[type="submit"]{
      width: 100%;
      padding: 14px 16px;
      border: none;
      border-radius: 12px;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      background: linear-gradient(135deg, var(--pn1) 0%, #1a2548 100%);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 15px rgba(43, 57, 99, 0.25);
      letter-spacing: 0.3px;

      &:hover{
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(43, 57, 99, 0.35);
      }

      &:active{
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(43, 57, 99, 0.2);
      }
    }

    .lost-password{
      text-align: center;
      margin-top: 24px;

      a{
        color: var(--pn1);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;

        &:hover{
          color: #1a2548;

          &::after{
            width: 100%;
          }
        }

        &::after{
          content: '';
          position: absolute;
          bottom: -2px;
          left: 0;
          width: 0;
          height: 2px;
          background: var(--pn1);
          transition: width 0.3s ease;
        }
      }
    }
  }
}