#cursos_venta {
  h2.importante {
    background-color: red;
    color: #fff;
    margin: 0 auto;
    clear: both;
    width: 1024px;
    box-sizing: border-box;
    padding: 12px;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
    max-width: 100%;
  }

  .frecuencia {
    user-select: none;
    margin: 0 auto;
    text-align: center;
    background-color: #1f2d54;
    color: #fff;
    width: fit-content;
    float: none;
    border-radius: 24px;
    padding: 2px;

    >div {
      cursor: pointer;
      width: 100px;
      display: inline-block;
      border-radius: 24px;
    }

    >div.act {
      background-color: #ffffe0;
      color: #1f2d54;
      font-weight: bold;
    }
  }

  .productos {
    position: relative;
    float: none;
    width: calc(100% - 80px);
    max-width: 1290px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    justify-content: center;
    box-sizing: content-box;
    margin: 50px auto 20px;

    .prod {
      position: relative;
      user-select: none;
      padding: 0 20px;
      padding-bottom: 40px;
      background-color: #eeeeee;
      display: grid;
      grid-template-rows: auto auto 1fr auto;
      justify-content: space-around;
      float: left;
      border-radius: 20px;
      box-shadow: 2px 2px 10px 2px rgba(85, 85, 85, 0.75);
      -webkit-box-shadow: 2px 2px 10px 2px rgba(85, 85, 85, 0.75);
      -moz-box-shadow: 2px 2px 10px 2px rgba(85, 85, 85, 0.75);
      transition: ease-in-out 0.3s;
      max-width: 100%;
      box-sizing: border-box;
      cursor: pointer;

      .plus,
      .aprobados {
        display: none;
      }

      .descripcion {
        font-size: 1em;
        color: #555;
        font-weight: 500;
      }

      button {
        background-color: #333;
        color: white;
        border: none;
        border-radius: 30px;
        min-width: 150px;
        font-size: 1.2em;
        font-weight: bold;
        padding: 12px 24px;
        cursor: pointer;
      }

      h3 {
        margin: 0;
        padding: 30px 0 20px;
        box-sizing: border-box;
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 20px 20px 0 0;
      }

      >div {
        /*
        width: 70%;
        height: 170px;
        place-content: center;
        display: flex;
        */
        text-align: left;
      }

      .imagen_prod {
        text-align: center;
        margin: 20px auto;

        img {
          height: auto;
          width: 80%;
          margin: 0 auto;
        }
      }

      .precio {
        margin: 12px 0;

        >div {
          float: left;
          width: 100%;
          text-align: center;
          font-size: 1.3em;
          font-weight: 500;

          .tachado {
            text-decoration: line-through;
            color: #777;
            text-decoration-color: #fa0000;
          }

          .ahorro {
            background-color: #77b255;
            margin-left: 20px;
            color: #fff;
            border-radius: 18px;
            padding: 2px 6px;
            font-size: 0.7em;
            display: inline-block;
          }

          .pvpmensual {
            margin: 12px 0;
            color: #937816;
            font-size: 1.5em;
            text-align: center;
            font-weight: bold;
          }

          .total {
            color: #333;
            float: left;
            text-align: center;
            width: 100%;
            font-size: 16px;
          }
        }
      }
    }

    .prod.plus {
      background-color: #ffffff;

      .plus {
        font-size: 0.8em;
        text-transform: uppercase;
        line-height: 1.2em;
        font-weight: bold;
        display: inline-block;
        text-align: center;
        position: absolute;
        right: -20px;
        transform: rotate(4deg);
        top: -20px;
        background-color: lightyellow;
        padding: 6px 18px;
        border-radius: 24px;
        box-shadow: 2px 2px 10px 2px rgba(85, 85, 85, 0.75);
        -webkit-box-shadow: 2px 2px 10px 2px rgba(85, 85, 85, 0.75);
        -moz-box-shadow: 2px 2px 10px 2px rgba(85, 85, 85, 0.75);
      }

      .aprobados {
        display: inline-block;
        position: absolute;
        top: -20px;
        left: -20px;
        background-color: #77b255;
        color: white;
        padding: 8px 12px;
        border-radius: 24px;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
        line-height: 1.2;
        z-index: 2;
        rotate: -4deg;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        text-transform: uppercase;
        font-size: 0.8em;
        margin-bottom: -0.2em;

        >span {
          font-size: 1.2em;
          margin-top: -0.2em;
          float: left;
          width: 100%;
        }
      }
    }

    .prod.sel {
      outline: 3px solid goldenrod;
      background-color: #fffff4 !important;

      >button {
        display: none;
      }
    }

    .prod:hover {
      background-color: #eaf0ff;
    }

    &:has(.prod.sel),
    &.dos-columnas {
      grid-template-columns: 1fr 1fr;
    }
  }

  button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 30px;
    min-width: 150px;
    font-size: 1.2em;
    font-weight: bold;
    padding: 12px 24px;
    cursor: pointer;
  }
}


@media (max-width: 1200px) {
  .productos {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .productos {
    grid-template-columns: 1fr 1fr;

    .prod {
      >div {
        max-width: 80%;
        margin: 0 auto;
      }
    }
  }
}

@media (max-width: 576px) {
  #cursos_venta {
    .frecuencia {
      max-width: 95%;
      width: fit-content;
      margin: 0 auto;
    }

    .productos {
      grid-template-columns: 1fr;
      margin-top: 40px;
      width: calc(100% - 20px);

      .prod.plus {
        .aprobados {
          left: -10px !important;
        }

        .plus {
          right: -10px !important;
        }
      }

      .prod,
      .precio {
        margin: 0 auto !important;
        width: auto;
        float: none;
        position: relative;
        text-align: center;
      }

      .prod {
        >div.descripcion {
          max-width: 92%;
          font-size: 0.9em;
        }
      }
    }
  }
}

#v_login {
  max-width: 100%;

  h3 {
    background-color: transparent;
    color: #333;
  }

  .pestanas {
    user-select: none;
    margin: 0 auto;
    text-align: center;
    background-color: #1f2d54;
    color: #fff;
    width: fit-content;
    float: none;
    border-radius: 24px;
    padding: 2px;
    margin-bottom: -18px;
    position: relative;

    >div {
      cursor: pointer;
      width: 120px;
      display: inline-block;
      border-radius: 24px;
    }

    div.act {
      background-color: #fff;
      color: #333;
      font-weight: bold;
    }

    >div:hover {
      background-color: #435fac
    }

    div.google i {
      color: #ffc1bc;
    }
  }

  h3 {
    font-size: 20px;

    span {
      width: 100%;
      float: left;
      font-size: 16px;
      color: #937816;
    }
  }

  >div {
    float: left;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 12px;
    background-color: #fafafa;
    text-align: center;

    >label {
      position:relative;
      cursor: pointer;
      width: 100%;
      float: left;
      margin-bottom: 12px;

      input {
        box-sizing: border-box;
        width: 100%;
        padding: 6px;
        font-size: 16px;
        text-align: center;
      }

      input[type="checkbox"] {
        float: left;
        width: auto;
        margin-right: 6px;
      }
    }

    >label.acepto {
      user-select: none;
      text-align: left;
      font-size: 14px;
      line-height: 1.5em;
      color: #777;
    }

    >label.password-container {
      position: relative;

      .toggle-password {
        background-color: #fff;
        color: #333;
        position: absolute;
        right: 3px;
        padding: 2px;
        min-width: 0;
        top: 3px;
        margin-top: 0;
        border: 1px solid #ccc;
      }

      .toggle-password:hover {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
      }
    }

    button {
      text-align: center;
      text-transform: uppercase;
      background-color: #1f2d54;
      color: #fff;
      border-radius: 24px;
      padding: 12px 24px;
      font-weight: bold;
      border: 0;
      margin-top: 12px;
    }
  }

  .registro {
    background-color: #eaf0ff;
  }

  .google-auth {
    background-color: #f8f9fa;
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;

    h3 {
      margin-bottom: 20px;
    }

    p {
      margin-bottom: 20px;
      color: #666;
      font-size: 14px;
    }

    .google-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 24px;
      background: #4285f4;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      width: 100%;
      margin: 20px 0;
      box-sizing: border-box;
      transition: background-color 0.3s;
    }

    .google-btn:hover {
      background: #357ae8;
    }

    .google-note {
      font-size: 12px;
      color: #666;
      margin-top: 10px;
      line-height: 1.4;
    }
  }
  
      button.toggle-password{
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        cursor: pointer;
        color: #666;
        padding: 5px;
        width: 30px;
        min-width: auto;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        margin-top: 0;
        border: 1px solid #999;
        font-size: 20px;
      }
}

.repetido {
  color: red;
  border: 2px solid red;
}

.guardiacivil {
    h3 {
        background-color: #2a5236;
        color: white;
    }
}
.policianacional {
    h3 {
        background-color: #1f2d54;
        color: white;
    }
}
.soldadoprofesional {
    h3 {
        background-color: #635100;
        color: white;
    }
}

/* ESTILOS PARA CAMPO DE CONTRASEÑA CON TOGGLE */
label:has(input.contrasenya) {
    position: relative;
    display: block;
}

/* Fallback para navegadores que no soportan :has() */
label:has(.contrasenya),
label:has(.toggle-password) {
    position: relative;
}

label input.contrasenya {
    width: 100%;
    padding-right: 45px !important; /* Espacio para el botón */
    box-sizing: border-box;
}

.toggle-password:hover {
    color: #007cba;
}

.toggle-password:focus {
    outline: none;
    color: #007cba;
}